1 #include "ServerTest.hpp"
3 #include "TestInstance.hpp"
5 CPPUNIT_TEST_SUITE_REGISTRATION(blank::test::ServerTest);
11 void ServerTest::setUp() {
12 instance.reset(new TestInstance({ "--server" }, true));
13 instance->AssertRunning();
14 instance->AssertOutputLine("loading spawn chunks");
15 instance->AssertOutputLine("listening on UDP port 12354");
18 void ServerTest::tearDown() {
19 std::unique_ptr<TestInstance> inst(std::move(instance));
22 inst->AssertOutputLine("saving remaining chunks");
23 inst->AssertNoOutput();
24 inst->AssertNoError();
25 inst->AssertExitStatus(0);
30 void ServerTest::testStartup() {
31 // setUp and testDown do all the tests