@Test(expected = UnsupportedOperationException.class) public void testModelDefinitionsAreUnmodifiable() { this.testee.getModelDefinitions().add(mock(ModelDefinition.class)); }
@Nonnull @Override public Collection<ModelDefinition<?>> getModelDefinitions() { return this.modelDefinitions; }
ModelFactory implements ResourceModelFactory { @Nonnull @Override public Collection<ModelDefinition<?>> getModelDefinitions() { return this.modelDefinitions; } }
ModelFactory implements ResourceModelFactory { @Nonnull @Override public Collection<ModelDefinition<?>> getModelDefinitions() { return this.modelDefinitions; } ModelFactory(Bundle bundle); }
ModelFactory implements ResourceModelFactory { @Nonnull @Override public Collection<ModelDefinition<?>> getModelDefinitions() { return this.modelDefinitions; } ModelFactory(Bundle bundle); @Nonnull @Override Collection<ModelDefinition<?>> getModelDefinitions(); @Override T provideModel(@Nonnull ModelDefinition<T> modelDefinition, @Nonnull ContentToModelMappingCallback<T> callback); }
ModelFactory implements ResourceModelFactory { @Nonnull @Override public Collection<ModelDefinition<?>> getModelDefinitions() { return this.modelDefinitions; } ModelFactory(Bundle bundle); @Nonnull @Override Collection<ModelDefinition<?>> getModelDefinitions(); @Override T provideModel(@Nonnull ModelDefinition<T> modelDefinition, @Nonnull ContentToModelMappingCallback<T> callback);  }