01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 2005 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or 1any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19: * USA
20: *
21: * --------------------------------------------------------------------------
22: * $Id: ClientTest.java 8415 2006-06-01 14:20:54Z duvauchn $
23: * --------------------------------------------------------------------------
24: */package org.objectweb.jonas.cluster.test;
25:
26: import org.objectweb.sampleCluster2.client.ClientFOSFSB;
27: import org.objectweb.sampleCluster2.client.ClientLBHome;
28: import org.objectweb.sampleCluster2.client.ClientLBLookup;
29: import org.objectweb.sampleCluster2.client.ClientLBRemote;
30:
31: import junit.framework.TestCase;
32: import junit.framework.TestSuite;
33:
34: /**
35: *
36: * @author Nicolas Duvauchel
37: *
38: */
39: public class ClientTest extends TestCase {
40:
41: public static void main(String args[]) {
42: junit.textui.TestRunner.run(suite());
43: }
44:
45: public static TestSuite suite() {
46: return new TestSuite(ClientTest.class);
47: }
48:
49: public ClientTest(String s) {
50: super (s);
51: }
52:
53: protected void setUp() throws Exception {
54: }
55:
56: public void testLBHome() throws Exception {
57: System.out.println("testLBHome");
58: String[] args = null;
59: int result = ClientLBHome.main(args);
60: System.out.println("fin testLBHome");
61: if (result != 0) {
62: fail("on test LB Home");
63: }
64: }
65:
66: public void testFOSFSB() throws Exception {
67: System.out.println("testFOSFSB");
68: String[] args = null;
69: int result = ClientFOSFSB.main(args);
70: if (result != 0) {
71: fail("on test LB Home");
72: }
73: }
74:
75: public void testLBLookup() throws Exception {
76: System.out.println("testLBLookup");
77: String[] args = null;
78: int result = ClientLBLookup.main(args);
79: if (result != 0) {
80: fail("on test LB Home");
81: }
82: }
83:
84: public void testLBRemote() throws Exception {
85: System.out.println("testLBRemote");
86: String[] args = null;
87: int result = ClientLBRemote.main(args);
88: if (result != 0) {
89: fail("on test LB Home");
90: }
91: }
92:
93: }
|