@Test public void shouldThrowInitializationExceptionWhenLoadingParameterListWithoutInitialization() { ParamRepository paramRepository = new TestFSParamRepository(resourceResolver); catchException(paramRepository).listParameters(); assertThat(caughtException()).isInstanceOf(InitializableComponentNotInitialized.class); }
@Override public Set<String> listParameters() { checkIfInitialized(); return parameters.keySet(); }
AbstractFSParamRepository implements ParamRepository, InitializableComponent { @Override public Set<String> listParameters() { checkIfInitialized(); return parameters.keySet(); } }
AbstractFSParamRepository implements ParamRepository, InitializableComponent { @Override public Set<String> listParameters() { checkIfInitialized(); return parameters.keySet(); } AbstractFSParamRepository(String basePath, String filePattern);  AbstractFSParamRepository(String basePath, String filePattern, ParamDeserializer deserializer); }
AbstractFSParamRepository implements ParamRepository, InitializableComponent { @Override public Set<String> listParameters() { checkIfInitialized(); return parameters.keySet(); } AbstractFSParamRepository(String basePath, String filePattern);  AbstractFSParamRepository(String basePath, String filePattern, ParamDeserializer deserializer); @Override void initialize(); @Override Parameter load(String parameterName); @Override ParameterBatchLoader batchLoad(String parameterName); @Override Set<ParameterEntry> findEntries(String parameterName, String[] levelValues); @Override Set<String> listParameters(); }
AbstractFSParamRepository implements ParamRepository, InitializableComponent { @Override public Set<String> listParameters() { checkIfInitialized(); return parameters.keySet(); } AbstractFSParamRepository(String basePath, String filePattern);  AbstractFSParamRepository(String basePath, String filePattern, ParamDeserializer deserializer); @Override void initialize(); @Override Parameter load(String parameterName); @Override ParameterBatchLoader batchLoad(String parameterName); @Override Set<ParameterEntry> findEntries(String parameterName, String[] levelValues); @Override Set<String> listParameters();  }