Skip to content

Commit

Permalink
Fix test failures by replacing with rhinoJs
Browse files Browse the repository at this point in the history
  • Loading branch information
arunans23 committed Jul 9, 2024
1 parent 8bbf011 commit 11611bb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<proxy name="scriptMediatorJSInlineTestProxy" transports="http">
<target>
<inSequence>
<script language="js">var symbol = mc.getPayloadXML()..*::Code.toString();
<script language="rhinoJs">var symbol = mc.getPayloadXML()..*::Code.toString();
mc.setPayloadXML(
&lt;m:getQuote xmlns:m="http://services.samples"&gt;
&lt;m:request&gt;
Expand All @@ -36,7 +36,7 @@
</send>
</inSequence>
<outSequence>
<script language="js" key="stockQuoteJsScript" function="transformResponse"/>
<script language="rhinoJs" key="stockQuoteJsScript" function="transformResponse"/>
<send/>
</outSequence>
</target>
Expand Down
2 changes: 1 addition & 1 deletion repository/conf/sample/synapse_sample_252.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<sequence name="text_proxy">
<log level="full"/>
<header name="Action" value="urn:placeOrder"/>
<script language="js">
<script language="rhinoJs">
var args = mc.getPayloadXML().toString().split(" ");
mc.setPayloadXML(
&lt;placeOrder xmlns="http://services.samples"&gt;
Expand Down
4 changes: 2 additions & 2 deletions repository/conf/sample/synapse_sample_351.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<sequence name="main">
<in>
<!-- transform the custom quote request into a standard quote requst expected by the service -->
<script language="js">
<script language="rhinoJs">
var symbol = mc.getPayloadXML()..*::Code.toString();
mc.setPayloadXML(
&lt;m:getQuote xmlns:m="http://services.samples"&gt;
Expand All @@ -41,7 +41,7 @@
</in>
<out>
<!-- transform the standard response back into the custom format the client expects -->
<script language="js">
<script language="rhinoJs">
var symbol = mc.getPayloadXML()..*::symbol.toString();
var price = mc.getPayloadXML()..*::last.toString();
mc.setPayloadXML(
Expand Down
2 changes: 1 addition & 1 deletion repository/conf/sample/synapse_sample_352.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<sequence name="main">
<in>
<!-- change the MessageContext into a response and set a response payload -->
<script language="js">
<script language="rhinoJs">
mc.setTo(mc.getReplyTo());
mc.setProperty("RESPONSE", "true");
mc.setPayloadXML(
Expand Down

0 comments on commit 11611bb

Please sign in to comment.