01: /*
02: * Copyright 2005-2006 The Kuali Foundation.
03: *
04: *
05: * Licensed under the Educational Community License, Version 1.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.opensource.org/licenses/ecl1.php
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package edu.iu.uis.eden.messaging;
18:
19: /**
20: *
21: * @author Kuali Rice Team (kuali-rice@googlegroups.com)
22: */
23: public class JmsMessagingNoRun {
24: // TODO renable this test
25:
26: // private TestClient1 testClient1;
27: //
28: // @Override
29: // public void setUp() throws Exception {
30: // testClient1 = new TestClient1();
31: // super.setUp();
32: // }
33: //
34: // @SuppressWarnings("unchecked")
35: // @Override
36: // public List getLifecycles() {
37: // List lifecycles = super.getLifecycles();
38: // lifecycles.add(testClient1);
39: // return lifecycles;
40: // }
41: //
42: // @Test public void testJmsMessage() throws Exception {
43: // QName serviceName = new QName("TestCl1", "jmsService");
44: // TestServiceInterface jmsService = (TestServiceInterface) KSBServiceLocator.getMessageHelper().getServiceAsynchronously(serviceName);
45: // jmsService.invoke();
46: // }
47:
48: // private void verifyServiceCalls() throws Exception {
49: // BAMService bamService = KSBServiceLocator.getBAMService();
50: // List<BAMTargetEntry> bamCalls = bamService.getCallsForService(QName.valueOf("{TestCl1}jmsService"));
51: // assertTrue("No service call recorded", bamCalls.size() > 0);
52: // boolean foundClientCall = false;
53: // boolean foundServiceCall = false;
54: // for (BAMTargetEntry bamEntry : bamCalls) {
55: // if (bamEntry.getServerInvocation()) {
56: // foundServiceCall = true;
57: // } else {
58: // foundClientCall = true;
59: // }
60: // }
61: // assertTrue("No client call recorded", foundClientCall);
62: // assertTrue("No service call recorded", foundServiceCall);
63: // }
64:
65: }
|