Hello,
I have an integration test, with the limit for the find all expanded in the Roo annotation:
I need another test and I'd like to use the value from this annotation, but it doesn't work:Code:@RooIntegrationTest(entity = Account.class, findAllMaximum=500) public class AccountIntegrationTest {
It seems the Roo annotations doesnt' belong to the class, the red line throws a NullPointerException.Code:@Test public void testFindAccountsByAmountGreaterThan() { //... long count = Account.countAccounts(); //It doesn't work either with this.getClass().getAnnotation... int findAllMaximum = AccountIntegrationTest .class.getAnnotation(RooIntegrationTest.class).findAllMaximum();
Debugging (AccountIntegrationTest.class.getAnnotations()) I can see this class has:
@org.junit.runner.RunWith
@org.springframework.test.context.ContextConfigura tion
@org.springframework.transaction.annotation.Transa ctional
@org.springframework.beans.factory.annotation.Conf igurable
Am I doing something wrong, or is this the expected behavour?


Reply With Quote
