Author Login
Post Reply
Does @Mixin work correctly on classes with annotated methods?
I tried to mixin some helpers to my JUnit tests that eg. do some
setup/teardown. But when running the tests the methods annotated eg.
with @Before haven't been run.
import org.junit.*
class SomeHelper {
@Before
void mixinSetup() { println "mixin setup" }
}
@Mixin(SomeHelper)
class SomeTest {
@Before
void testClassSetup() { println "test class setup" }
@Test
void hardTest() { println "hard test" }
}
Regards,
Rene
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email