import com.google.inject.Injector;
public class PropertyWidgetFactoryTest extends TestCase {
public void testCreateAllPropertyTypes() throws Exception {
Injector injector = Guice.createInjector(new DCModule(DCConfiguration.get()));
AnalysisJobBuilder ajb = injector.getInstance(AnalysisJobBuilder.class);
AnalyzerBeanDescriptor<ManyPropertiesAnalyzer> descriptor = Descriptors.ofAnalyzer(ManyPropertiesAnalyzer.class);
assertEquals(24, descriptor.getConfiguredProperties().size());
AbstractBeanJobBuilder<?, ?, ?> beanJobBuilder = ajb.addRowProcessingAnalyzer(descriptor);
PropertyWidgetFactory propertyWidgetFactory = injector.getInstance(InjectorBuilder.class)
.with(PropertyWidgetFactory.TYPELITERAL_BEAN_JOB_BUILDER, beanJobBuilder).createInjector()
.getInstance(PropertyWidgetFactory.class);
assertNotNull(propertyWidgetFactory);
performAssertions(propertyWidgetFactory, "Int property", SingleNumberPropertyWidget.class, 0, 2);