Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.5.0-beta3
-
builds.apache.org ubuntu executors. Java 5.
Description
One test case is failing when building Shindig against Java 5. The issue seems to simply be a poor equality check of JSON objects. The attributes are in a different order in the Java 5 results, causing the compare to fail.
org.apache.shindig.gadgets.render.RenderingGadgetRewriterTest.xhrWrapperConfigurationInjected
Error Message
No shindig.xhrwrapper.oauthTokenName configuration present in rewritten HTML. expected:<...bar/baz.html","oauth[Service":"serviceName","oauthTokenName":"token]Name"}> but was:<...bar/baz.html","oauth[TokenName":"tokenName","oauthService":"service]Name"}>
Stacktrace
org.junit.ComparisonFailure: No shindig.xhrwrapper.oauthTokenName configuration present in rewritten HTML. expected:<...bar/baz.html","oauth[Service":"serviceName","oauthTokenName":"token]Name"}> but was:<...bar/baz.html","oauth[TokenName":"tokenName","oauthService":"service]Name"}>
at org.junit.Assert.assertEquals(Assert.java:125)
at org.apache.shindig.gadgets.render.RenderingGadgetRewriterTest.assertXhrConfigContains(RenderingGadgetRewriterTest.java:933)
at org.apache.shindig.gadgets.render.RenderingGadgetRewriterTest.checkXhrWrapperConfigurationInjection(RenderingGadgetRewriterTest.java:918)
at org.apache.shindig.gadgets.render.RenderingGadgetRewriterTest.xhrWrapperConfigurationInjected(RenderingGadgetRewriterTest.java:872)