Commits

Ruwan Linton committed 12c682f

Fixing sample 221 and the failing test

Comments (0)

Files changed (2)

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

         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>");
     }
 }

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

 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>