@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); }
@Test public void testValue() { assertTrue(validEntry.getValue() == null); validEntry.setValue("Value"); assertEquals("Value", validEntry.getValue()); }