Source:
<code>public void testActionOverride() throws Exception { Action viewAction = as.getAction("TAB_VIEW"); assertNotNull(viewAction); assertEquals(2, viewAction.getCategories().length); assertFalse(Arrays.asList(viewAction.getCategories()).contains("OVERRIDE")); assertEquals(1, viewAction.getFilterIds().size()); assertTrue(viewAction.getFilterIds().contains("MyCustomFilter")); Action disabledAction = as.getAction("disabledAction"); assertFalse(disabledAction.isEnabled()); deployContrib("org.nuxeo.ecm.actions.tests", "test-actions-override-contrib.xml"); applyInlineDeployments(); <START> postSetUp(); <END> Action oviewAction = as.getAction("TAB_VIEW"); assertNotNull(oviewAction); assertEquals("newConfirm", oviewAction.getConfirm()); assertEquals(3, oviewAction.getCategories().length); assertTrue(Arrays.asList(oviewAction.getCategories()).contains("OVERRIDE")); assertTrue(Arrays.asList(oviewAction.getCategories()).contains("view")); List<String> filterIds = oviewAction.getFilterIds(); assertNotNull(filterIds); assertEquals(5, filterIds.size()); assertEquals("MyCustomFilter", filterIds.get(0)); assertEquals("newFilterId1", filterIds.get(1)); assertEquals("newFilterId4", filterIds.get(2)); assertEquals("newFilter2", filterIds.get(3)); assertEquals("newFilter3", filterIds.get(4)); ActionFilter filter = as.getFilter("foo"); assertNull(filter); filter = as.getFilter("MyCustomFilter"); assertNotNull(filter); filter = as.getFilter("newFilterId1"); assertNull(filter); filter = as.getFilter("newFilterId4"); assertNull(filter); filter = as.getFilter("newFilter2"); assertNotNull(filter); filter = as.getFilter("newFilter3"); assertNotNull(filter); disabledAction = as.getAction("disabledAction"); assertFalse(disabledAction.isEnabled()); }</code><technical_language>postSetUp called applyInlineDeployments - pushInlineDeployments ? - of deployContrib a test contribution</technical_language>

Target:
public void testActionOverride() throws Exception { Action viewAction = as.getAction("TAB_VIEW"); assertNotNull(viewAction); assertEquals(2, viewAction.getCategories().length); assertFalse(Arrays.asList(viewAction.getCategories()).contains("OVERRIDE")); assertEquals(1, viewAction.getFilterIds().size()); assertTrue(viewAction.getFilterIds().contains("MyCustomFilter")); Action disabledAction = as.getAction("disabledAction"); assertFalse(disabledAction.isEnabled()); pushInlineDeployments("org.nuxeo.ecm.actions.tests:test-actions-override-contrib.xml"); Action oviewAction = as.getAction("TAB_VIEW"); assertNotNull(oviewAction); assertEquals("newConfirm", oviewAction.getConfirm()); assertEquals(3, oviewAction.getCategories().length); assertTrue(Arrays.asList(oviewAction.getCategories()).contains("OVERRIDE")); assertTrue(Arrays.asList(oviewAction.getCategories()).contains("view")); List<String> filterIds = oviewAction.getFilterIds(); assertNotNull(filterIds); assertEquals(5, filterIds.size()); assertEquals("MyCustomFilter", filterIds.get(0)); assertEquals("newFilterId1", filterIds.get(1)); assertEquals("newFilterId4", filterIds.get(2)); assertEquals("newFilter2", filterIds.get(3)); assertEquals("newFilter3", filterIds.get(4)); ActionFilter filter = as.getFilter("foo"); assertNull(filter); filter = as.getFilter("MyCustomFilter"); assertNotNull(filter); filter = as.getFilter("newFilterId1"); assertNull(filter); filter = as.getFilter("newFilterId4"); assertNull(filter); filter = as.getFilter("newFilter2"); assertNotNull(filter); filter = as.getFilter("newFilter3"); assertNotNull(filter); disabledAction = as.getAction("disabledAction"); assertFalse(disabledAction.isEnabled()); }