@Override protected void setUp() throws Exception { super.setUp(); this.keyProvider = TestKeyProvider.getInstance(); this.configuration = ConfigurationFactory.createDefault(); DatabaseServer databaseServer = new DatabaseServer(configuration); this.keyserver = new KeyServer(databaseServer, configuration); this.bc = new BouncyCastleProvider(); }
/** @return a list of groups the test user is member of */ private GroupList fetchGroupsList() { GroupList list = null; try { list = (GroupList) proc.process(content, TestKeyProvider.getInstance().getUserID(), "testRequest"); } catch (BackendProcessException e) { fail(e.getMessage()); } return list; }
/** Create processor and SAMLEngine. */ @Override public void setUp() { super.setUp(); proc = new GetGroupsForUserProcessor(); try { content = SAMLEngine.getXMLObject(GetGroupsForUser.class); content.setValue(TestKeyProvider.getInstance().getUserIDBase64()); } catch (SAMLEngineException e) { e.log(); fail(e.toString()); } }