What is the best way to automated (integration) test with java with OpenId4Java against real OpenIdP
        Posted  
        
            by mP
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by mP
        
        
        
        Published on 2010-05-03T01:36:42Z
        Indexed on 
            2010/05/03
            1:48 UTC
        
        
        Read the original article
        Hit count: 245
        
I would like to do a bit more than manually test my openid glue code which happens to use the openid4java library. My goals would be to be able to run it within my IDE with a bunch of tests using Junit or similar.
Selenium & tomcat I was thinking of using selenium and a tomcat but thats not exactly a nice approach as this is a bit heavy and not really lightweight.
httpunit A solution with http-unit is incomplete because it doesnt really fit with the redirect to my openid provider, authenticate and redirect back. Perhaps i am wrong but this looks like it could get quite involved just to make sure this works.
Mocks My last solution is to mock everything and assume thats its accurate and works. If google or yahoo ever change in some way, then ill have to verify manually. The approach is simple but with a major flaw.
© Stack Overflow or respective owner