package quantisan.qte_lmax;

import org.junit.Test;

public class OrderTest {
    @Test
    public void testExecute() throws Exception {

    }
}

@@ -33,22 +33,191 @@
 ort 
-org.junit.Test
+com.lmax.api.FixedPointNumber;%0Aimport com.lmax.api.TimeInForce;%0Aimport com.lmax.api.order.MarketOrderSpecification;%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertEquals
 ;%0A%0Ap
@@ -274,15 +274,21 @@
 test
-Execute
+ToMarketOrder
 () t
@@ -309,13 +309,550 @@
 n %7B%0A
+        long instrument = 4001;%0A        String orderId = %22my order 1%22;%0A        FixedPointNumber quantity = FixedPointNumber.valueOf(1);%0A        FixedPointNumber stopLossOffset = FixedPointNumber.valueOf(10);%0A        MarketOrderSpecification mos = new MarketOrderSpecification(instrument, orderId, quantity, TimeInForce.IMMEDIATE_OR_CANCEL,stopLossOffset, null);%0A%0A        assertEquals(mos.toString(),%0A                Order.toMarketOrder(%22%7B:instrument %5C%22EURUSD%5C%22, :order-id %5C%22my order 1%5C%22, :quantity 1, :stop-loss-offset 10%7D%22).toString());
 %0A    %7D%0A%7D
 %0A
@@ -850,9 +850,8 @@
 %0A    %7D%0A%7D
-%0A

order test parsing edn message to order spec