Search in sources :

Example 1 with SourceSessionKey

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)));
}
Also used : SourceSessionKey(com.yahoo.container.jdisc.messagebus.SessionCache.SourceSessionKey) SourceSessionParams(com.yahoo.messagebus.SourceSessionParams) Test(org.junit.Test)

Aggregations

SourceSessionKey (com.yahoo.container.jdisc.messagebus.SessionCache.SourceSessionKey)1 SourceSessionParams (com.yahoo.messagebus.SourceSessionParams)1 Test (org.junit.Test)1