Commit c0e8a570 authored by Marcin Siodelski's avatar Marcin Siodelski

[#709,!407] Minor updates to the server unittests as a result of review.

- Fixed a typo in the toElement test name,
- Added missing whitespace
- Fixed a typo in getByTag test description.
parent a8774b40
......@@ -35,8 +35,8 @@ TEST(ServerTest, tooLongDescription) {
BadValue);
}
// Tests that toElement method works well.
TEST(ServerTest, toEDlement) {
// Tests that toElement method returns expected JSON map.
TEST(ServerTest, toElement) {
ServerPtr server1 = Server::create(ServerTag("foo"), "a server");
std::string expected1 = "{"
"\"server-tag\": \"foo\","
......@@ -44,7 +44,7 @@ TEST(ServerTest, toEDlement) {
" }";
isc::test::runToElementTest<Server>(expected1, *server1);
ServerPtr server2 =Server::create(ServerTag("bar"));
ServerPtr server2 = Server::create(ServerTag("bar"));
std::string expected2= "{"
"\"server-tag\": \"bar\","
"\"description\": \"\""
......@@ -52,7 +52,7 @@ TEST(ServerTest, toEDlement) {
isc::test::runToElementTest<Server>(expected2, *server2);
}
// Tests that it is possible to fetch server by tag fromn the collection.
// Tests that it is possible to fetch server by tag from the collection.
TEST(ServerFetcherTest, getByTag) {
ServerCollection servers;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment