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 ServerOnewayInvocationTestCase extends PerformanceTest 25 { 26 public ServerOnewayInvocationTestCase(String name) 27 { 28 super(name); 29 } 30 31 32 public String getClientFQN() 33 { 34 return ServerOnewayInvocationTest.class.getName(); 35 } 36 37 public String getServerFQN() 38 { 39 return PerformanceInvokerServer.class.getName(); 40 } 41 42 public static Test suite() 43 { 44 return new TestSuite(ServerOnewayInvocationTestCase.class); 45 } 46 47 public static void main(String [] args) 48 { 49 org.apache.log4j.BasicConfigurator.configure(); 50 org.apache.log4j.Category.getRoot().setLevel(Level.INFO); 51 org.apache.log4j.Category.getInstance("org.jgroups").setLevel(Level.INFO); 52 org.apache.log4j.Category.getInstance("org.jboss.remoting").setLevel(Level.DEBUG); 53 org.apache.log4j.Category.getInstance("test").setLevel(Level.DEBUG); 54 55 TestRunner.run(suite()); 56 System.exit(0); 57 } 58 59 60 } | Popular Tags |