Search in sources :

Example 1 with UnknownThrottlePolicySignature

use of com.yahoo.container.jdisc.messagebus.SessionCache.UnknownThrottlePolicySignature in project vespa by vespa-engine.

the class MbusSessionKeyTestCase method unknownThrottlePolicySignature.

@Test
public final void unknownThrottlePolicySignature() {
    final UnknownThrottlePolicySignature baseSig = new UnknownThrottlePolicySignature(new StaticThrottlePolicy());
    final UnknownThrottlePolicySignature otherSig = new UnknownThrottlePolicySignature(new StaticThrottlePolicy());
    assertEquals(baseSig, baseSig);
    assertFalse(otherSig.equals(baseSig));
}
Also used : UnknownThrottlePolicySignature(com.yahoo.container.jdisc.messagebus.SessionCache.UnknownThrottlePolicySignature) StaticThrottlePolicy(com.yahoo.messagebus.StaticThrottlePolicy) Test(org.junit.Test)

Aggregations

UnknownThrottlePolicySignature (com.yahoo.container.jdisc.messagebus.SessionCache.UnknownThrottlePolicySignature)1 StaticThrottlePolicy (com.yahoo.messagebus.StaticThrottlePolicy)1 Test (org.junit.Test)1