use of org.glassfish.security.services.api.authorization.AuthorizationService in project Payara by payara.
the class CreateJavaMailResourceTest method setUp.
@Before
public void setUp() {
System.out.println("\n\n *** Entering setup method *** \n\n");
System.out.println("Current dir: " + System.getProperty("user.dir") + "\n");
AuthorizationService foo = new AuthorizationServiceImpl();
System.out.println("Direct instantiation: " + foo);
habitat = getHabitat();
foo = habitat.getService(AuthorizationService.class);
System.out.println("Lookup via habitat: " + foo + "\n");
resources = habitat.<Domain>getService(Domain.class).getResources();
assertTrue(resources != null);
parameters = new ParameterMap();
context = new AdminCommandContextImpl(getLogger(CreateJavaMailResourceTest.class, ADMIN_LOGGER), new PropsFileActionReporter());
cr = habitat.getService(CommandRunner.class);
assertTrue(cr != null);
}
Aggregations