CurrentFPMethodIsDMPAInjectableRule implements IRule { @Override public boolean apply(SafeMap reportFields) { return DMPA_INJECTABLE_FP_METHOD_VALUE.equalsIgnoreCase(reportFields.get(CURRENT_FP_METHOD_FIELD_NAME)); }  @Override boolean apply(SafeMap reportFields);  }
@Test public void shouldReturnFalseWhenNewFPMethodOfECIsNotDMPAInjectable() { boolean didRuleSucceed = rule.apply(new SafeMap(mapOf("currentMethod", "ocp"))); assertFalse(didRuleSucceed); }
@Test public void shouldReturnTrueIfNewFPMethodOfTheECIsDMPAInjectable() { boolean didRuleSucceed = rule.apply(new SafeMap(mapOf("currentMethod", "dmpa_injectable"))); assertTrue(didRuleSucceed); }