use of org.glassfish.api.admin.AdminCommandContextImpl in project Payara by payara.
the class ListJavaMailResourcesTest method setUp.
@Before
public void setUp() {
habitat = getHabitat();
parameters = new ParameterMap();
cr = habitat.getService(CommandRunner.class);
assertTrue(cr != null);
Resources resources = habitat.<Domain>getService(Domain.class).getResources();
context = new AdminCommandContextImpl(LogDomains.getLogger(ListJavaMailResourcesTest.class, LogDomains.ADMIN_LOGGER), new PropsFileActionReporter());
for (Resource resource : resources.getResources()) {
if (resource instanceof MailResource) {
origNum = origNum + 1;
}
}
}
use of org.glassfish.api.admin.AdminCommandContextImpl in project Payara by payara.
the class CreateIiopListenerTest method setUp.
@Before
public void setUp() {
services = getHabitat();
iiopService = services.getService(IiopService.class);
parameters = new ParameterMap();
context = new AdminCommandContextImpl(LogDomains.getLogger(CreateIiopListenerTest.class, LogDomains.ADMIN_LOGGER), new PropsFileActionReporter());
cr = services.getService(CommandRunner.class);
}
use of org.glassfish.api.admin.AdminCommandContextImpl in project Payara by payara.
the class DeleteIiopListenerTest method setUp.
@Before
public void setUp() {
services = getHabitat();
iiopService = services.getService(IiopService.class);
parameters = new ParameterMap();
cr = services.getService(CommandRunner.class);
context = new AdminCommandContextImpl(LogDomains.getLogger(DeleteIiopListenerTest.class, LogDomains.ADMIN_LOGGER), new PropsFileActionReporter());
}
use of org.glassfish.api.admin.AdminCommandContextImpl in project Payara by payara.
the class ListIiopListenersTest method setUp.
@Before
public void setUp() {
services = getHabitat();
IiopService iiopService = services.getService(IiopService.class);
parameters = new ParameterMap();
cr = services.getService(CommandRunner.class);
context = new AdminCommandContextImpl(LogDomains.getLogger(ListIiopListenersTest.class, LogDomains.ADMIN_LOGGER), new PropsFileActionReporter());
List<IiopListener> listenerList = iiopService.getIiopListener();
origNum = listenerList.size();
}
use of org.glassfish.api.admin.AdminCommandContextImpl in project Payara by payara.
the class CreateProfilerTest method setUp.
@Before
public void setUp() {
assertTrue(javaConfig != null);
// Get an instance of the CreateProfiler command
command = habitat.getService(CreateProfiler.class);
assertTrue(command != null);
context = new AdminCommandContextImpl(LogDomains.getLogger(CreateProfilerTest.class, LogDomains.ADMIN_LOGGER), habitat.<ActionReport>getService(ActionReport.class, "hk2-agent"));
}
Aggregations