Salome HOME
fix updateAttributeGroup
[modules/gde.git] / projects / GDE_API_CPP / api / tests / AttributesTest.cpp
index 146530a3df15c3d40da22c2282e9a01d5b69df4a..f2754f2305f39867db0e09ff4edff16950deb690 100644 (file)
@@ -100,7 +100,8 @@ AttributesTest::testUpdateAttributeGroup()
   attributes.push_back(attribute2);
 
   {
-    const gde::AttributeGroup& attrGrp = session.updateAttributeGroup(myAttributeGroup, attributes);
+    myAttributeGroup.setAttributes(attributes);
+    const gde::AttributeGroup& attrGrp = session.updateAttributeGroup(myAttributeGroup);
     CPPUNIT_ASSERT(attrGrp.getId() == myAttributeGroup.getId());
     const std::vector<gde::Attribute>& attrs = attrGrp.getAttributes();
     CPPUNIT_ASSERT(attrs.size() == 2);