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