@Test public void testCreate() { final BaseIncludedModelActiveRecord includedModel = mock(BaseIncludedModelActiveRecord.class); final String newNamespace = ": when(includedModel.getNamespace()).thenReturn(newNamespace); handler.create(includedModel); assertEquals(2, nsContext.size()); assertTrue(nsContext.values().contains(namespace)); assertTrue(nsContext.values().contains(newNamespace)); }
public void create(final BaseIncludedModelActiveRecord includedModel) { NamespaceHandler.addIncludedNamespace(getNsContext(), includedModel.getNamespace()); }
DefinitionsHandler { public void create(final BaseIncludedModelActiveRecord includedModel) { NamespaceHandler.addIncludedNamespace(getNsContext(), includedModel.getNamespace()); } }
DefinitionsHandler { public void create(final BaseIncludedModelActiveRecord includedModel) { NamespaceHandler.addIncludedNamespace(getNsContext(), includedModel.getNamespace()); } @Inject  DefinitionsHandler(final IncludedModelsPageStateProviderImpl stateProvider,
                              final DMNGraphUtils dmnGraphUtils); }
DefinitionsHandler { public void create(final BaseIncludedModelActiveRecord includedModel) { NamespaceHandler.addIncludedNamespace(getNsContext(), includedModel.getNamespace()); } @Inject  DefinitionsHandler(final IncludedModelsPageStateProviderImpl stateProvider,
                              final DMNGraphUtils dmnGraphUtils); void destroy(final BaseIncludedModelActiveRecord includedModel); void create(final BaseIncludedModelActiveRecord includedModel); }
DefinitionsHandler { public void create(final BaseIncludedModelActiveRecord includedModel) { NamespaceHandler.addIncludedNamespace(getNsContext(), includedModel.getNamespace()); } @Inject  DefinitionsHandler(final IncludedModelsPageStateProviderImpl stateProvider,
                              final DMNGraphUtils dmnGraphUtils); void destroy(final BaseIncludedModelActiveRecord includedModel); void create(final BaseIncludedModelActiveRecord includedModel);  }