//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void advertisesAvailableConsoleEngines() public virtual void AdvertisesAvailableConsoleEngines() { ConsoleService consoleServiceWithJustShellEngine = new ConsoleService(new StubConsoleSessionFactory(), mock(typeof(Database)), NullLogProvider.Instance, new OutputFormat(new JsonFormat(), Uri, null)); string response = Decode(consoleServiceWithJustShellEngine.ServiceDefinition); MatcherAssert.assertThat(response, containsString("\"engines\" : [ \"stub-engine\" ]")); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void correctRepresentation() public virtual void CorrectRepresentation() { Response resp = JmxService.ServiceDefinition; assertEquals(200, resp.Status); string json = UTF8.decode(( sbyte[] )resp.Entity); MatcherAssert.assertThat(json, containsString("resources")); MatcherAssert.assertThat(json, containsString(Uri.ToString())); MatcherAssert.assertThat(json, containsString("jmx/domain/{domain}/{objectName}")); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void correctRepresentation() public virtual void CorrectRepresentation() { ConsoleService consoleService = new ConsoleService(new StubConsoleSessionFactory(), mock(typeof(Database)), NullLogProvider.Instance, new OutputFormat(new JsonFormat(), Uri, null)); Response consoleResponse = consoleService.ServiceDefinition; assertEquals(200, consoleResponse.Status); string response = Decode(consoleResponse); MatcherAssert.assertThat(response, containsString("resources")); MatcherAssert.assertThat(response, containsString(Uri.ToString())); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldReturnEmptyMapForEmptyProperties() public virtual void ShouldReturnEmptyMapForEmptyProperties() { // Given string node = HTTP.POST(Server().baseUri().resolve("db/data/node").ToString()).location(); string rel = HTTP.POST(node + "/relationships", quotedJson("{'to':'" + node + "', " + "'type':'LOVES'}")).location(); // When HTTP.Response res = HTTP.GET(rel + "/properties"); // Then MatcherAssert.assertThat(res.RawContent(), equalTo("{ }")); }