[
https://issues.apache.org/jira/browse/GROOVY-9705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chiang Seng Chang updated GROOVY-9705:
--------------------------------------
Description:
TestNG selects setMetaClass() and setProperty() as test methods.
{{org.testng.TestNGException:}}
{{ Cannot inject @Test annotated Method [setMetaClass] with [interface
groovy.lang.MetaClass].}}
{{org.testng.TestNGException:}}
{{ Cannot inject @Test annotated Method [setProperty] with [class
java.lang.String, class java.lang.Object].}}
Does not happen using groovy 2.x
Attached a simple gradle project, run gradlew test to get the exceptions.
was:
TestNG selects setMetaClass() and setProperty() as test methods.
{{org.testng.TestNGException:
Cannot inject @Test annotated Method [setMetaClass] with [interface
groovy.lang.MetaClass].}}
{{org.testng.TestNGException:
Cannot inject @Test annotated Method [setProperty] with [class
java.lang.String, class java.lang.Object].}}
Does not happen using groovy 2.x
Attached a simple gradle project, run gradlew test to get the exceptions.
> Groovy 3.0.5 Unit Test Class: TestNGException at Parameters.java:437
> --------------------------------------------------------------------
>
> Key: GROOVY-9705
> URL: https://issues.apache.org/jira/browse/GROOVY-9705
> Project: Groovy
> Issue Type: Bug
> Affects Versions: 3.0.5
> Environment: Java version AdoptOpenJDK (build 25.262-b10, mixed mode)
> Gradle version 6.6.1
> Groovy version 3.0.5
> TestNG version 7.3.0
> Reporter: Chiang Seng Chang
> Priority: Major
> Attachments: g3tng.tar.gz
>
>
> TestNG selects setMetaClass() and setProperty() as test methods.
> {{org.testng.TestNGException:}}
> {{ Cannot inject @Test annotated Method [setMetaClass] with [interface
> groovy.lang.MetaClass].}}
> {{org.testng.TestNGException:}}
> {{ Cannot inject @Test annotated Method [setProperty] with [class
> java.lang.String, class java.lang.Object].}}
> Does not happen using groovy 2.x
> Attached a simple gradle project, run gradlew test to get the exceptions.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)