@Test public void testConfiguration() { Configuration configuration = new Configuration(); assertNull(configuration.repository()); assertNull(configuration.scheduler()); Environment.setenv(Configuration.PRODIGY_FAULT_REPOSITORY, "repository-1"); Environment.setenv(Configuration.PRODIGY_FAULT_SCHEDULER, "scheduler-2"); configuration = new Configuration(); assertThat(configuration.repository(), is("repository-1")); assertThat(configuration.scheduler(), is("scheduler-2")); }
public Configuration() { this(Environment.getenv(PRODIGY_FAULT_SCHEDULER), Environment.getenv(PRODIGY_FAULT_REPOSITORY)); }
Configuration { public Configuration() { this(Environment.getenv(PRODIGY_FAULT_SCHEDULER), Environment.getenv(PRODIGY_FAULT_REPOSITORY)); } }
Configuration { public Configuration() { this(Environment.getenv(PRODIGY_FAULT_SCHEDULER), Environment.getenv(PRODIGY_FAULT_REPOSITORY)); } Configuration();  Configuration(String scheduler, String repository); }
Configuration { public Configuration() { this(Environment.getenv(PRODIGY_FAULT_SCHEDULER), Environment.getenv(PRODIGY_FAULT_REPOSITORY)); } Configuration();  Configuration(String scheduler, String repository); String scheduler(); String repository(); }
Configuration { public Configuration() { this(Environment.getenv(PRODIGY_FAULT_SCHEDULER), Environment.getenv(PRODIGY_FAULT_REPOSITORY)); } Configuration();  Configuration(String scheduler, String repository); String scheduler(); String repository(); static final String PRODIGY_FAULT_SCHEDULER; static final String PRODIGY_FAULT_REPOSITORY; }