You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by jleleu <le...@gmail.com> on 2012/06/17 14:41:46 UTC

Guice sample test failure

Hi,

When building the source trunk, I encounter a test failure on guice sample :

-------------------------------------------------------------------------------
Test set: org.apache.shiro.samples.guice.ContainerIntegrationTest
-------------------------------------------------------------------------------
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 6.217 sec
<<< FAILURE!
logInAndRememberMe(org.apache.shiro.samples.guice.ContainerIntegrationTest) 
Time elapsed: 2.19 sec  <<< FAILURE!
java.lang.AssertionError: The page does not contain a form named
'loginform'.
	at
com.gargoylesoftware.htmlunit.WebAssert.assertFormPresent(WebAssert.java:309)
	at
org.apache.shiro.samples.guice.ContainerIntegrationTest.logInAndRememberMe(ContainerIntegrationTest.java:76)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Am I missing something ?

Thanks.
Best regards,
Jérôme


--
View this message in context: http://shiro-developer.582600.n2.nabble.com/Guice-sample-test-failure-tp7577489.html
Sent from the Shiro Developer mailing list archive at Nabble.com.

Re: Guice sample test failure

Posted by jleleu <le...@gmail.com>.
Hi,

I checked a fresh copy also and got the same error again :
svn co http://svn.apache.org/repos/asf/shiro/trunk build-test
cd build-test
mvn clean install

My workstation :
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_22
Java home: c:\Program Files (x86)\Java\jdk1.6.0_22\jre
Default locale: fr_FR, platform encoding: Cp1252
OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"

If I build the trunk or just the samples directory, the test fails. If I
only build the Guice Web sample, the logInAndRememberMe test works.
When error happens, I see in logs that I'm logged in when I try to access
the /account url. In successfull case, the login page is called as I'm not
logged in.

I don't see any explanation yet.
Best regards,
Jérôme


--
View this message in context: http://shiro-developer.582600.n2.nabble.com/Guice-sample-test-failure-tp7577489p7577491.html
Sent from the Shiro Developer mailing list archive at Nabble.com.

Re: Guice sample test failure

Posted by Jared Bunting <ja...@peachjean.com>.
I'm not sure.  How are you building it?  I just ran a full build on a 
fresh checkout, and it ran through fine.

On Sun 17 Jun 2012 07:41:46 AM CDT, jleleu wrote:
> Hi,
>
> When building the source trunk, I encounter a test failure on guice sample :
>
> -------------------------------------------------------------------------------
> Test set: org.apache.shiro.samples.guice.ContainerIntegrationTest
> -------------------------------------------------------------------------------
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 6.217 sec
> <<< FAILURE!
> logInAndRememberMe(org.apache.shiro.samples.guice.ContainerIntegrationTest)
> Time elapsed: 2.19 sec  <<< FAILURE!
> java.lang.AssertionError: The page does not contain a form named
> 'loginform'.
> 	at
> com.gargoylesoftware.htmlunit.WebAssert.assertFormPresent(WebAssert.java:309)
> 	at
> org.apache.shiro.samples.guice.ContainerIntegrationTest.logInAndRememberMe(ContainerIntegrationTest.java:76)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> Am I missing something ?
>
> Thanks.
> Best regards,
> Jérôme
>
>
> --
> View this message in context: http://shiro-developer.582600.n2.nabble.com/Guice-sample-test-failure-tp7577489.html
> Sent from the Shiro Developer mailing list archive at Nabble.com.