Clover Coverage Report - ksb-test 2.0.0-SNAPSHOT
Coverage timestamp: Wed Dec 31 1969 19:00:00 EST
5   56   2   2.5
0   21   0.4   2
2     1  
1    
 
  StartBusTest       Line # 28 5 0% 2 7 0% 0.0
 
No Tests
 
1    /*
2    * Copyright 2007-2008 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;
17   
18    import javax.xml.namespace.QName;
19   
20    import org.junit.Test;
21    import org.kuali.rice.ksb.messaging.MessagingTestObject;
22    import org.kuali.rice.ksb.messaging.resourceloader.KSBResourceLoaderFactory;
23    import org.kuali.rice.ksb.messaging.service.KSBJavaService;
24    import org.kuali.rice.ksb.service.KSBServiceLocator;
25    import org.kuali.rice.ksb.test.KSBTestCase;
26   
27   
 
28    public class StartBusTest extends KSBTestCase {
29   
 
30  0 toggle @Override
31    public boolean startClient1() {
32  0 return true;
33    }
34   
 
35  0 toggle @Test
36    public void testStartTheBus() {
37  0 QName serviceName = new QName("TestCl1", "testJavaAsyncService");
38   
39  0 ((Runnable)KSBResourceLoaderFactory.getRemoteResourceLocator()).run();
40   
41  0 KSBJavaService testJavaAsyncService = (KSBJavaService) KSBServiceLocator.getMessageHelper().getServiceAsynchronously(serviceName);
42  0 testJavaAsyncService.invoke(new MessagingTestObject("message content"));
43   
44    // verifyServiceCalls(serviceName);
45    }
46   
47    // @Test public void testStartClient1() throws Exception {
48    // new TestClient1().start();
49    // }
50    //
51    // @Test public void testStartClient2() throws Exception {
52    // new TestClient1().start();
53    // new TestClient2().start();
54    // }
55    //
56    }