@Test public void testGetModelProviders() { assertEquals(provider1, tested.getModelProvider(diagram1)); assertEquals(provider2, tested.getModelProvider(diagram2)); }
public FormGenerationModelProvider<?> getModelProvider(final Diagram diagram) { for (FormGenerationModelProvider provider : providers) { if (provider.accepts(diagram)) { return provider; } } return null; }
FormGenerationModelProviders { public FormGenerationModelProvider<?> getModelProvider(final Diagram diagram) { for (FormGenerationModelProvider provider : providers) { if (provider.accepts(diagram)) { return provider; } } return null; } }
FormGenerationModelProviders { public FormGenerationModelProvider<?> getModelProvider(final Diagram diagram) { for (FormGenerationModelProvider provider : providers) { if (provider.accepts(diagram)) { return provider; } } return null; } protected  FormGenerationModelProviders(); @Inject  FormGenerationModelProviders(final @Any Instance<FormGenerationModelProvider<?>> providers);   FormGenerationModelProviders(final Iterable<FormGenerationModelProvider<?>> providers); }
FormGenerationModelProviders { public FormGenerationModelProvider<?> getModelProvider(final Diagram diagram) { for (FormGenerationModelProvider provider : providers) { if (provider.accepts(diagram)) { return provider; } } return null; } protected  FormGenerationModelProviders(); @Inject  FormGenerationModelProviders(final @Any Instance<FormGenerationModelProvider<?>> providers);   FormGenerationModelProviders(final Iterable<FormGenerationModelProvider<?>> providers); FormGenerationModelProvider<?> getModelProvider(final Diagram diagram); }
FormGenerationModelProviders { public FormGenerationModelProvider<?> getModelProvider(final Diagram diagram) { for (FormGenerationModelProvider provider : providers) { if (provider.accepts(diagram)) { return provider; } } return null; } protected  FormGenerationModelProviders(); @Inject  FormGenerationModelProviders(final @Any Instance<FormGenerationModelProvider<?>> providers);   FormGenerationModelProviders(final Iterable<FormGenerationModelProvider<?>> providers); FormGenerationModelProvider<?> getModelProvider(final Diagram diagram);  }