Beispiel #1
0
  @Test
  public void testToString() {
    validEntry.setValue("Value");
    validEntry.setUsername("username");
    validEntry.setClazz(TrialSite.class);
    validEntry.setAction(ActionType.LOGIN);
    validEntry.setIdentifier(1000);
    assertNotNull(validEntry.toString());
    assertTrue(validEntry.toString().length() > 0);

    validEntry = new LogEntry();
    validEntry.setUsername("username");
    validEntry.setAction(ActionType.LOGIN);
    assertNotNull(validEntry.toString());
    assertTrue(validEntry.toString().length() > 0);
  }
Beispiel #2
0
 @Test
 public void testIdentifier() {
   assertTrue(validEntry.getIdentifier() <= 0);
   validEntry.setIdentifier(1000);
   assertTrue(validEntry.getIdentifier() == 1000);
 }