diff --git a/src/rpc/test/server_tests.cpp b/src/rpc/test/server_tests.cpp index 8cddf60d3f..611d9e04e5 100644 --- a/src/rpc/test/server_tests.cpp +++ b/src/rpc/test/server_tests.cpp @@ -1,23 +1,27 @@ +// Copyright (c) 2019 The Bitcoin developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #include #include #include #include #include #include BOOST_FIXTURE_TEST_SUITE(server_tests, BasicTestingSetup) BOOST_AUTO_TEST_CASE(server_IsDeprecatedRPCEnabled) { ArgsManager testArgs; const char *argv_test[] = {"bitcoind", "-deprecatedrpc=foo", "-deprecatedrpc=bar"}; testArgs.ParseParameters(3, (char **)argv_test); BOOST_CHECK(IsDeprecatedRPCEnabled(testArgs, "foo") == true); BOOST_CHECK(IsDeprecatedRPCEnabled(testArgs, "bar") == true); BOOST_CHECK(IsDeprecatedRPCEnabled(testArgs, "bob") == false); } BOOST_AUTO_TEST_SUITE_END()