MegabyteCountRolloverCondition implements RolloverCondition { @Override public void accept(Visitor visitor) { notNull(visitor, "visitor must be non-null"); visitor.visit(this); } MegabyteCountRolloverCondition(long megabyteCountThreshold); long getMegabyteCountThreshold(); void setMegabyteCountThreshold(long megabyteCountThreshold); @Override boolean isRolloverReady(PacketBuffer packetBuffer); @Override void accept(Visitor visitor); @Override String toString(); static final long MIN_VALUE; static final long MAX_VALUE; }
@Test public void testAccept() { RolloverCondition.Visitor visitor = mock(RolloverCondition.Visitor.class); condition.accept(visitor); verify(visitor).visit(condition); }