File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
main/groovy/org/testcontainers/spock
test/groovy/org/testcontainers/spock Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,15 @@ package org.testcontainers.spock
33import org.spockframework.runtime.extension.ExtensionAnnotation
44
55import java.lang.annotation.ElementType
6+ import java.lang.annotation.Inherited
67import java.lang.annotation.Retention
78import java.lang.annotation.RetentionPolicy
89import java.lang.annotation.Target
910
11+ @Inherited
1012@Retention (RetentionPolicy .RUNTIME )
1113@Target ([ElementType . TYPE , ElementType . METHOD ])
1214@ExtensionAnnotation (TestcontainersExtension )
1315@interface Testcontainers {
1416
15- }
17+ }
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ import org.testcontainers.containers.PostgreSQLContainer
44import spock.lang.Shared
55
66/**
7- * This test verifies that integration tests can subclass each other
7+ * This test verifies that integration tests can subclass each other.
8+ * Also verifies that the @Testcontainers annotation is inherited.
89 */
9- @Testcontainers
1010class TestHierarchyIT extends MySqlContainerIT {
1111
1212 @Shared
You can’t perform that action at this time.
0 commit comments