Remove tests that relied on inner knowledge of the class. Feature still tested with cglib test.

This commit is contained in:
Luca Abbati 2019-04-12 17:12:50 +02:00
parent ff021f34db
commit f4a17ba4c5
No known key found for this signature in database
GPG Key ID: C901DDA2FFE14529
1 changed files with 0 additions and 26 deletions

View File

@ -101,32 +101,6 @@ class FieldBackedProviderTest extends AgentTestRunner {
new UntransformableKeyClass() | _
}
static class ClassWithContextGetter extends KeyClass {
def 'get__datadogContext$context$ContextTestInstrumentation$KeyClass'() {
return new Object()
}
}
static class ClassWithContextSetter extends KeyClass {
void 'set__datadogContext$context$ContextTestInstrumentation$KeyClass'(Object value) {}
}
def "works with classes already having a the context getter method defined"() {
when:
new ClassWithContextGetter()
then:
noExceptionThrown()
}
def "works with classes already having the context setter method defined"() {
when:
new ClassWithContextSetter()
then:
noExceptionThrown()
}
def "works with cglib enhanced instances which duplicates context getter and setter methods"() {
setup:
Enhancer enhancer = new Enhancer()