@Test public void testCheckPresenceOfRequiredParams_DstRangeNull() throws IllegalArgumentException { Map<String, ParameterValue> params = new HashMap<>(); params.put(L4ClassifierDefinition.SRC_PORT_PARAM, pvSrcPort80); params.put(L4ClassifierDefinition.DST_PORT_RANGE_PARAM, pvDstRange_null); thrown.expect(IllegalArgumentException.class); thrown.expectMessage(L4Classifier.EXC_MSG_PARAM_VALUE_NOT_SPECIFIED); Classifier.L4_CL.checkPresenceOfRequiredParams(params); }
@Override protected void checkPresenceOfRequiredParams(Map<String, ParameterValue> params) { validatePortParam(params, L4ClassifierDefinition.SRC_PORT_PARAM, L4ClassifierDefinition.SRC_PORT_RANGE_PARAM); validatePortParam(params, L4ClassifierDefinition.DST_PORT_PARAM, L4ClassifierDefinition.DST_PORT_RANGE_PARAM); validateRange(params, L4ClassifierDefinition.SRC_PORT_RANGE_PARAM); validateRange(params, L4ClassifierDefinition.DST_PORT_RANGE_PARAM); }
L4Classifier extends Classifier { @Override protected void checkPresenceOfRequiredParams(Map<String, ParameterValue> params) { validatePortParam(params, L4ClassifierDefinition.SRC_PORT_PARAM, L4ClassifierDefinition.SRC_PORT_RANGE_PARAM); validatePortParam(params, L4ClassifierDefinition.DST_PORT_PARAM, L4ClassifierDefinition.DST_PORT_RANGE_PARAM); validateRange(params, L4ClassifierDefinition.SRC_PORT_RANGE_PARAM); validateRange(params, L4ClassifierDefinition.DST_PORT_RANGE_PARAM); } }
L4Classifier extends Classifier { @Override protected void checkPresenceOfRequiredParams(Map<String, ParameterValue> params) { validatePortParam(params, L4ClassifierDefinition.SRC_PORT_PARAM, L4ClassifierDefinition.SRC_PORT_RANGE_PARAM); validatePortParam(params, L4ClassifierDefinition.DST_PORT_PARAM, L4ClassifierDefinition.DST_PORT_RANGE_PARAM); validateRange(params, L4ClassifierDefinition.SRC_PORT_RANGE_PARAM); validateRange(params, L4ClassifierDefinition.DST_PORT_RANGE_PARAM); } protected  L4Classifier(Classifier parent); }
L4Classifier extends Classifier { @Override protected void checkPresenceOfRequiredParams(Map<String, ParameterValue> params) { validatePortParam(params, L4ClassifierDefinition.SRC_PORT_PARAM, L4ClassifierDefinition.SRC_PORT_RANGE_PARAM); validatePortParam(params, L4ClassifierDefinition.DST_PORT_PARAM, L4ClassifierDefinition.DST_PORT_RANGE_PARAM); validateRange(params, L4ClassifierDefinition.SRC_PORT_RANGE_PARAM); validateRange(params, L4ClassifierDefinition.DST_PORT_RANGE_PARAM); } protected  L4Classifier(Classifier parent); @Override ClassifierDefinitionId getId(); @Override ClassifierDefinition getClassifierDefinition(); @Override List<SupportedParameterValues> getSupportedParameterValues(); }
L4Classifier extends Classifier { @Override protected void checkPresenceOfRequiredParams(Map<String, ParameterValue> params) { validatePortParam(params, L4ClassifierDefinition.SRC_PORT_PARAM, L4ClassifierDefinition.SRC_PORT_RANGE_PARAM); validatePortParam(params, L4ClassifierDefinition.DST_PORT_PARAM, L4ClassifierDefinition.DST_PORT_RANGE_PARAM); validateRange(params, L4ClassifierDefinition.SRC_PORT_RANGE_PARAM); validateRange(params, L4ClassifierDefinition.DST_PORT_RANGE_PARAM); } protected  L4Classifier(Classifier parent); @Override ClassifierDefinitionId getId(); @Override ClassifierDefinition getClassifierDefinition(); @Override List<SupportedParameterValues> getSupportedParameterValues();  }