@Test public void shouldReturnFalseWhenDeliveryHappenedNotAtHome() throws Exception { boolean rulePassed = deliveryHappenedAtHomeRule.apply(new SafeMap(mapOf("deliveryPlace", "subcenter"))); assertFalse(rulePassed); rulePassed = deliveryHappenedAtHomeRule.apply(new SafeMap(mapOf("deliveryPlace", "phc"))); assertFalse(rulePassed); }
@Test public void shouldReturnTrueWhenDeliveryHappenedAtHome() throws Exception { boolean rulePassed = deliveryHappenedAtHomeRule.apply(new SafeMap(mapOf("deliveryPlace", "home"))); assertTrue(rulePassed); }