1. adroitlogic
  2. ultraesb

Commits

Ruwan Linton  committed 12c682f

Fixing sample 221 and the failing test

  • Participants
  • Parent commits e41d8cd
  • Branches 2.2

Comments (0)

Files changed (2)

File modules/sample/src/test/java/org/adroitlogic/ultraesb/rest/MockRestService2Test.java

View file
         Assert.assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode());
         String resp = EntityUtils.toString(response.getEntity());
         System.out.println("Response : " + resp);
-        Assert.assertEquals(resp, "<response><user>asankha</user><roles>[ROLE_ADMIN, ROLE_USER]</roles><method>GET</method><uri>/service/rest-mock?x=5&y=6</uri><query>?x=5&y=6</query></response>");
+        Assert.assertEquals(resp, "<response><user>asankha</user><roles>[ROLE_ADMIN, ROLE_USER]</roles><method>GET</method><uri>/service/rest-mock?x=5&y=6</uri><query>x=5&y=6</query></response>");
     }
 }

File resources/samples/conf/ultra-sample-221.xml

View file
 http://www.adroitlogic.org/ultraesb http://schemas.ultraesb.org/ultraesb-2.0.xsd">
 
     <bean id="ultra-config" class="org.adroitlogic.ultraesb.core.ConfigurationImpl">
+        <property name="environment">
+            <bean class="org.adroitlogic.ultraesb.api.Environment">
+                <constructor-arg name="name" value="sample"/>
+            </bean>
+        </property>
         <property name="extensionPackages">
             <list>
                 <value>org.adroitlogic.ultraesb.transport.http</value>