Search in sources :

Example 1 with ManagementController

use of org.apache.qpid.server.management.plugin.ManagementController 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 ManagementController

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

the class SessionControllerTest method setUp.

@Before
public void setUp() {
    _legacyManagementController = mock(LegacyManagementController.class);
    final ManagementController nextVersionManagementController = mock(ManagementController.class);
    when(_legacyManagementController.getNextVersionManagementController()).thenReturn(nextVersionManagementController);
    _sessionController = new SessionController(_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 3 with ManagementController

use of org.apache.qpid.server.management.plugin.ManagementController 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 4 with ManagementController

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

the class QueueControllerTest method setUp.

@Before
public void setUp() {
    _legacyVersionManagementController = mock(LegacyManagementController.class);
    final ManagementController nextVersionManagementController = mock(ManagementController.class);
    when(_legacyVersionManagementController.getNextVersionManagementController()).thenReturn(nextVersionManagementController);
    _queueController = new QueueController(_legacyVersionManagementController, 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 5 with ManagementController

use of org.apache.qpid.server.management.plugin.ManagementController 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)

Aggregations

ManagementController (org.apache.qpid.server.management.plugin.ManagementController)14 Before (org.junit.Before)9 LegacyManagementController (org.apache.qpid.server.management.plugin.controller.LegacyManagementController)7 ManagementException (org.apache.qpid.server.management.plugin.ManagementException)4 ManagementRequest (org.apache.qpid.server.management.plugin.ManagementRequest)4 ManagementResponse (org.apache.qpid.server.management.plugin.ManagementResponse)4 ServletConfig (javax.servlet.ServletConfig)1 ServletContext (javax.servlet.ServletContext)1 ServletException (javax.servlet.ServletException)1 LegacyConfiguredObject (org.apache.qpid.server.management.plugin.controller.LegacyConfiguredObject)1 ConfiguredObject (org.apache.qpid.server.model.ConfiguredObject)1