예제 #1
0
  @Test
  public void testModel() throws Exception {
    final HawkClient testClient =
        new HawkClient.Builder().credentials(this.testcredentials1).build();
    testClient.toString();
    testClient.hashCode();
    assertEquals(testClient, testClient);
    assertNotEquals(testClient, null);
    assertNotEquals(null, testClient);

    final HawkClient testClient2 =
        new HawkClient.Builder(testClient).credentials(this.testcredentials2).build();
    testClient2.toString();
    testClient2.hashCode();
    assertEquals(testClient2, testClient2);
    assertNotEquals(testClient2, testClient);
  }