@Test public void simple() { Class<? extends DirectFileOutputDescription> aClass = generate(new Description("Testing", name(MockData.class))); assertThat(DirectFileOutputDescription.class.isAssignableFrom(aClass), is(true)); assertThat(Modifier.isAbstract(aClass.getModifiers()), is(true)); assertThat(aClass, hasGetter("getModelType")); assertThat(aClass, not(hasGetter("getBasePath"))); assertThat(aClass, not(hasGetter("getResourcePattern"))); assertThat(aClass, not(hasGetter("getFormat"))); }
public static void generate(EmitContext context, Description description) throws IOException { new DirectFileOutputDescriptionGenerator(context, description).emit(); }
DirectFileOutputDescriptionGenerator { public static void generate(EmitContext context, Description description) throws IOException { new DirectFileOutputDescriptionGenerator(context, description).emit(); } }
DirectFileOutputDescriptionGenerator { public static void generate(EmitContext context, Description description) throws IOException { new DirectFileOutputDescriptionGenerator(context, description).emit(); } private  DirectFileOutputDescriptionGenerator(EmitContext context, Description description); }
DirectFileOutputDescriptionGenerator { public static void generate(EmitContext context, Description description) throws IOException { new DirectFileOutputDescriptionGenerator(context, description).emit(); } private  DirectFileOutputDescriptionGenerator(EmitContext context, Description description); static void generate(EmitContext context, Description description); }
DirectFileOutputDescriptionGenerator { public static void generate(EmitContext context, Description description) throws IOException { new DirectFileOutputDescriptionGenerator(context, description).emit(); } private  DirectFileOutputDescriptionGenerator(EmitContext context, Description description); static void generate(EmitContext context, Description description);  }