Uploaded image for project: 'Shindig'
  1. Shindig
  2. SHINDIG-1838

RenderingGadgetRewriterTest.xhrWrapperConfigurationInjected fails in Java 5 builds

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.5.0-beta3
    • 2.5.0-beta4
    • Java
    • 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)

      Attachments

        Activity

          People

            ssievers Stanton Sievers
            ssievers Stanton Sievers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: