Skip to content
Snippets Groups Projects
Commit 9d2147f6 authored by Nelson Tavares de Sousa's avatar Nelson Tavares de Sousa
Browse files

merged master branch

parent a12b86bc
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ public class PipeFactoryLoader {
return pipeFactories;
}
public static List<IPipeFactory> loadPipefactoriesFromClasspath(final String configFileName) {
public static List<IPipeFactory> loadPipeFactoriesFromClasspath(final String configFileName) {
List<URL> files = null;
......
......@@ -48,7 +48,7 @@ public final class PipeFactoryRegistry {
public static PipeFactoryRegistry INSTANCE = new PipeFactoryRegistry("pipe-factories.conf");
private PipeFactoryRegistry(final String configFileName) {
List<IPipeFactory> pipeFactories = PipeFactoryLoader.loadPipefactoriesFromClasspath(configFileName);
List<IPipeFactory> pipeFactories = PipeFactoryLoader.loadPipeFactoriesFromClasspath(configFileName);
for (IPipeFactory pipeFactory : pipeFactories) {
this.register(pipeFactory);
}
......
......@@ -37,13 +37,13 @@ public class FileSearcherTest {
@Test
public void emptyConfig() throws IOException {
List<IPipeFactory> list = PipeFactoryLoader.loadPipefactoriesFromClasspath("data/empty-test.conf");
List<IPipeFactory> list = PipeFactoryLoader.loadPipeFactoriesFromClasspath("data/empty-test.conf");
Assert.assertEquals(true, list.isEmpty());
}
@Test
public void singleConfig() throws IOException {
List<IPipeFactory> list = PipeFactoryLoader.loadPipefactoriesFromClasspath("pipe-factories.conf");
List<IPipeFactory> list = PipeFactoryLoader.loadPipeFactoriesFromClasspath("pipe-factories.conf");
int lines = this.countLines(new File("conf/pipe-factories.conf"));
Assert.assertEquals(lines, list.size());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment