Skip to content

Commit

Permalink
ExpectedToFail "Anonymous inner class is not yet supported"
Browse files Browse the repository at this point in the history
  • Loading branch information
jevanlingen committed Dec 27, 2024
1 parent 9405ee4 commit 52ff86e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junitpioneer.jupiter.ExpectedToFail;
import org.openrewrite.Issue;
import org.openrewrite.java.tree.J;
import org.openrewrite.java.tree.JavaType;
Expand Down Expand Up @@ -339,4 +340,22 @@ class RewriteSettings extends groovy.lang.Script {
)
);
}

@Test
@ExpectedToFail("Anonymous inner class is not yet supported") // https://groovy-lang.org/objectorientation.html#_anonymous_inner_class
void anonymousInnerClass() {
rewriteRun(
groovy(
"""
interface Something {}
class Test {
static def test() {
new Something() {}
}
}
"""
)
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package org.openrewrite.groovy.tree;

import org.junit.jupiter.api.Test;
import org.junitpioneer.jupiter.ExpectedToFail;
import org.openrewrite.Issue;
import org.openrewrite.test.RewriteTest;

Expand Down Expand Up @@ -133,6 +134,7 @@ public void apply(Project project) {
}

@Test
@ExpectedToFail("Anonymous inner class is not yet supported") // https://groovy-lang.org/objectorientation.html#_anonymous_inner_class
@Issue("https://github.com/spring-projects/spring-ldap/blob/main/buildSrc/src/test/resources/samples/integrationtest/withgroovy/src/integration-test/groovy/sample/TheTest.groovy")
void springLdapTheTest() {
rewriteRun(
Expand All @@ -157,7 +159,6 @@ int getOrder() {
);
}


@Test
@Issue("https://github.com/spring-projects/spring-session-data-geode/blob/main/buildSrc/src/main/groovy/io/spring/gradle/convention/SchemaZipPlugin.groovy")
void springTestDataGeodeSchemaZipPlugin() {
Expand Down

0 comments on commit 52ff86e

Please sign in to comment.