use of org.sonar.db.user.UserDao 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();
}
Aggregations