Search in sources :

Example 1 with LegacyManagementController

use of org.apache.qpid.server.management.plugin.controller.LegacyManagementController in project qpid-broker-j by apache.

the class PortControllerTest method setUp.

@Before
public void setUp() {
    final LegacyManagementController legacyManagementController = mock(LegacyManagementController.class);
    final ManagementController nextVersionManagementController = mock(ManagementController.class);
    when(legacyManagementController.getNextVersionManagementController()).thenReturn(nextVersionManagementController);
    _portController = new PortController(legacyManagementController, Collections.emptySet());
}
Also used : LegacyManagementController(org.apache.qpid.server.management.plugin.controller.LegacyManagementController) ManagementController(org.apache.qpid.server.management.plugin.ManagementController) LegacyManagementController(org.apache.qpid.server.management.plugin.controller.LegacyManagementController) Before(org.junit.Before)

Example 2 with LegacyManagementController

use of org.apache.qpid.server.management.plugin.controller.LegacyManagementController in project qpid-broker-j by apache.

the class LegacyCategoryControllerTest method setUp.

@Before
public void setUp() {
    final LegacyManagementController legacyManagementController = mock(LegacyManagementController.class);
    final ManagementController nextVersionManagementController = mock(ManagementController.class);
    when(legacyManagementController.getNextVersionManagementController()).thenReturn(nextVersionManagementController);
    _controller = new LegacyCategoryController(legacyManagementController, VirtualHostNode.TYPE, new String[] { BrokerController.TYPE }, null, Collections.emptySet());
}
Also used : LegacyManagementController(org.apache.qpid.server.management.plugin.controller.LegacyManagementController) ManagementController(org.apache.qpid.server.management.plugin.ManagementController) LegacyManagementController(org.apache.qpid.server.management.plugin.controller.LegacyManagementController) Before(org.junit.Before)

Example 3 with LegacyManagementController

use of org.apache.qpid.server.management.plugin.controller.LegacyManagementController in project qpid-broker-j by apache.

the class LegacyCategoryController_v8_0Test method setUp.

@Before
public void setUp() {
    _nextVersionManagementController = mock(ManagementController.class);
    LegacyManagementController managementController = mock(LegacyManagementController.class);
    when(managementController.getNextVersionManagementController()).thenReturn(_nextVersionManagementController);
    _controller = new LegacyCategoryController_v8_0(managementController, TEST_CATEGORY, PARENT_CATEGORY, DEFAULT_TYPE, Collections.emptySet());
    _root = mock(ConfiguredObject.class);
}
Also used : LegacyManagementController(org.apache.qpid.server.management.plugin.controller.LegacyManagementController) ConfiguredObject(org.apache.qpid.server.model.ConfiguredObject) LegacyConfiguredObject(org.apache.qpid.server.management.plugin.controller.LegacyConfiguredObject) ManagementController(org.apache.qpid.server.management.plugin.ManagementController) LegacyManagementController(org.apache.qpid.server.management.plugin.controller.LegacyManagementController) Before(org.junit.Before)

Example 4 with LegacyManagementController

use of org.apache.qpid.server.management.plugin.controller.LegacyManagementController in project qpid-broker-j by apache.

the class VirtualHostControllerTest method setUp.

@Before
public void setUp() {
    final LegacyManagementController legacyManagementController = mock(LegacyManagementController.class);
    final ManagementController nextVersionManagementController = mock(ManagementController.class);
    when(legacyManagementController.getNextVersionManagementController()).thenReturn(nextVersionManagementController);
    when(legacyManagementController.getVersion()).thenReturn("6.1");
    _virtualHostController = new VirtualHostController(legacyManagementController, Collections.emptySet());
}
Also used : LegacyManagementController(org.apache.qpid.server.management.plugin.controller.LegacyManagementController) ManagementController(org.apache.qpid.server.management.plugin.ManagementController) LegacyManagementController(org.apache.qpid.server.management.plugin.controller.LegacyManagementController) Before(org.junit.Before)

Aggregations

ManagementController (org.apache.qpid.server.management.plugin.ManagementController)4 LegacyManagementController (org.apache.qpid.server.management.plugin.controller.LegacyManagementController)4 Before (org.junit.Before)4 LegacyConfiguredObject (org.apache.qpid.server.management.plugin.controller.LegacyConfiguredObject)1 ConfiguredObject (org.apache.qpid.server.model.ConfiguredObject)1