@Test(groups = SMALL, expectedExceptions = IllegalArgumentException.class) public void testCanNotSetSmallerOrEqualEventId() { Listener listener = new Listener("table"); listener.setLastEventId(0); }
public void setLastEventId(long lastEventId) { isTrue(lastEventId > this.lastEventId, "New event id should be greater than current event id"); this.lastEventId = lastEventId; }
Listener { public void setLastEventId(long lastEventId) { isTrue(lastEventId > this.lastEventId, "New event id should be greater than current event id"); this.lastEventId = lastEventId; } }
Listener { public void setLastEventId(long lastEventId) { isTrue(lastEventId > this.lastEventId, "New event id should be greater than current event id"); this.lastEventId = lastEventId; } Listener(String tableName);  Listener(String tableName, int waitTimeout);  Listener(long id, String tableName, int waitTimeout, Date lastCheck, long lastEventId); }
Listener { public void setLastEventId(long lastEventId) { isTrue(lastEventId > this.lastEventId, "New event id should be greater than current event id"); this.lastEventId = lastEventId; } Listener(String tableName);  Listener(String tableName, int waitTimeout);  Listener(long id, String tableName, int waitTimeout, Date lastCheck, long lastEventId); long getId(); String getTableName(); long getWaitTimeout(); Date getLastCheck(); long getLastEventId(); void setLastCheck(Date lastCheck); void setLastEventId(long lastEventId); }
Listener { public void setLastEventId(long lastEventId) { isTrue(lastEventId > this.lastEventId, "New event id should be greater than current event id"); this.lastEventId = lastEventId; } Listener(String tableName);  Listener(String tableName, int waitTimeout);  Listener(long id, String tableName, int waitTimeout, Date lastCheck, long lastEventId); long getId(); String getTableName(); long getWaitTimeout(); Date getLastCheck(); long getLastEventId(); void setLastCheck(Date lastCheck); void setLastEventId(long lastEventId);  }