Permalink
Browse files

moved tests around to make room for more

  • Loading branch information...
tfennelly committed Nov 17, 2010
1 parent 907b592 commit a7c1900e54065a352aa5ab27384983d7db24e189
@@ -20,33 +20,33 @@
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
-package org.switchyard.cdi.omservice;
+package org.switchyard.cdi.omservice.basic;
import org.junit.Assert;
import org.junit.Test;
import org.switchyard.*;
import org.switchyard.cdi.AbstractCDITest;
-import org.switchyard.cdi.omservice.service.OrderRequest;
-import org.switchyard.cdi.omservice.service.OrderResponse;
+import org.switchyard.cdi.omservice.model.OrderRequest;
+import org.switchyard.cdi.omservice.model.OrderResponse;
import org.switchyard.internal.ServiceDomains;
import javax.xml.namespace.QName;
/**
* @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly@gmail.com</a>
*/
-public class OMInOutTest extends AbstractCDITest {
+public class BasicInOutTest extends AbstractCDITest {
@Test
public void test() {
ServiceDomain domain = ServiceDomains.getDomain();
- // Consume the OM service...
+ // Consume the OM model...
MockHandler responseConsumer = new MockHandler();
- Exchange exchange = domain.createExchange(new QName("OrderManagementService"), ExchangePattern.IN_OUT, responseConsumer);
+ Exchange exchange = domain.createExchange(new QName("BasicOrderManagementService"), ExchangePattern.IN_OUT, responseConsumer);
Message inMessage = MessageBuilder.newInstance().buildMessage();
- inMessage.setContent(new OrderRequest("D123"));
+ inMessage.setContent(new OrderRequest("D123", "ABCD"));
exchange.send(inMessage);
@@ -20,15 +20,17 @@
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
-package org.switchyard.cdi.omservice.service;
+package org.switchyard.cdi.omservice.basic;
import org.switchyard.cdi.Service;
+import org.switchyard.cdi.omservice.model.OrderRequest;
+import org.switchyard.cdi.omservice.model.OrderResponse;
/**
* @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly@gmail.com</a>
*/
@Service
-public class OrderManagementService {
+public class BasicOrderManagementService {
public OrderResponse createOrder(OrderRequest request) {
@@ -20,16 +20,18 @@
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
-package org.switchyard.cdi.omservice.service;
+package org.switchyard.cdi.omservice.model;
/**
* @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly@gmail.com</a>
*/
public class OrderRequest {
public String orderId;
+ public String productId;
- public OrderRequest(String orderId) {
+ public OrderRequest(String orderId, String productId) {
this.orderId = orderId;
+ this.productId = productId;
}
}
@@ -20,7 +20,7 @@
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
-package org.switchyard.cdi.omservice.service;
+package org.switchyard.cdi.omservice.model;
/**
* @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly@gmail.com</a>

0 comments on commit a7c1900

Please sign in to comment.