Skip to content
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

Merged
merged 3 commits into from
Jan 18, 2025
Merged

add junit 3 test (disabled) #134

merged 3 commits into from
Jan 18, 2025

Conversation

carstenartur
Copy link
Owner

No description provided.

@@ -0,0 +1,173 @@
package org.eclipse.jdt.ui.tests.quickfix.Java8;

Check warning

Code scanning / PMD

Package name contains upper case characters Warning test

Package name contains upper case characters
@@ -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

Package name contains upper case characters
@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

JUnit tests should include assert() or fail()
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

Avoid unused private methods such as 'correctAssertionOrder(MethodInvocation, ASTRewrite, AST, TextEditGroup)'.
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

Avoid unused method parameters such as 'ast'.
}


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

Avoid unused method parameters such as 'ast'.
}


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

Avoid unused method parameters such as 'rewriter'.
}


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

Avoid unused method parameters such as 'group'.
return fixSetcombined;
}

private EnumSet<JUnitCleanUpFixCore> allOfJunit4() {

Check warning

Code scanning / PMD

Avoid using implementation types like 'Stack'; use the interface instead Warning

Avoid using implementation types like 'EnumSet'; use the interface instead
}

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

Avoid using implementation types like 'EnumSet'; use the interface instead
return allOf;
}

private EnumSet<JUnitCleanUpFixCore> allOfJunit3() {

Check warning

Code scanning / PMD

Avoid using implementation types like 'Stack'; use the interface instead Warning

Avoid using implementation types like 'EnumSet'; use the interface instead
}

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

Avoid using implementation types like 'EnumSet'; use the interface instead
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

The final local variable name 'junit3_test' doesn't match '[a-z][a-zA-Z0-9]*'
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

Avoid unused private methods such as 'correctAssertionOrder(MethodInvocation,ASTRewrite,AST,TextEditGroup)'.
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

Avoid unused method parameters such as 'ast'.
}


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

Avoid unused method parameters such as 'rewriter'.
}


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

Avoid unused method parameters such as 'group'.
}


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

Avoid unused method parameters such as 'ast'.
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

Switch statements should be exhaustive, add a default case (or missing enum branches)
@carstenartur carstenartur merged commit 5fd8692 into main Jan 18, 2025
16 checks passed
@carstenartur carstenartur deleted the junit3support branch January 18, 2025 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant