@Test void testFromYamlNullEmail() throws Exception { ThunderConfiguration configuration = FACTORY.build(new File(Resources.getResource( "fixtures/configuration/thunder-config-null-email.yaml").toURI())); assertTrue(configuration.getEmailServiceFactory() instanceof DisabledEmailServiceFactory); }
EmailServiceFactory getEmailServiceFactory() { return Optional.ofNullable(emailServiceFactory) .orElse(new DisabledEmailServiceFactory()); }
ThunderConfiguration extends Configuration { EmailServiceFactory getEmailServiceFactory() { return Optional.ofNullable(emailServiceFactory) .orElse(new DisabledEmailServiceFactory()); } }
ThunderConfiguration extends Configuration { EmailServiceFactory getEmailServiceFactory() { return Optional.ofNullable(emailServiceFactory) .orElse(new DisabledEmailServiceFactory()); }  }
ThunderConfiguration extends Configuration { EmailServiceFactory getEmailServiceFactory() { return Optional.ofNullable(emailServiceFactory) .orElse(new DisabledEmailServiceFactory()); }   }
ThunderConfiguration extends Configuration { EmailServiceFactory getEmailServiceFactory() { return Optional.ofNullable(emailServiceFactory) .orElse(new DisabledEmailServiceFactory()); }    }