コード例 #1
0
ファイル: TestCondition.java プロジェクト: Ahmed-Azri/midonet
 @Test
 public void testConjunctionInv() {
   Condition cond = new Condition();
   // This condition should match all packets.
   pktCtx.inPortId_$eq(new UUID(rand.nextLong(), rand.nextLong()));
   Assert.assertTrue(cond.matches(pktCtx));
   cond.conjunctionInv = true;
   Assert.assertFalse(cond.matches(pktCtx));
 }