package io.irontest.core.runner;

import com.ibm.broker.config.proxy.MQBrokerConnectionParameters;
import io.irontest.models.endpoint.MQEndpointProperties;

/**
 * Created by Zheng on 25/07/2017.
 */
public class IIB90TeststepRunner extends IIBTeststepRunnerBase {

    public IIB90TeststepRunner(MQEndpointProperties endpointProperties) {
        //  for connecting to IIB 9.0 integration node
        MQBrokerConnectionParameters bcp = new MQBrokerConnectionParameters(
                endpointProperties.getHost(), endpointProperties.getPort(), endpointProperties.getQueueManagerName());
        bcp.setAdvancedConnectionParameters(
                endpointProperties.getSvrConnChannelName(), null, null, -1, -1, null);
        setBrokerConnectionParameters(bcp);
    }
}

@@ -62,18 +62,16 @@
 g.proxy.
-MQ
 BrokerCo
@@ -90,16 +90,202 @@
 meters;%0A
+import com.ibm.broker.config.proxy.LocalBrokerConnectionParameters;%0Aimport com.ibm.broker.config.proxy.MQBrokerConnectionParameters;%0Aimport io.irontest.models.endpoint.MQConnectionMode;%0A
 import i
@@ -580,18 +580,16 @@
         
-MQ
 BrokerCo
@@ -606,16 +606,237 @@
 rameters
+ bcp = null;%0A        if (endpointProperties.getConnectionMode() == MQConnectionMode.BINDINGS) %7B%0A            bcp = new LocalBrokerConnectionParameters(endpointProperties.getQueueManagerName());%0A        %7D else %7B%0A           
  bcp = n
@@ -860,32 +860,36 @@
 tionParameters(%0A
+    
                 
@@ -998,20 +998,57 @@
 %0A       
+     ((MQBrokerConnectionParameters)
  bcp
+)
 .setAdva
@@ -1065,32 +1065,36 @@
 tionParameters(%0A
+    
                 
@@ -1164,16 +1164,27 @@
  null);%0A
+        %7D%0A%0A
         

add bindings mode to MQ endpoint