-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add junit 3 test (disabled) #134
Conversation
@@ -0,0 +1,173 @@ | |||
package org.eclipse.jdt.ui.tests.quickfix.Java8; |
Check warning
Code scanning / Pmd (reported by Codacy)
Package name contains upper case characters Warning test
@Disabled | ||
@ParameterizedTest | ||
@EnumSource(JUnit3CleanupCases.class) | ||
public void testJUnit3CleanupParametrized(JUnit3CleanupCases test) throws CoreException { |
Check notice
Code scanning / Pmd (reported by Codacy)
JUnit tests should include assert() or fail() Note test
return false; | ||
} | ||
|
||
private void correctAssertionOrder(MethodInvocation node, ASTRewrite rewriter, AST ast, TextEditGroup group) { |
Check warning
Code scanning / PMD
Avoid unused private methods such as 'correctAssertionOrder(MethodInvocation, ASTRewrite, AST, TextEditGroup)'. Warning
return false; | ||
} | ||
|
||
private void correctAssertionOrder(MethodInvocation node, ASTRewrite rewriter, AST ast, TextEditGroup group) { |
Check warning
Code scanning / PMD
Avoid unused method parameters such as 'holder'. Warning
} | ||
|
||
|
||
private void addImportForAssertion(String assertionMethod, AST ast, ASTRewrite rewriter, TextEditGroup group, ImportRewrite importRewriter) { |
Check warning
Code scanning / PMD
Avoid unused method parameters such as 'holder'. Warning
} | ||
|
||
|
||
private void addImportForAssertion(String assertionMethod, AST ast, ASTRewrite rewriter, TextEditGroup group, ImportRewrite importRewriter) { |
Check warning
Code scanning / PMD
Avoid unused method parameters such as 'holder'. Warning
} | ||
|
||
|
||
private void addImportForAssertion(String assertionMethod, AST ast, ASTRewrite rewriter, TextEditGroup group, ImportRewrite importRewriter) { |
Check warning
Code scanning / PMD
Avoid unused method parameters such as 'holder'. Warning
return fixSetcombined; | ||
} | ||
|
||
private EnumSet<JUnitCleanUpFixCore> allOfJunit4() { |
Check warning
Code scanning / PMD
Avoid using implementation types like 'Stack'; use the interface instead Warning
} | ||
|
||
private EnumSet<JUnitCleanUpFixCore> allOfJunit4() { | ||
EnumSet<JUnitCleanUpFixCore> allOf= EnumSet.allOf(JUnitCleanUpFixCore.class); |
Check warning
Code scanning / PMD
Avoid using implementation types like 'Stack'; use the interface instead Warning
return allOf; | ||
} | ||
|
||
private EnumSet<JUnitCleanUpFixCore> allOfJunit3() { |
Check warning
Code scanning / PMD
Avoid using implementation types like 'Stack'; use the interface instead Warning
} | ||
|
||
private EnumSet<JUnitCleanUpFixCore> allOfJunit3() { | ||
EnumSet<JUnitCleanUpFixCore> allOf= EnumSet.noneOf(JUnitCleanUpFixCore.class); |
Check warning
Code scanning / PMD
Avoid using implementation types like 'Stack'; use the interface instead Warning
FALSE_TRUE); | ||
intent(junit3Group); | ||
|
||
final CheckboxPreference junit3_test= createCheckboxPref(junit3Group, numColumns-1, |
Check warning
Code scanning / PMD
The local variable name 'vdf_initializer' doesn't match '[a-z][a-zA-Z0-9]*' Warning
return false; | ||
} | ||
|
||
private void correctAssertionOrder(MethodInvocation node, ASTRewrite rewriter, AST ast, TextEditGroup group) { |
Check notice
Code scanning / Pmd (reported by Codacy)
Avoid unused private methods such as 'correctAssertionOrder(MethodInvocation,ASTRewrite,AST,TextEditGroup)'. Note
return false; | ||
} | ||
|
||
private void correctAssertionOrder(MethodInvocation node, ASTRewrite rewriter, AST ast, TextEditGroup group) { |
Check notice
Code scanning / Pmd (reported by Codacy)
Avoid unused method parameters such as 'ast'. Note
} | ||
|
||
|
||
private void addImportForAssertion(String assertionMethod, AST ast, ASTRewrite rewriter, TextEditGroup group, ImportRewrite importRewriter) { |
Check notice
Code scanning / Pmd (reported by Codacy)
Avoid unused method parameters such as 'rewriter'. Note
} | ||
|
||
|
||
private void addImportForAssertion(String assertionMethod, AST ast, ASTRewrite rewriter, TextEditGroup group, ImportRewrite importRewriter) { |
Check notice
Code scanning / Pmd (reported by Codacy)
Avoid unused method parameters such as 'group'. Note
} | ||
|
||
|
||
private void addImportForAssertion(String assertionMethod, AST ast, ASTRewrite rewriter, TextEditGroup group, ImportRewrite importRewriter) { |
Check notice
Code scanning / Pmd (reported by Codacy)
Avoid unused method parameters such as 'ast'. Note
private void addImportForAssertion(String assertionMethod, AST ast, ASTRewrite rewriter, TextEditGroup group, ImportRewrite importRewriter) { | ||
String importToAdd = null; | ||
|
||
switch (assertionMethod) { |
Check notice
Code scanning / Pmd (reported by Codacy)
Switch statements should be exhaustive, add a default case (or missing enum branches) Note
No description provided.