65c220147322be0f580177fb1f37d49484a42867
Files Diff
- Added: 24
- Removed: 1
- Renamed: 0
- Modified: 30
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Move And Rename Method | 2 | ||
Move And Rename Method private createMethodRequest(javaProject IJavaProject, filePath String, cursorOffset int) : String from class org.eclipse.che.plugin.testing.junit.server.junit4.JUnit4TestRunner to public findTestMethodDeclaration(compilationUnit ICompilationUnit, cursorOffset int) : List<String> from class org.eclipse.che.plugin.java.testing.JavaTestFinder | From | To | |
Move And Rename Method private createMethodSuite(javaProject IJavaProject, filePath String, cursorOffset int) : File from class org.eclipse.che.plugin.testing.testng.server.TestNGRunner to public findTestMethodDeclaration(compilationUnit ICompilationUnit, cursorOffset int) : List<String> from class org.eclipse.che.plugin.java.testing.JavaTestFinder | From | To | |
Move Method | 2 | ||
Move Method private isImportOfTestAnnotationExist(compilationUnit ICompilationUnit) : boolean from class org.eclipse.che.plugin.testing.junit.server.junit4.JUnit4TestRunner to private isImportOfTestAnnotationExist(compilationUnit ICompilationUnit, testAnnotation String) : boolean from class org.eclipse.che.plugin.java.testing.JavaTestFinder | From | To | |
Move Method private isTest(method IMethod, compilationUnit ICompilationUnit) : boolean from class org.eclipse.che.plugin.testing.junit.server.junit4.JUnit4TestRunner to public isTest(method IMethod, compilationUnit ICompilationUnit, testAnnotation String) : boolean from class org.eclipse.che.plugin.java.testing.JavaTestFinder | From | To | |
Pull Up Attribute | 5 | ||
Pull Up Attribute private testingHandler : TestingHandler from class org.eclipse.che.plugin.testing.ide.action.RunTestAction to private testingHandler : TestingHandler from class org.eclipse.che.plugin.testing.ide.action.RunDebugTestAbstractAction | From | To | |
Pull Up Attribute private testResultPresenter : TestResultPresenter from class org.eclipse.che.plugin.testing.ide.action.DebugTestAction to private testResultPresenter : TestResultPresenter from class org.eclipse.che.plugin.testing.ide.action.RunDebugTestAbstractAction | From | To | |
Pull Up Attribute private debugConfigurationsManager : DebugConfigurationsManager from class org.eclipse.che.plugin.testing.ide.action.DebugTestAction to private debugConfigurationsManager : DebugConfigurationsManager from class org.eclipse.che.plugin.testing.ide.action.RunDebugTestAbstractAction | From | To | |
Pull Up Attribute private testResultPresenter : TestResultPresenter from class org.eclipse.che.plugin.testing.ide.action.RunTestAction to private testResultPresenter : TestResultPresenter from class org.eclipse.che.plugin.testing.ide.action.RunDebugTestAbstractAction | From | To | |
Pull Up Attribute private testingHandler : TestingHandler from class org.eclipse.che.plugin.testing.ide.action.DebugTestAction to private testingHandler : TestingHandler from class org.eclipse.che.plugin.testing.ide.action.RunDebugTestAbstractAction | From | To | |
Extract Attribute | 1 | ||
Extract Attribute public ROOT : String in class org.eclipse.che.plugin.testing.ide.model.TestRootState | From | To | |
Rename Class | 1 | ||
Rename Class org.eclipse.che.api.testing.shared.TestExecutionContext.TestType renamed to org.eclipse.che.api.testing.shared.TestExecutionContext.ContextType | From | To | |
Change Variable Type | 4 | ||
Change Variable Type request : Request to newSuites : List<JUnit4TestReference> in method public run(suites String[]) : void in class org.eclipse.che.junit.junit4.CheJUnitCoreRunner | From | To | |
Change Variable Type suites : List<Class<?>> to suites : List<JUnit4TestReference> in method private getRequestForClasses(args String[]) : List<JUnit4TestReference> in class org.eclipse.che.junit.junit4.TestRunnerUtil | From | To | |
Change Variable Type suite : String to suite : List<String> in method private startTestProcess(javaProject IJavaProject, context TestExecutionContext) : ProcessHandler in class org.eclipse.che.plugin.testing.junit.server.junit4.JUnit4TestRunner | From | To | |
Change Variable Type currentSuite : TestState to testRootState : TestRootState in method public onSuiteTreeStarted(suiteName String, location String) : void in class org.eclipse.che.plugin.testing.ide.model.GeneralTestingEventsProcessor | From | To | |
Rename Method | 1 | ||
Rename Method public buildRequest(args String[]) : Request renamed to public createTestReferences(suites String[]) : List<JUnit4TestReference> in class org.eclipse.che.junit.junit4.TestRunnerUtil | From | To | |
Pull Up Method | 5 | ||
Pull Up Method private onTestRanSuccessfully(result TestLaunchResult, notification StatusNotification) : void from class org.eclipse.che.plugin.testing.ide.action.RunTestAction to private onTestRanSuccessfully(result TestLaunchResult, eventsProcessor GeneralTestingEventsProcessor, notification StatusNotification, frameworkName String, isDebugMode boolean) : void from class org.eclipse.che.plugin.testing.ide.action.RunDebugTestAbstractAction | From | To | |
Pull Up Method private runRemoteJavaDebugger(eventsProcessor GeneralTestingEventsProcessor, port int) : void from class org.eclipse.che.plugin.testing.ide.action.DebugTestAction to private runRemoteJavaDebugger(eventsProcessor GeneralTestingEventsProcessor, frameworkName String, port int) : void from class org.eclipse.che.plugin.testing.ide.action.RunDebugTestAbstractAction | From | To | |
Pull Up Method private onTestRanUnsuccessfully(exception JsonRpcError, notification StatusNotification) : void from class org.eclipse.che.plugin.testing.ide.action.DebugTestAction to private onTestRanFailed(exception JsonRpcError, notification StatusNotification) : void from class org.eclipse.che.plugin.testing.ide.action.RunDebugTestAbstractAction | From | To | |
Pull Up Method private onTestRanSuccessfully(result TestLaunchResult, eventsProcessor GeneralTestingEventsProcessor, notification StatusNotification) : void from class org.eclipse.che.plugin.testing.ide.action.DebugTestAction to private onTestRanSuccessfully(result TestLaunchResult, eventsProcessor GeneralTestingEventsProcessor, notification StatusNotification, frameworkName String, isDebugMode boolean) : void from class org.eclipse.che.plugin.testing.ide.action.RunDebugTestAbstractAction | From | To | |
Pull Up Method private onTestRanUnsuccessfully(exception JsonRpcError, notification StatusNotification) : void from class org.eclipse.che.plugin.testing.ide.action.RunTestAction to private onTestRanFailed(exception JsonRpcError, notification StatusNotification) : void from class org.eclipse.che.plugin.testing.ide.action.RunDebugTestAbstractAction | From | To | |
Push Down Method | 2 | ||
Push Down Method public updateInPerspective(event ActionEvent) : void from class org.eclipse.che.plugin.testing.ide.action.RunDebugTestAbstractAction to public updateInPerspective(event ActionEvent) : void from class org.eclipse.che.plugin.testing.ide.action.RunTestAction | From | To | |
Push Down Method public updateInPerspective(event ActionEvent) : void from class org.eclipse.che.plugin.testing.ide.action.RunDebugTestAbstractAction to public updateInPerspective(event ActionEvent) : void from class org.eclipse.che.plugin.testing.ide.action.DebugTestAction | From | To | |
Rename Variable | 1 | ||
Rename Variable request : Request to newSuites : List<JUnit4TestReference> in method public run(suites String[]) : void in class org.eclipse.che.junit.junit4.CheJUnitCoreRunner | From | To | |
Change Return Type | 6 | ||
Change Return Type Request to List<JUnit4TestReference> in method private getRequestForOneMethod(suite String, separatorIndex int) : List<JUnit4TestReference> in class org.eclipse.che.junit.junit4.TestRunnerUtil | From | To | |
Change Return Type File to List<String> in method public findTestMethodDeclaration(compilationUnit ICompilationUnit, cursorOffset int) : List<String> in class org.eclipse.che.plugin.java.testing.JavaTestFinder | From | To | |
Change Return Type Request to List<JUnit4TestReference> in method private getRequestForClasses(args String[]) : List<JUnit4TestReference> in class org.eclipse.che.junit.junit4.TestRunnerUtil | From | To | |
Change Return Type Request to List<JUnit4TestReference> in method private getRequestForClass(suite String) : List<JUnit4TestReference> in class org.eclipse.che.junit.junit4.TestRunnerUtil | From | To | |
Change Return Type Request to List<JUnit4TestReference> in method public createTestReferences(suites String[]) : List<JUnit4TestReference> in class org.eclipse.che.junit.junit4.TestRunnerUtil | From | To | |
Change Return Type String to List<String> in method public findTestMethodDeclaration(compilationUnit ICompilationUnit, cursorOffset int) : List<String> in class org.eclipse.che.plugin.java.testing.JavaTestFinder | From | To | |
Replace Variable With Attribute | 1 | ||
Replace Variable With Attribute currentSuite : TestState to testRootState : TestRootState in method public onSuiteTreeStarted(suiteName String, location String) : void in class org.eclipse.che.plugin.testing.ide.model.GeneralTestingEventsProcessor | From | To | |
Rename Attribute | 1 | ||
Rename Attribute hasTests : boolean to isEnable : boolean in class org.eclipse.che.plugin.testing.ide.action.RunDebugTestAbstractAction | From | To | |
Extract And Move Method | 2 | ||
Extract And Move Method protected actionPerformed(frameworkAndTestName Pair<String,String>, isDebugMode boolean) : void extracted from public actionPerformed(e ActionEvent) : void in class org.eclipse.che.plugin.testing.ide.action.RunTestAction & moved to class org.eclipse.che.plugin.testing.ide.action.RunDebugTestAbstractAction | From | To | |
Extract And Move Method protected actionPerformed(frameworkAndTestName Pair<String,String>, isDebugMode boolean) : void extracted from public actionPerformed(e ActionEvent) : void in class org.eclipse.che.plugin.testing.ide.action.DebugTestAction & moved to class org.eclipse.che.plugin.testing.ide.action.RunDebugTestAbstractAction | From | To | |
Rename Parameter | 1 | ||
Rename Parameter args : String[] to suites : String[] in method public createTestReferences(suites String[]) : List<JUnit4TestReference> in class org.eclipse.che.junit.junit4.TestRunnerUtil | From | To |