Salome HOME
multistudy removal part 1
[modules/hydro.git] / src / HYDRO_tests / test_HYDROData_BoundaryPolygons.cxx
index 1877e1a3be2408f93f6a3508f76edd03071acaed..541f54ba85cfe57ac5e907d8f7bd115207639001 100644 (file)
@@ -34,9 +34,9 @@ void test_HYDROData_BoundaryPolygons::test_bp_1()
 {  
   TCollection_AsciiString fname = REF_DATA_PATH.toLatin1().data();
   fname += "/test_boundary_polygon_calc_case_1.cbf";
-  CPPUNIT_ASSERT_EQUAL( (int)DocError_OK, (int)HYDROData_Document::Load( fname.ToCString(), 1 ) );
+  CPPUNIT_ASSERT_EQUAL( (int)DocError_OK, (int)HYDROData_Document::Load( fname.ToCString() ) );
 
-  Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1);  
+  Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();  
   //Calc case already contains already contains 4 boundary poltgons (3 cut, 1 include)
   //Update it to recalculate the shape groups
   Handle(HYDROData_CalculationCase) aCase = 
@@ -109,8 +109,8 @@ void test_HYDROData_BoundaryPolygons::test_bp_2()
 {
   TCollection_AsciiString fname = REF_DATA_PATH.toLatin1().data();
   fname += "/test_boundary_polygon_calc_case_2.cbf";
-  CPPUNIT_ASSERT_EQUAL( (int)DocError_OK, (int)HYDROData_Document::Load( fname.ToCString(), 1 ) );
-  Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1);
+  CPPUNIT_ASSERT_EQUAL( (int)DocError_OK, (int)HYDROData_Document::Load( fname.ToCString() ) );
+  Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
   //add boundary polygons to case_1
   Handle(HYDROData_CalculationCase) aCase = 
     Handle(HYDROData_CalculationCase)::DownCast( aDoc->FindObjectByName( "Case_1" ) );