Skip to content

Instantly share code, notes, and snippets.

@simonetripodi
Created December 5, 2014 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonetripodi/62e6385066e623315110 to your computer and use it in GitHub Desktop.
Save simonetripodi/62e6385066e623315110 to your computer and use it in GitHub Desktop.
Apache Oltu serialization issue
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.oltu.oauth2.as.MD5GeneratorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.083 sec - in org.apache.oltu.oauth2.as.MD5GeneratorTest
Running org.apache.oltu.oauth2.as.OAuthIssuerImplTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.apache.oltu.oauth2.as.OAuthIssuerImplTest
Running org.apache.oltu.oauth2.as.OAuthRequestTest
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.099 sec - in org.apache.oltu.oauth2.as.OAuthRequestTest
Running org.apache.oltu.oauth2.as.OAuthUnauthenticatedRequestTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in org.apache.oltu.oauth2.as.OAuthUnauthenticatedRequestTest
Running org.apache.oltu.oauth2.as.response.OAuthASResponseTest
Tests run: 8, Failures: 8, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec <<< FAILURE! - in org.apache.oltu.oauth2.as.response.OAuthASResponseTest
testTokenResponseAdditionalParam(org.apache.oltu.oauth2.as.response.OAuthASResponseTest) Time elapsed: 0.001 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<[some_param=new_param&expires_in=200&refresh_token=refresh_token2&access_token=access_token]> but was:<[access_token=access_token&refresh_token=refresh_token2&some_param=new_param&expires_in=200]>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at org.apache.oltu.oauth2.as.response.OAuthASResponseTest.testTokenResponseAdditionalParam(OAuthASResponseTest.java:120)
testAuthzResponseWithState(org.apache.oltu.oauth2.as.response.OAuthASResponseTest) Time elapsed: 0 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<...p://www.example.com?[testValue=value2&state=ok&code=code]> but was:<...p://www.example.com?[code=code&state=ok&testValue=value2]>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at org.apache.oltu.oauth2.as.response.OAuthASResponseTest.testAuthzResponseWithState(OAuthASResponseTest.java:75)
testAuthzResponse(org.apache.oltu.oauth2.as.response.OAuthASResponseTest) Time elapsed: 0.001 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<...p://www.example.com?[testValue=value2&state=ok&code=code]> but was:<...p://www.example.com?[code=code&state=ok&testValue=value2]>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at org.apache.oltu.oauth2.as.response.OAuthASResponseTest.testAuthzResponse(OAuthASResponseTest.java:57)
testErrorResponse2(org.apache.oltu.oauth2.as.response.OAuthASResponseTest) Time elapsed: 0.002 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<...t?param2=true&error_[uri=http%3A%2F%2Fwww.example.com%2Ferror&error=access_denied&error_description=Access+denied]> but was:<...t?param2=true&error_[description=Access+denied&error=access_denied&error_uri=http%3A%2F%2Fwww.example.com%2Ferror]>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at org.apache.oltu.oauth2.as.response.OAuthASResponseTest.testErrorResponse2(OAuthASResponseTest.java:160)
testHeaderResponse(org.apache.oltu.oauth2.as.response.OAuthASResponseTest) Time elapsed: 0 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<Bearer [state="state_ok",code="oauth_code]"> but was:<Bearer [code="oauth_code",state="state_ok]">
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at org.apache.oltu.oauth2.as.response.OAuthASResponseTest.testHeaderResponse(OAuthASResponseTest.java:174)
testTokenResponse(org.apache.oltu.oauth2.as.response.OAuthASResponseTest) Time elapsed: 0 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<[expires_in=200&refresh_token=refresh_token2&access_token=access_token]> but was:<[access_token=access_token&refresh_token=refresh_token2&expires_in=200]>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at org.apache.oltu.oauth2.as.response.OAuthASResponseTest.testTokenResponse(OAuthASResponseTest.java:106)
testErrorResponse(org.apache.oltu.oauth2.as.response.OAuthASResponseTest) Time elapsed: 0.006 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<{"error_[uri":"http://www.example.com/error","error":"access_denied","error_description":"Access denied]"}> but was:<{"error_[description":"Access denied","error":"access_denied","error_uri":"http://www.example.com/error]"}>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at org.apache.oltu.oauth2.as.response.OAuthASResponseTest.testErrorResponse(OAuthASResponseTest.java:137)
testAuthzImplicitResponseWithState(org.apache.oltu.oauth2.as.response.OAuthASResponseTest) Time elapsed: 0.002 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<...p://www.example.com#[testValue=value2&state=ok&expires_in=400&access_token=access_111]> but was:<...p://www.example.com#[access_token=access_111&state=ok&expires_in=400&testValue=value2]>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at org.apache.oltu.oauth2.as.response.OAuthASResponseTest.testAuthzImplicitResponseWithState(OAuthASResponseTest.java:93)
Running org.apache.oltu.oauth2.as.UUIDValueGeneratorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.apache.oltu.oauth2.as.UUIDValueGeneratorTest
Running org.apache.oltu.oauth2.as.validator.TokenValidatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.apache.oltu.oauth2.as.validator.TokenValidatorTest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment