Exemplo n.º 1
0
  @Test
  public void restMethodNameMultipleClientRequest() {
    Get get = new Get("twitter", "tweet", "1");
    assertEquals("GET", get.getRestMethodName());

    Delete del = new Delete("Silvester", "Stallone", "2");
    assertEquals("DELETE", del.getRestMethodName());
    assertEquals("GET", get.getRestMethodName());

    Percolate percolate = new Percolate("Celtic", "Boston", "{\"Really good query\"}");
    assertEquals("PUT", percolate.getRestMethodName());
    assertEquals("GET", get.getRestMethodName());
  }