@Test public void shouldRetrunBooleanValueFromSystemProperty() { System.setProperty(TEST_PROPERTY, "true"); assertThat(service .produceBooleanSystemProperty( mockInjectionPoint(TEST_PROPERTY, NOT_SET, NOT_SET))) .isTrue(); }
@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);  }