@Test public final void testIsEtherTypeOfOneWithinTwo_oneEthTypeNullTwoEthTypeIPv4() { SecurityRule one = secRuleBuilder.setEthertype(null).build(); SecurityRule two = secRuleBuilder.setEthertype(EthertypeV4.class).build(); assertFalse(SecRuleEntityDecoder.isEtherTypeOfOneWithinTwo(one, two)); }
public static boolean isEtherTypeOfOneWithinTwo(SecurityRule one, SecurityRule two) { Long oneEtherType = getEtherType(one); Long twoEtherType = getEtherType(two); return twoIsNullOrEqualsOne(oneEtherType, twoEtherType); }
SecRuleEntityDecoder { public static boolean isEtherTypeOfOneWithinTwo(SecurityRule one, SecurityRule two) { Long oneEtherType = getEtherType(one); Long twoEtherType = getEtherType(two); return twoIsNullOrEqualsOne(oneEtherType, twoEtherType); } }
SecRuleEntityDecoder { public static boolean isEtherTypeOfOneWithinTwo(SecurityRule one, SecurityRule two) { Long oneEtherType = getEtherType(one); Long twoEtherType = getEtherType(two); return twoIsNullOrEqualsOne(oneEtherType, twoEtherType); } private  SecRuleEntityDecoder(); }
SecRuleEntityDecoder { public static boolean isEtherTypeOfOneWithinTwo(SecurityRule one, SecurityRule two) { Long oneEtherType = getEtherType(one); Long twoEtherType = getEtherType(two); return twoIsNullOrEqualsOne(oneEtherType, twoEtherType); } private  SecRuleEntityDecoder(); static ContractId getContractId(SecurityRule secRule); static ClassifierInstance getClassifierInstance(SecurityRule secRule); static ActionRef createActionRefFromActionChoice(ActionChoice action); static ClassifierRef getClassifierRef(SecurityRule secRule); static Direction getDirection(SecurityRule secRule); static Clause getClause(SecurityRule secRule); static boolean isEtherTypeOfOneWithinTwo(SecurityRule one, SecurityRule two); static boolean isProtocolOfOneWithinTwo(SecurityRule one, SecurityRule two); static boolean isPortsOfOneWithinTwo(SecurityRule one, SecurityRule two); static Long getEtherType(SecurityRule secRule); static Long getProtocol(SecurityRule secRule); }
SecRuleEntityDecoder { public static boolean isEtherTypeOfOneWithinTwo(SecurityRule one, SecurityRule two) { Long oneEtherType = getEtherType(one); Long twoEtherType = getEtherType(two); return twoIsNullOrEqualsOne(oneEtherType, twoEtherType); } private  SecRuleEntityDecoder(); static ContractId getContractId(SecurityRule secRule); static ClassifierInstance getClassifierInstance(SecurityRule secRule); static ActionRef createActionRefFromActionChoice(ActionChoice action); static ClassifierRef getClassifierRef(SecurityRule secRule); static Direction getDirection(SecurityRule secRule); static Clause getClause(SecurityRule secRule); static boolean isEtherTypeOfOneWithinTwo(SecurityRule one, SecurityRule two); static boolean isProtocolOfOneWithinTwo(SecurityRule one, SecurityRule two); static boolean isPortsOfOneWithinTwo(SecurityRule one, SecurityRule two); static Long getEtherType(SecurityRule secRule); static Long getProtocol(SecurityRule secRule);  }