diff --git a/tests/test_wellsmanager.cpp b/tests/test_wellsmanager.cpp index 7ddf9f29d..ff1d21001 100644 --- a/tests/test_wellsmanager.cpp +++ b/tests/test_wellsmanager.cpp @@ -236,6 +236,19 @@ BOOST_AUTO_TEST_CASE(ControlsEqual) { +BOOST_AUTO_TEST_CASE(WellShutOK) { + const std::string filename = "wells_manager_data.data"; + Opm::ParserPtr parser(new Opm::Parser()); + Opm::DeckConstPtr deck(parser->parseFile(filename)); + + Opm::EclipseStateConstPtr eclipseState(new Opm::EclipseState(deck)); + Opm::GridManager gridManager(deck); + + BOOST_CHECK_NO_THROW( Opm::WellsManager wellsManager2(eclipseState , 2 , *gridManager.c_grid(), NULL)); +} + + + BOOST_AUTO_TEST_CASE(WellHasSTOP_ExceptionIsThrown) { const std::string filename = "wells_manager_data_wellSTOP.data"; Opm::ParserPtr parser(new Opm::Parser()); diff --git a/tests/wells_manager_data.data b/tests/wells_manager_data.data index bd66f5b22..3eb03594f 100755 --- a/tests/wells_manager_data.data +++ b/tests/wells_manager_data.data @@ -55,5 +55,16 @@ WCONINJE 'INJ1' 'WATER' 'OPEN' 'RESV' 10 20 40 / / + +DATES + 1 'MAR' 2000 / +/ + + +WCONPROD + 'PROD1' 'SHUT' 15* / +/ + + END