LoginAccountingEvent extends BergamotAccountingEvent { @Override public final UUID getTypeId() { return TYPE_ID; } LoginAccountingEvent();  LoginAccountingEvent(long timestamp, UUID siteId, UUID contactId, String host, String username, String sessionId, boolean autoLogin, boolean success, String remoteAddress);  LoginAccountingEvent(UUID siteId, UUID contactId, String host, String username, String sessionId, boolean autoLogin, boolean success, String remoteAddress); @Override final UUID getTypeId(); UUID getContactId(); void setContactId(UUID contactId); String getHost(); void setHost(String host); String getUsername(); void setUsername(String username); String getSessionId(); void setSessionId(String sessionId); boolean isAutoLogin(); void setAutoLogin(boolean autoLogin); boolean isSuccess(); void setSuccess(boolean success); String getRemoteAddress(); void setRemoteAddress(String remoteAddress); String toString(); @Override void pack(ByteBuffer into); @Override void unpack(ByteBuffer from); @Override int hashCode(); @Override boolean equals(Object obj); static final UUID TYPE_ID; }
@Test public void hasTypeId() { assertThat(new LoginAccountingEvent().getTypeId(), is(notNullValue())); }
@Test public void checkTypeId() { assertThat(new LoginAccountingEvent().getTypeId(), is(equalTo(UUID.fromString("c3f43c54-e8a0-45ce-8213-fa71221ae5fc")))); }