Martin Grigorov-4 wrote:
> 
> http://repo1.maven.org/maven2/org/apache/wicket/wicket-extensions/1.5.0/
> http://repo1.maven.org/maven2/org/wicketstuff/wicketstuff-jasperreports/1.5-RC7/
> 
> WicketStuff 1.5.0 will be released soon. But since Wicket 1.5.0 is
> actually RC7 without code changes they are fully compatible.
> 

Thanks, Martin!
For now we are using the wicketstuff-jasperreports 1.5-RC7 and application
is working.
But all of our integration tests fails with the following exception:


> testLoginFormWrongAuthentication(br.gov.to.secad.seg.view.LoginPageTest) 
> Time elapsed: 0.008 sec  <<< ERROR!
> java.lang.IllegalStateException: Application name can only be set once.
>       at org.apache.wicket.Application.setName(Application.java:846)
>       at
> org.apache.wicket.util.tester.BaseWicketTester.<init>(BaseWicketTester.java:291)
>       at
> org.apache.wicket.util.tester.BaseWicketTester.<init>(BaseWicketTester.java:241)
>       at
> org.apache.wicket.util.tester.WicketTester.<init>(WicketTester.java:192)
>       at br.gov.to.secad.seg.view.LoginPageTest.setUp(LoginPageTest.java:32)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> 

And every test has the following class header:



> @RunWith(SpringJUnit4ClassRunner.class)
> @ContextConfiguration(locations =
> {"classpath:applicationContext-dataSource.xml",
>     "classpath:applicationContext-jpa.xml"})
> @TransactionConfiguration(transactionManager = "transactionManager",
> defaultRollback = false)
> public class LoginPageTest {
> 
>     private WicketTester tester;
>     @Autowired
>     private ApplicationContext ctx;
>     @Autowired
>     private SEGApplication myWebApplication;
> 
>     @Before
>     public void setUp() {
>         tester = new WicketTester(myWebApplication);
>     }
> 
>     @Test
>     @Transactional
>     @Rollback(true)
>     public void testRenderMyPage() {
>         tester.startPage(LoginPage.class);
>         tester.assertRenderedPage(LoginPage.class);
>         //tester.assertComponent("login", LoginComponent.class);
>     }
> 

I've search in the google and wicket user list, but didn't find any
information about this problem.
Any tip here?

Regards,

Gilberto

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-releases-Wicket-1-5-tp3797412p3813838.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to