1 /*
2 * $Id: BrokerTestCase.java 21739 2011-04-27 18:31:07Z dzapata $
3 * --------------------------------------------------------------------------------------
4 * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com
5 *
6 * The software in this package is published under the terms of the CPAL v1.0
7 * license, a copy of which has been included with this distribution in the
8 * LICENSE.txt file.
9 */
10
11 package org.mule.example.cep;
12
13 import org.mule.tck.FunctionalTestCase;
14
15 public class BrokerTestCase extends FunctionalTestCase
16 {
17 @Override
18 protected String getConfigResources()
19 {
20 return "mule-config.xml";
21 }
22
23 public void testBroker() throws Exception
24 {
25 Thread.sleep(20000); //don't set this too high without adjusting the test timeout first
26
27 // MuleClient client = new MuleClient();
28 //
29 // client.send("vm://stock.tick", new StockTick("SAP", 110, 0), null);
30 // Thread.sleep(1000);
31 // client.send("vm://stock.tick", new StockTick("SAP", 115, 2000), null);
32 // Thread.sleep(1000);
33 // client.send("vm://stock.tick", new StockTick("SAP", 100, 4000), null);
34 // Thread.sleep(1000);
35 // client.send("vm://stock.tick", new StockTick("SAP", 95, 6000), null);
36 // Thread.sleep(1000);
37 // client.send("vm://stock.tick", new StockTick("SAP", 80, 8000), null);
38 // Thread.sleep(1000);
39 }
40 /*
41 0;RHT;$75.20
42 0;JAVA;$59.90
43 0;IBM;$112.11
44 0;GOOG;$100.93
45 0;YHOO;$90.22
46 0;ORCL;$117.70
47 0;MSFT;$105.19
48 0;ORCL;$126.45
49 1765;YHOO;$92.90
50 3222;JAVA;$54.02
51 4069;YHOO;$87.02
52 5616;RHT;$82.53
53 6070;YHOO;$84.40
54 7500;MSFT;$113.51
55 9297;MSFT;$107.77
56 11123;YHOO;$78.65
57 12632;IBM;$109.05
58 13674;GOOG;$110.55
59 14908;SAP;$113.46
60 15328;MSFT;$102.97
61 17268;RHT;$80.06
62 17702;ORCL;$132.99
63 19321;JAVA;$55.72
64 20130;ORCL;$133.50
65 21898;YHOO;$85.45
66 23328;YHOO;$86.83
67 24695;RHT;$82.39
68 25263;SAP;$122.26
69 25479;GOOG;$119.35
70 26738;RHT;$77.92
71 27268;YHOO;$86.59
72 28720;MSFT;$110.58
73 30697;MSFT;$106.29
74 */
75 }
76
77