X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=tst%2Fintegration%2FServerTest.cpp;h=8fe7788a6849ce2c5efb861180caa76299c6f9f6;hb=e927325f8b92c0d03c87fed77118f8e55df1b0c9;hp=fbec21a70f7cd7d9fe96929c1f717129816f61ee;hpb=fd86376a8e7d3f1b09be3d018f772ef884937238;p=blank.git diff --git a/tst/integration/ServerTest.cpp b/tst/integration/ServerTest.cpp index fbec21a..8fe7788 100644 --- a/tst/integration/ServerTest.cpp +++ b/tst/integration/ServerTest.cpp @@ -1,6 +1,6 @@ #include "ServerTest.hpp" -#include "TestServer.hpp" +#include "TestInstance.hpp" CPPUNIT_TEST_SUITE_REGISTRATION(blank::test::ServerTest); @@ -9,16 +9,20 @@ namespace blank { namespace test { void ServerTest::setUp() { - + instance.reset(new TestInstance({ "--server" }, true)); + instance->AssertRunning(); } void ServerTest::tearDown() { - + std::unique_ptr inst(std::move(instance)); + inst->Terminate(); + inst->AssertExitStatus(0); + inst->AssertNoError(); } void ServerTest::testStartup() { - TestServer server; + // setUp and testDown do all the tests } }