Toggle navigation
Home
org.sonar.server.ws.WsTester to org.sonar.server.ws.WsActionTester
No. of Instances - 30
No. of Commits - 27
No. of Projects - {'sonarqube'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Internal -> Internal
Mapping:
Other
new SearchAction(service,writer,userSessionRule)
to
userSession
new IssueFilterWs(new SearchAction(service,writer,userSessionRule))
to
userSession
new QProfilesWs(mock(RuleActivationActions.class),mock(BulkRuleActivationActions.class),new SetDefaultAction(LanguageTesting.newLanguages(xoo1Key,xoo2Key),new QProfileLookup(dbClient),new QProfileFactory(dbClient),wsSupport))
to
underTest
Cascading Type Change (Similar)
WsTester
to
WsActionTester
WsTester
to
WsActionTester
WsTester
to
WsActionTester
Update Class Instacne Creation
new IssueFilterWs(userSession)
to
new SearchAction(dbClient,userSession)
new UsersWs(new CurrentAction(userSessionRule))
to
new CurrentAction(userSessionRule,dbClient)
new WsTester(new TestsWs(new CoveredFilesAction(dbClient,testIndex,userSessionRule)))
to
new WsActionTester(new CoveredFilesAction(dbClient,testIndex,userSessionRule))
Rename Variable
tester
to
ws
Cascading Type Change (Different)
WsTester.TestRequest
to
TestRequest
WsTester.TestRequest
to
TestRequest
WsTester.TestRequest
to
TestRequest
WsTester.TestRequest
to
TestRequest
WsTester.TestRequest
to
TestRequest
WsTester.TestRequest
to
TestRequest
Add or Remove Method invocation
ws.newGetRequest("api/tests","covered_files")
to
ws.newRequest()
tester.newPostRequest("api/qualityprofiles","copy").setParam("toName","Other Sonar Way")
to
tester.newRequest().setParam("toName","bar")
tester.newPostRequest("api/qualityprofiles","copy").setParam("fromKey","sonar-way-xoo1-13245")
to
tester.newRequest().setParam("fromKey","foo")
wsTester.newGetRequest("api/components","app")
to
wsTester.newRequest()
wsTester.newGetRequest("api/components","app")
to
wsTester.newRequest()
wsTester.newGetRequest("api/components","app")
to
wsTester.newRequest()
tester.newGetRequest("batch","issues").setParam("key",file.key())
to
tester.newRequest().setParam("key",file.key())
ws.newPostRequest("api/projects",ACTION).setParam("keys",project.getDbKey())
to
ws.newRequest().setParam("projects",project.getDbKey())
ws.newPostRequest("api/projects",ACTION).setParam("ids","whatever-the-uuid")
to
ws.newRequest().setParam("ids","whatever-the-uuid")
ws.newPostRequest("api/projects",ACTION).setParam("ids","whatever-the-uuid")
to
ws.newRequest().setParam("ids","whatever-the-uuid")
ws.newPostRequest("api/projects",ACTION).setParam("organization",org1.getKey()).setParam("ids","whatever-the-uuid")
to
ws.newRequest().setParam("organization",org1.getKey()).setParam("ids","whatever-the-uuid")
tester.newGetRequest("api/sources","hash")
to
tester.newRequest()
COMPONENT_KEY
to
file.getDbKey()
tester.newGetRequest("api/sources","hash")
to
tester.newRequest()
COMPONENT_KEY
to
file.getKey()
tester.newGetRequest("api/sources","hash").setParam("key",branch.getDbKey())
to
tester.newRequest().setParam("key",branch.getDbKey())
COMPONENT_KEY
to
file.getKey()
Rename Method invocation
newPostRequest
to
newRequest
newPostRequest
to
newRequest
newGetRequest
to
newRequest
newPostRequest
to
newRequest
newPostRequest
to
newRequest
newPostRequest
to
newRequest