test_class.declarator: parser
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private DefinitionParser parser;
test_class.type: DefinitionParser
test_class.var_name: parser
test_class.declarator: generator
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ClassGenerator generator;
test_class.type: ClassGenerator
test_class.var_name: generator
test_class.declarator: definition1
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ClassDefinition definition1;
test_class.type: ClassDefinition
test_class.var_name: definition1
test_class.declarator: definition2
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ClassDefinition definition2;
test_class.type: ClassDefinition
test_class.var_name: definition2
test_class.declarator: sourceFile1
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private JavaSourceFile sourceFile1;
test_class.type: JavaSourceFile
test_class.var_name: sourceFile1
test_class.declarator: sourceFile2
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private JavaSourceFile sourceFile2;
test_class.type: JavaSourceFile
test_class.var_name: sourceFile2
test_class.declarator: definitions
test_class.modifier: private
test_class.original_string: private Set<ClassDefinition> definitions;
test_class.type: Set<ClassDefinition>
test_class.var_name: definitions
test_class.declarator: sourceFiles
test_class.modifier: private
test_class.original_string: private Set<JavaSourceFile> sourceFiles;
test_class.type: Set<JavaSourceFile>
test_class.var_name: sourceFiles
test_class.declarator: instance
test_class.modifier: private
test_class.original_string: private DomainClassGenerator instance;
test_class.type: DomainClassGenerator
test_class.var_name: instance
test_class.file: dddlib-codegen/dddlib-codegen-api/src/test/java/org/dddlib/codegen/api/DomainClassGeneratorTest.java
test_class.identifier: DomainClassGeneratorTest
test_case.body: @Test
      public void generateFromFilename() throws Exception {
          String filename = getClass().getResource("/sales.yml").getFile();
          when(parser.parseFile(filename)).thenReturn(definitions);
          when(generator.generate(definition1)).thenReturn(sourceFile1);
          when(generator.generate(definition2)).thenReturn(sourceFile2);
          Set<JavaSourceFile> results = instance.generateFromFile(filename);
          assertThat(results).containsExactlyInAnyOrder(sourceFile1, sourceFile2);
      }
test_case.class_method_signature: DomainClassGeneratorTest.generateFromFilename()
test_case.full_signature: @Test public void generateFromFilename()
test_case.identifier: generateFromFilename
test_case.invocations: getFile getResource getClass thenReturn when parseFile thenReturn when generate thenReturn when generate generateFromFile containsExactlyInAnyOrder assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void generateFromFilename()
focal_class.declarator: parsers
focal_class.modifier: private
focal_class.original_string: private Set<DefinitionParser> parsers;
focal_class.type: Set<DefinitionParser>
focal_class.var_name: parsers
focal_class.declarator: generator
focal_class.modifier: private
focal_class.original_string: private ClassGenerator generator;
focal_class.type: ClassGenerator
focal_class.var_name: generator
focal_class.file: dddlib-codegen/dddlib-codegen-api/src/main/java/org/dddlib/codegen/api/DomainClassGenerator.java
focal_class.identifier: DomainClassGenerator
focal_class.class_method_signature: DomainClassGenerator.DomainClassGenerator(Set<DefinitionParser> parsers, ClassGenerator generator)
focal_class.full_signature: public  DomainClassGenerator(Set<DefinitionParser> parsers, ClassGenerator generator)
focal_class.identifier: DomainClassGenerator
focal_class.modifiers: public
focal_class.parameters: (Set<DefinitionParser> parsers, ClassGenerator generator)
focal_class.signature:  DomainClassGenerator(Set<DefinitionParser> parsers, ClassGenerator generator)
focal_class.class_method_signature: DomainClassGenerator.generateFromFile(String file)
focal_class.full_signature: public Set<JavaSourceFile> generateFromFile(String file)
focal_class.identifier: generateFromFile
focal_class.modifiers: public
focal_class.parameters: (String file)
focal_class.return: Set<JavaSourceFile>
focal_class.signature: Set<JavaSourceFile> generateFromFile(String file)
focal_class.class_method_signature: DomainClassGenerator.generateFromFile(File file)
focal_class.full_signature: public Set<JavaSourceFile> generateFromFile(File file)
focal_class.identifier: generateFromFile
focal_class.modifiers: public
focal_class.parameters: (File file)
focal_class.return: Set<JavaSourceFile>
focal_class.signature: Set<JavaSourceFile> generateFromFile(File file)
focal_class.class_method_signature: DomainClassGenerator.generateFromClasspath(String filePath)
focal_class.full_signature: public Set<JavaSourceFile> generateFromClasspath(String filePath)
focal_class.identifier: generateFromClasspath
focal_class.modifiers: public
focal_class.parameters: (String filePath)
focal_class.return: Set<JavaSourceFile>
focal_class.signature: Set<JavaSourceFile> generateFromClasspath(String filePath)
focal_class.class_method_signature: DomainClassGenerator.generateFromReader(Reader in, String type)
focal_class.full_signature: public Set<JavaSourceFile> generateFromReader(Reader in, String type)
focal_class.identifier: generateFromReader
focal_class.modifiers: public
focal_class.parameters: (Reader in, String type)
focal_class.return: Set<JavaSourceFile>
focal_class.signature: Set<JavaSourceFile> generateFromReader(Reader in, String type)
focal_class.class_method_signature: DomainClassGenerator.generateFrom(Set<ClassDefinition> definitions)
focal_class.full_signature: private Set<JavaSourceFile> generateFrom(Set<ClassDefinition> definitions)
focal_class.identifier: generateFrom
focal_class.modifiers: private
focal_class.parameters: (Set<ClassDefinition> definitions)
focal_class.return: Set<JavaSourceFile>
focal_class.signature: Set<JavaSourceFile> generateFrom(Set<ClassDefinition> definitions)
focal_class.class_method_signature: DomainClassGenerator.parserOf(String ext)
focal_class.full_signature: private DefinitionParser parserOf(String ext)
focal_class.identifier: parserOf
focal_class.modifiers: private
focal_class.parameters: (String ext)
focal_class.return: DefinitionParser
focal_class.signature: DefinitionParser parserOf(String ext)
focal_class.class_method_signature: DomainClassGenerator.getExtOfFile(String filename)
focal_class.full_signature: private String getExtOfFile(String filename)
focal_class.identifier: getExtOfFile
focal_class.modifiers: private
focal_class.parameters: (String filename)
focal_class.return: String
focal_class.signature: String getExtOfFile(String filename)
focal_method.body: public Set<JavaSourceFile> generateFromFile(String file) {
          String ext = getExtOfFile(file);
          return generateFrom(parserOf(ext).parseFile(file));
      }
focal_method.class_method_signature: DomainClassGenerator.generateFromFile(String file)
focal_method.full_signature: public Set<JavaSourceFile> generateFromFile(String file)
focal_method.identifier: generateFromFile
focal_method.invocations: getExtOfFile generateFrom parseFile parserOf
focal_method.modifiers: public
focal_method.parameters: (String file)
focal_method.return: Set<JavaSourceFile>
focal_method.signature: Set<JavaSourceFile> generateFromFile(String file)