Esempio n. 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);
  }
Esempio n. 2
0
 @Test
 public void testAction() {
   assertTrue(validEntry.getAction() == null);
   validEntry.setAction(ActionType.LOGIN);
   assertEquals(ActionType.LOGIN, validEntry.getAction());
 }