@Test public void testGenerator() { FakeFileManager fileManager = new FakeFileManager(new File("/")); TestGenerator generator = new TestGenerator(fileManager); assertThat(generator.getFileManager(), is(sameInstance(fileManager))); }
public Generator(FileManager manager) { fileManager = manager; }
Generator { public Generator(FileManager manager) { fileManager = manager; } }
Generator { public Generator(FileManager manager) { fileManager = manager; } Generator(FileManager manager); }
Generator { public Generator(FileManager manager) { fileManager = manager; } Generator(FileManager manager); abstract void generate(ProgramTypeRegistry registry); void generateGlobal(ProgramRegistry registry,
                               Collection<File> inputFiles); }
Generator { public Generator(FileManager manager) { fileManager = manager; } Generator(FileManager manager); abstract void generate(ProgramTypeRegistry registry); void generateGlobal(ProgramRegistry registry,
                               Collection<File> inputFiles);  }