use of com.yahoo.container.jdisc.messagebus.SessionCache.SourceSessionKey in project vespa by vespa-engine.
the class MbusSessionKeyTestCase method sourceSessionKey.
// TODO the session key tests are just smoke tests
@Test
public final void sourceSessionKey() {
final SourceSessionParams base = new SourceSessionParams();
final SourceSessionParams other = new SourceSessionParams();
assertEquals(new SourceSessionKey(base), new SourceSessionKey(other));
other.setTimeout(other.getTimeout() + 1);
assertFalse(new SourceSessionKey(base).equals(new SourceSessionKey(other)));
}
Aggregations