test_class.declarator: thrown = ExpectedException.none()
test_class.modifier: @Rule
  	public
test_class.original_string: @Rule
  	public ExpectedException thrown = ExpectedException.none();
test_class.type: ExpectedException
test_class.var_name: thrown
test_class.declarator: schemaVersion
test_class.modifier: private
test_class.original_string: private SchemaVersion schemaVersion;
test_class.type: SchemaVersion
test_class.var_name: schemaVersion
test_class.declarator: schemaBuilder
test_class.modifier: private
test_class.original_string: private Schema.SchemaBuilder schemaBuilder;
test_class.type: Schema.SchemaBuilder
test_class.var_name: schemaBuilder
test_class.declarator: mapper
test_class.modifier: private
test_class.original_string: private JavaTypeMapper mapper;
test_class.type: JavaTypeMapper
test_class.var_name: mapper
test_class.file: compiler/src/test/java/com/expedia/tesla/compiler/SchemaGeneratorTest.java
test_class.identifier: SchemaGeneratorTest
test_case.body: @Test
  	public void testGenerateTml() throws Exception {
  		File tmlFile = File.createTempFile("TestObjectSchema", ".tml");
  		try (FileOutputStream output = new FileOutputStream(tmlFile)) {
  			SchemaGenerator.genTml(Arrays.asList(TestClass.class.getCanonicalName()), schemaVersion, output, null);
  		} 
  		// Load the generated schema file and do the checks.
  		Schema schema = Schema.build(tmlFile.getAbsolutePath());
  		tmlFile.deleteOnExit();
  		assertEquals(this.schemaVersion.getName(), schema.getVersion().getName());
  		assertEquals(this.schemaVersion.getVersionNumber(), schema.getVersion().getVersionNumber());
  		assertNotNull(schema.findType("com.expedia.tesla.compiler.Empty"));
  		assertNotNull(schema.findType("com.expedia.tesla.compiler.TestInterface"));
  		assertNotNull(schema.findType("com.expedia.tesla.compiler.Base"));
  		assertNotNull(schema.findType("com.expedia.tesla.compiler.Sex"));
  		assertNotNull(schema.findType("com.expedia.tesla.compiler.TestClass"));
  	}
test_case.class_method_signature: SchemaGeneratorTest.testGenerateTml()
test_case.full_signature: @Test public void testGenerateTml()
test_case.identifier: testGenerateTml
test_case.invocations: createTempFile genTml asList getCanonicalName build getAbsolutePath deleteOnExit assertEquals getName getName getVersion assertEquals getVersionNumber getVersionNumber getVersion assertNotNull findType assertNotNull findType assertNotNull findType assertNotNull findType assertNotNull findType
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGenerateTml()
focal_class.file: compiler/src/main/java/com/expedia/tesla/compiler/SchemaGenerator.java
focal_class.identifier: SchemaGenerator
focal_class.class_method_signature: SchemaGenerator.genTml(Collection<String> classes, SchemaVersion schemaVersion, OutputStream output, 
  			String classpath)
focal_class.full_signature: public static void genTml(Collection<String> classes, SchemaVersion schemaVersion, OutputStream output, 
  			String classpath)
focal_class.identifier: genTml
focal_class.modifiers: public static
focal_class.parameters: (Collection<String> classes, SchemaVersion schemaVersion, OutputStream output, 
  			String classpath)
focal_class.return: void
focal_class.signature: void genTml(Collection<String> classes, SchemaVersion schemaVersion, OutputStream output, 
  			String classpath)
focal_class.class_method_signature: SchemaGenerator.main(String[] args)
focal_class.full_signature: public static void main(String[] args)
focal_class.identifier: main
focal_class.modifiers: public static
focal_class.parameters: (String[] args)
focal_class.return: void
focal_class.signature: void main(String[] args)
focal_method.body: public static void genTml(Collection<String> classes, SchemaVersion schemaVersion, OutputStream output, 
  			String classpath) throws IOException, TeslaSchemaException, ClassNotFoundException, JAXBException {
  		JavaTypeMapper mapper = new JavaTypeMapper();
  		Schema.SchemaBuilder schemaBuilder = new Schema.SchemaBuilder();
  		schemaBuilder.setVersion(schemaVersion);
  
  		for (String name : classes) {
  			java.lang.Class<?> clzz = Util.loadClass(name, classpath);
  			mapper.fromJavaClass(schemaBuilder, clzz);
  		}
  		schemaBuilder.build().save(output);
  	}
focal_method.class_method_signature: SchemaGenerator.genTml(Collection<String> classes, SchemaVersion schemaVersion, OutputStream output, 
  			String classpath)
focal_method.full_signature: public static void genTml(Collection<String> classes, SchemaVersion schemaVersion, OutputStream output, 
  			String classpath)
focal_method.identifier: genTml
focal_method.invocations: setVersion loadClass fromJavaClass save build
focal_method.modifiers: public static
focal_method.parameters: (Collection<String> classes, SchemaVersion schemaVersion, OutputStream output, 
  			String classpath)
focal_method.return: void
focal_method.signature: void genTml(Collection<String> classes, SchemaVersion schemaVersion, OutputStream output, 
  			String classpath)