@Test public void testGenerateFormForClassName() { FormDefinition form = formBuildingService.generateFormForClassName(Person.class.getName()); testGeneratedForm(form, Person.class.getName()); }
@Override public FormDefinition generateFormForClassName(String className, FormElementFilter... filters) { if (className == null) { throw new IllegalArgumentException("Cannot generate form: Class cannot be null"); } return formGenerator.generateFormForClassName(className, filters); }
FormBuildingServiceImpl implements FormBuildingService { @Override public FormDefinition generateFormForClassName(String className, FormElementFilter... filters) { if (className == null) { throw new IllegalArgumentException("Cannot generate form: Class cannot be null"); } return formGenerator.generateFormForClassName(className, filters); } }
FormBuildingServiceImpl implements FormBuildingService { @Override public FormDefinition generateFormForClassName(String className, FormElementFilter... filters) { if (className == null) { throw new IllegalArgumentException("Cannot generate form: Class cannot be null"); } return formGenerator.generateFormForClassName(className, filters); } @Inject  FormBuildingServiceImpl(FormGenerator formGenerator); }
FormBuildingServiceImpl implements FormBuildingService { @Override public FormDefinition generateFormForClassName(String className, FormElementFilter... filters) { if (className == null) { throw new IllegalArgumentException("Cannot generate form: Class cannot be null"); } return formGenerator.generateFormForClassName(className, filters); } @Inject  FormBuildingServiceImpl(FormGenerator formGenerator); @Override FormDefinition generateFormForModel(Object model, FormElementFilter... filters); @Override FormDefinition generateFormForClass(Class clazz, FormElementFilter... filters); @Override FormDefinition generateFormForClassName(String className, FormElementFilter... filters); }
FormBuildingServiceImpl implements FormBuildingService { @Override public FormDefinition generateFormForClassName(String className, FormElementFilter... filters) { if (className == null) { throw new IllegalArgumentException("Cannot generate form: Class cannot be null"); } return formGenerator.generateFormForClassName(className, filters); } @Inject  FormBuildingServiceImpl(FormGenerator formGenerator); @Override FormDefinition generateFormForModel(Object model, FormElementFilter... filters); @Override FormDefinition generateFormForClass(Class clazz, FormElementFilter... filters); @Override FormDefinition generateFormForClassName(String className, FormElementFilter... filters);  }