use of com.sun.enterprise.admin.report.PropsFileActionReporter in project Payara by payara.
the class DeleteJdbcResourceTest method setUp.
@Before
public void setUp() {
assertTrue(resources != null);
// Create a JDBC Resource jdbc/foo for each test
CreateJdbcResource createCommand = habitat.getService(CreateJdbcResource.class);
assertTrue(createCommand != null);
parameters.add("connectionpoolid", "H2Pool");
parameters.add("DEFAULT", "jdbc/foo");
context = new AdminCommandContextImpl(LogDomains.getLogger(DeleteJdbcResourceTest.class, LogDomains.ADMIN_LOGGER), new PropsFileActionReporter());
cr.getCommandInvocation("create-jdbc-resource", context.getActionReport(), adminSubject()).parameters(parameters).execute(createCommand);
assertEquals(ActionReport.ExitCode.SUCCESS, context.getActionReport().getActionExitCode());
// Setup for delete-jdbc-resource
parameters = new ParameterMap();
deleteCommand = habitat.getService(DeleteJdbcResource.class);
assertTrue(deleteCommand != null);
}
use of com.sun.enterprise.admin.report.PropsFileActionReporter 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 com.sun.enterprise.admin.report.PropsFileActionReporter 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 com.sun.enterprise.admin.report.PropsFileActionReporter 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 com.sun.enterprise.admin.report.PropsFileActionReporter in project Payara by payara.
the class ListJndiResourcesTest method setUp.
@Before
public void setUp() {
habitat = getHabitat();
cr = habitat.getService(CommandRunner.class);
context = new AdminCommandContextImpl(LogDomains.getLogger(ListJndiResourcesTest.class, LogDomains.ADMIN_LOGGER), new PropsFileActionReporter());
parameters = new ParameterMap();
Resources resources = habitat.<Domain>getService(Domain.class).getResources();
for (Resource resource : resources.getResources()) {
if (resource instanceof org.glassfish.resources.config.ExternalJndiResource) {
origNum = origNum + 1;
}
}
}
Aggregations