use of org.sonar.server.ws.WsTester in project sonarqube by SonarSource.
the class ResourcesWsTest method setUp.
@Before
public void setUp() {
WsTester tester = new WsTester(new ResourcesWs());
controller = tester.controller("api/resources");
}
use of org.sonar.server.ws.WsTester in project sonarqube by SonarSource.
the class ShowActionTest method setUp.
@Before
public void setUp() {
tester = new WsTester(new DuplicationsWs(new ShowAction(db.getDbClient(), parser, duplicationsJsonWriter, userSessionRule, new ComponentFinder(db.getDbClient()))));
db.getDbClient().metricDao().insert(db.getSession(), dataMetric);
db.commit();
}
use of org.sonar.server.ws.WsTester in project sonarqube by SonarSource.
the class IssueTagsActionTest method setUp.
@Before
public void setUp() {
tagsAction = new TagsAction(service);
tester = new WsTester(new IssuesWs(tagsAction));
}
use of org.sonar.server.ws.WsTester in project sonarqube by SonarSource.
the class SetTagsActionTest method setUp.
@Before
public void setUp() {
sut = new SetTagsAction(service);
tester = new WsTester(new IssuesWs(sut));
}
use of org.sonar.server.ws.WsTester in project sonarqube by SonarSource.
the class AuthorsActionTest method setUp.
@Before
public void setUp() {
tester = new WsTester(new IssuesWs(new AuthorsAction(service)));
controller = tester.controller("api/issues");
}
Aggregations