diff --git a/tests/test_integration.cpp b/tests/test_integration.cpp index 1acef21..0d856b4 100644 --- a/tests/test_integration.cpp +++ b/tests/test_integration.cpp @@ -95,3 +95,11 @@ TEST_F(IntegrationTest, ClientCanConnectAndRetrieveValues) { TEST_F(IntegrationTest, ClientHandlesConnectionError) { EXPECT_THROW(TCPConnector connector("127.0.0.1", 9999), std::runtime_error); } + +TEST_F(IntegrationTest, ClientRetrieveRemoteMethods) { + TCPConnector connector(config_.server.ip, config_.server.port); + RpcClient client(connector); + + auto res = client.call>("get-available-methods"); + EXPECT_EQ(res.size(), 2); +} \ No newline at end of file