Search in sources :

Example 1 with GroupMembershipDao

use of org.sonar.db.user.GroupMembershipDao in project sonarqube by SonarSource.

the class GroupsActionTest method setUp.

@Before
public void setUp() {
    System2 system2 = new System2();
    UserDao userDao = new UserDao(system2);
    GroupDao groupDao = new GroupDao(system2);
    UserGroupDao userGroupDao = new UserGroupDao();
    GroupMembershipDao groupMembershipDao = new GroupMembershipDao();
    dbClient = new DbClient(dbTester.database(), dbTester.myBatis(), userDao, groupDao, userGroupDao, groupMembershipDao);
    session = dbClient.openSession(false);
    session.commit();
    tester = new WsTester(new UsersWs(new GroupsAction(dbClient, userSession)));
    userSession.logIn().setSystemAdministrator();
}
Also used : GroupMembershipDao(org.sonar.db.user.GroupMembershipDao) DbClient(org.sonar.db.DbClient) UserDao(org.sonar.db.user.UserDao) WsTester(org.sonar.server.ws.WsTester) System2(org.sonar.api.utils.System2) GroupDao(org.sonar.db.user.GroupDao) UserGroupDao(org.sonar.db.user.UserGroupDao) UserGroupDao(org.sonar.db.user.UserGroupDao) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 System2 (org.sonar.api.utils.System2)1 DbClient (org.sonar.db.DbClient)1 GroupDao (org.sonar.db.user.GroupDao)1 GroupMembershipDao (org.sonar.db.user.GroupMembershipDao)1 UserDao (org.sonar.db.user.UserDao)1 UserGroupDao (org.sonar.db.user.UserGroupDao)1 WsTester (org.sonar.server.ws.WsTester)1