@Test public void shouldProcessBooleanAsAccordingToBooleanToBooleanMethod() { assertThat(service.produceBooleanSystemProperty( mockInjectionPoint(NOT_SET, TEST_PROPERTY, "true") )).isTrue(); assertThat(service.produceBooleanSystemProperty( mockInjectionPoint(NOT_SET, TEST_PROPERTY, "false") )).isFalse(); assertThat(service.produceBooleanSystemProperty( mockInjectionPoint(NOT_SET, TEST_PROPERTY, "f") )).isFalse(); assertThat(service.produceBooleanSystemProperty( mockInjectionPoint(NOT_SET, TEST_PROPERTY, "yes") )).isFalse(); }
@Produces @SystemProperty public Boolean produceBooleanSystemProperty(InjectionPoint ip) { return Boolean.parseBoolean(produceStringSystemProperty(ip)); }
SystemPropertyProducer { @Produces @SystemProperty public Boolean produceBooleanSystemProperty(InjectionPoint ip) { return Boolean.parseBoolean(produceStringSystemProperty(ip)); } }
SystemPropertyProducer { @Produces @SystemProperty public Boolean produceBooleanSystemProperty(InjectionPoint ip) { return Boolean.parseBoolean(produceStringSystemProperty(ip)); }  }
SystemPropertyProducer { @Produces @SystemProperty public Boolean produceBooleanSystemProperty(InjectionPoint ip) { return Boolean.parseBoolean(produceStringSystemProperty(ip)); }  @Produces @SystemProperty String produceStringSystemProperty(InjectionPoint ip); @Produces @SystemProperty Boolean produceBooleanSystemProperty(InjectionPoint ip); @Produces @SystemProperty Integer produceIntegerSystemProperty(InjectionPoint ip); @Produces @SystemProperty Double produceDoubleSystemProperty(InjectionPoint ip); @Produces @SystemProperty BigDecimal produceBigDecimalSystemProperty(InjectionPoint ip); }
SystemPropertyProducer { @Produces @SystemProperty public Boolean produceBooleanSystemProperty(InjectionPoint ip) { return Boolean.parseBoolean(produceStringSystemProperty(ip)); }  @Produces @SystemProperty String produceStringSystemProperty(InjectionPoint ip); @Produces @SystemProperty Boolean produceBooleanSystemProperty(InjectionPoint ip); @Produces @SystemProperty Integer produceIntegerSystemProperty(InjectionPoint ip); @Produces @SystemProperty Double produceDoubleSystemProperty(InjectionPoint ip); @Produces @SystemProperty BigDecimal produceBigDecimalSystemProperty(InjectionPoint ip);  }