summaryrefslogtreecommitdiffstats
path: root/messagebus/src/tests/emptyreply/emptyreply.cpp
blob: 711a21edd17f9599845f1b4e92f88ae3a746200e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/fastos/fastos.h>
#include <vespa/log/log.h>
LOG_SETUP("emptyreply_test");
#include <vespa/vespalib/testkit/testapp.h>
#include <vespa/messagebus/emptyreply.h>

using namespace mbus;

TEST_SETUP(Test);

int
Test::Main()
{
    TEST_INIT("emptyreply_test");
    Reply::UP empty(new EmptyReply());
    EXPECT_TRUE(empty->isReply());
    EXPECT_TRUE(empty->getProtocol() == "");
    EXPECT_TRUE(empty->getType() == 0);
    TEST_DONE();
}