BotEvaluation / MensaService

0 stars 0 forks source link

[API Test]: #1

Closed BobCAE closed 2 years ago

BobCAE commented 2 years ago

Request method

GET

Request Path

/mensa

Request Body

No response

Expected Status Code

200 (OK)

Response Body Assertions

api-testing-bot[bot] commented 2 years ago

Here is the generated test method code:

  public void testCase() {
    MiniClient c = new MiniClient(mainPath);
    c.setConnectorEndpoint(connector.getHttpEndpoint());

    try {
      c.setLogin(AnonymousAgentImpl.IDENTIFIER, "");
      ClientResponse result = c.sendRequest("GET", "/mensa", """
""", "text/plain", "*/*", new HashMap<>(), new Object[0]);

      Assert.assertEquals(200, result.getHttpCode());

    } catch (Exception e) {
      e.printStackTrace();
      fail("Exception: " + e);
    }

  }