@Test public void concrete() throws Exception { Description description = new Description("Testing", name(MockData.class)); description.setBasePath("base-path"); description.setResourcePattern("*"); description.setFormatClassName(name(MockDataFormat.class)); Class<? extends DirectFileInputDescription> aClass = generate(description); assertThat(DirectFileInputDescription.class.isAssignableFrom(aClass), is(true)); assertThat(Modifier.isAbstract(aClass.getModifiers()), is(false)); DirectFileInputDescription object = aClass.newInstance(); assertThat(object.getModelType(), is((Object) MockData.class)); assertThat(object.getBasePath(), is("base-path")); assertThat(object.getResourcePattern(), is("*")); assertThat(object.getFormat(), is((Object) MockDataFormat.class)); assertThat(object.isOptional(), is(false)); assertThat(object.getDataSize(), is(DataSize.UNKNOWN)); }
public static void generate(EmitContext context, Description description) throws IOException { new DirectFileInputDescriptionGenerator(context, description).emit(); }
DirectFileInputDescriptionGenerator { public static void generate(EmitContext context, Description description) throws IOException { new DirectFileInputDescriptionGenerator(context, description).emit(); } }
DirectFileInputDescriptionGenerator { public static void generate(EmitContext context, Description description) throws IOException { new DirectFileInputDescriptionGenerator(context, description).emit(); } private  DirectFileInputDescriptionGenerator(EmitContext context, Description description); }
DirectFileInputDescriptionGenerator { public static void generate(EmitContext context, Description description) throws IOException { new DirectFileInputDescriptionGenerator(context, description).emit(); } private  DirectFileInputDescriptionGenerator(EmitContext context, Description description); static void generate(EmitContext context, Description description); }
DirectFileInputDescriptionGenerator { public static void generate(EmitContext context, Description description) throws IOException { new DirectFileInputDescriptionGenerator(context, description).emit(); } private  DirectFileInputDescriptionGenerator(EmitContext context, Description description); static void generate(EmitContext context, Description description);  }