@Test public void testDestroy() { final BaseIncludedModelActiveRecord includedModel = mock(BaseIncludedModelActiveRecord.class); when(includedModel.getNamespace()).thenReturn(namespace); handler.destroy(includedModel); assertEquals(0, nsContext.size()); }
public void destroy(final BaseIncludedModelActiveRecord includedModel) { NamespaceHandler.removeIncludedNamespace(getNsContext(), includedModel.getNamespace()); }
DefinitionsHandler { public void destroy(final BaseIncludedModelActiveRecord includedModel) { NamespaceHandler.removeIncludedNamespace(getNsContext(), includedModel.getNamespace()); } }
DefinitionsHandler { public void destroy(final BaseIncludedModelActiveRecord includedModel) { NamespaceHandler.removeIncludedNamespace(getNsContext(), includedModel.getNamespace()); } @Inject  DefinitionsHandler(final IncludedModelsPageStateProviderImpl stateProvider,
                              final DMNGraphUtils dmnGraphUtils); }
DefinitionsHandler { public void destroy(final BaseIncludedModelActiveRecord includedModel) { NamespaceHandler.removeIncludedNamespace(getNsContext(), includedModel.getNamespace()); } @Inject  DefinitionsHandler(final IncludedModelsPageStateProviderImpl stateProvider,
                              final DMNGraphUtils dmnGraphUtils); void destroy(final BaseIncludedModelActiveRecord includedModel); void create(final BaseIncludedModelActiveRecord includedModel); }
DefinitionsHandler { public void destroy(final BaseIncludedModelActiveRecord includedModel) { NamespaceHandler.removeIncludedNamespace(getNsContext(), includedModel.getNamespace()); } @Inject  DefinitionsHandler(final IncludedModelsPageStateProviderImpl stateProvider,
                              final DMNGraphUtils dmnGraphUtils); void destroy(final BaseIncludedModelActiveRecord includedModel); void create(final BaseIncludedModelActiveRecord includedModel);  }