use of org.sonar.server.ws.WsTester in project sonarqube by SonarSource.
the class RenameActionTest method setUp.
@Before
public void setUp() {
createProfiles();
tester = new WsTester(new QProfilesWs(mock(RuleActivationActions.class), mock(BulkRuleActivationActions.class), new RenameAction(new QProfileFactory(dbClient, defaultOrganizationProvider), wsSupport)));
}
use of org.sonar.server.ws.WsTester in project sonarqube by SonarSource.
the class HashActionTest method before.
@Before
public void before() {
DbClient dbClient = db.getDbClient();
tester = new WsTester(new SourcesWs(new HashAction(dbClient, userSessionRule, new ComponentFinder(dbClient))));
}
use of org.sonar.server.ws.WsTester in project sonarqube by SonarSource.
the class IndexActionTest method setUp.
@Before
public void setUp() {
when(dbClient.componentDao()).thenReturn(componentDao);
when(dbClient.openSession(false)).thenReturn(session);
tester = new WsTester(new SourcesWs(new IndexAction(dbClient, sourceService, userSessionRule, new ComponentFinder(dbClient))));
}
use of org.sonar.server.ws.WsTester in project sonarqube by SonarSource.
the class RawActionTest method setUp.
@Before
public void setUp() {
when(dbClient.componentDao()).thenReturn(componentDao);
when(dbClient.openSession(false)).thenReturn(session);
tester = new WsTester(new SourcesWs(new RawAction(dbClient, sourceService, userSessionRule, new ComponentFinder(dbClient))));
}
use of org.sonar.server.ws.WsTester in project sonarqube by SonarSource.
the class ShowActionTest method setUp.
@Before
public void setUp() {
when(dbClient.componentDao()).thenReturn(componentDao);
when(dbClient.openSession(false)).thenReturn(session);
tester = new WsTester(new SourcesWs(new ShowAction(sourceService, dbClient, userSessionRule, new ComponentFinder(dbClient))));
}
Aggregations