sessionNonSocial = initSession(connectorNonSocial);
}
static private Session initSession(SharepointConnector connector) throws Exception {
TestJdbcDatabase database = new TestJdbcDatabase();
ConnectorPersistentStoreFactory factory =
new ConnectorPersistentStoreFactory(database);
ConnectorPersistentStore store =
factory.newConnectorPersistentStore("test", "Sharepoint", null);
connector.setUserGroupMembershipRowMapper(
TestConfiguration.getUserGroupMembershipRowMapper());
connector.setQueryProvider(
TestConfiguration.getUserDataStoreQueryProvider());
connector.setDatabaseAccess(store);