1 7 package org.jboss.remoting.performance.oneway; 8 9 import junit.framework.Test; 10 import junit.framework.TestSuite; 11 import junit.textui.TestRunner; 12 import org.apache.log4j.Level; 13 import org.jboss.remoting.performance.PerformanceInvokerServer; 14 import org.jboss.remoting.performance.PerformanceTest; 15 16 24 public class ClientOnewayInvocationTestCase extends PerformanceTest 25 { 26 public ClientOnewayInvocationTestCase(String name) 27 { 28 super(name); 29 } 30 31 public String getClientFQN() 32 { 33 return ClientOnewayInvocationTest.class.getName(); 34 } 35 36 public String getServerFQN() 37 { 38 return PerformanceInvokerServer.class.getName(); 39 } 40 41 public static Test suite() 42 { 43 return new TestSuite(ClientOnewayInvocationTestCase.class); 44 } 45 46 public static void main(String [] args) 47 { 48 org.apache.log4j.BasicConfigurator.configure(); 49 org.apache.log4j.Category.getRoot().setLevel(Level.INFO); 50 org.apache.log4j.Category.getInstance("org.jgroups").setLevel(Level.INFO); 51 org.apache.log4j.Category.getInstance("org.jboss.remoting").setLevel(Level.DEBUG); 52 org.apache.log4j.Category.getInstance("test").setLevel(Level.DEBUG); 53 54 TestRunner.run(suite()); 55 System.exit(0); 56 } 57 58 59 } | Popular Tags |