[jboss-cvs] JBossAS SVN: r66684 - in projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient: src/main/java/org/jboss/example/client and 2 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Nov 2 12:38:48 EDT 2007


Author: newtonm
Date: 2007-11-02 12:38:48 -0400 (Fri, 02 Nov 2007)
New Revision: 66684

Added:
   projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/main/java/org/jboss/example/client/Client.java
   projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/test/java/org/jboss/example/client/ClientTestCase.java
   projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/test/java/org/jboss/example/client/ClientTestSuite.java
Removed:
   projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/main/java/org/jboss/example/client/CmdLineClient.java
   projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/test/java/org/jboss/example/client/CmdLineClientTestCase.java
   projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/test/java/org/jboss/example/client/CmdLineClientTestSuite.java
Modified:
   projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/main/java/org/jboss/example/client/ConsoleInput.java
   projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/main/resources/log4j.properties
Log:
Changed name from CmdLineClient to Client.

Modified: projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/pom.xml	2007-11-02 16:38:03 UTC (rev 66683)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/pom.xml	2007-11-02 16:38:48 UTC (rev 66684)
@@ -3,10 +3,10 @@
 
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.jboss.microcontainer.examples</groupId>
-  <artifactId>cmdLineClient</artifactId>
+  <artifactId>client</artifactId>
   <packaging>jar</packaging>
   <version>1.0.0</version>
-  <name>Cmd Line Client</name>
+  <name>Client</name>
   <description>A simple command line client that uses the Human Resources Service.</description>
 
   <dependencies>
@@ -39,7 +39,7 @@
           <archive>
             <addMavenDescriptor>false</addMavenDescriptor>
             <manifest>
-              <mainClass>org.jboss.example.client.CmdLineClient</mainClass>
+              <mainClass>org.jboss.example.client.Client</mainClass>
               <addClasspath>true</addClasspath>
               <classpathPrefix>lib</classpathPrefix>  
             </manifest>

Copied: projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/main/java/org/jboss/example/client/Client.java (from rev 66682, projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/main/java/org/jboss/example/client/CmdLineClient.java)
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/main/java/org/jboss/example/client/Client.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/main/java/org/jboss/example/client/Client.java	2007-11-02 16:38:48 UTC (rev 66684)
@@ -0,0 +1,184 @@
+package org.jboss.example.client;
+
+import java.io.IOException;
+import java.net.URL;
+import java.text.ParseException;
+import java.util.Date;
+import java.util.Set;
+
+import org.jboss.example.service.Address;
+import org.jboss.example.service.Employee;
+import org.jboss.example.service.HRManager;
+import org.jboss.example.service.util.AgeBasedSalaryStrategy;
+import org.jboss.example.service.util.LocationBasedSalaryStrategy;
+import org.jboss.example.service.util.SalaryStrategy;
+import org.jboss.kernel.Kernel;
+import org.jboss.kernel.spi.dependency.KernelControllerContext;
+import org.jboss.kernel.spi.registry.KernelBus;
+import org.jboss.kernel.spi.registry.KernelRegistry;
+
+public class Client {
+    
+	protected boolean useBus = false;
+		
+	private EmbeddedBootstrap bootstrap;
+	private Kernel kernel;
+	private KernelRegistry registry;
+	private KernelBus bus;
+
+	private URL url;
+	private HRManager manager;
+
+	private final static String HRSERVICE = "HRService";
+	private final static String EMPLOYEE = "org.jboss.example.service.Employee";
+
+	public static void main(String[] args) throws Exception {
+		if ((args.length == 1 && !args[0].equals("bus")) || args.length > 1) {
+			System.out.println("Usage: java -jar cmdLineClient-1.0.0.jar [bus]");
+			System.exit(1);
+		}
+
+		new Client(args.length == 1);
+    }
+
+	public Client(final boolean useBus) throws Exception {
+		
+		this.useBus = useBus;
+		
+		ClassLoader cl = Thread.currentThread().getContextClassLoader();
+		url = cl.getResource("META-INF/jboss-beans.xml");
+	
+		// Start JBoss Microcontainer
+		bootstrap = new EmbeddedBootstrap();
+		bootstrap.run();
+		kernel = bootstrap.getKernel();
+		registry = kernel.getRegistry();
+		bus = kernel.getBus();
+		
+		new ConsoleInput(this, bootstrap, useBus, url);		
+ 	}
+	
+	void cacheServiceRef() {
+		if (manager == null) {
+			KernelControllerContext context = (KernelControllerContext) registry.getEntry(HRSERVICE);
+			if (context != null) { manager = (HRManager) context.getTarget(); }
+		}
+	}
+
+	private Object invoke(String serviceName, String methodName, Object[] args, String[] types) {
+		Object result = null;
+		try {
+			result = bus.invoke(serviceName, methodName, args, types);
+		} catch (Throwable t) {
+			t.printStackTrace();
+		}	
+		return result;
+	}
+	
+	void addEmployee() throws ParseException, NumberFormatException, IllegalArgumentException, IOException {
+		Employee newEmployee = ConsoleInput.getEmployee();		
+		Address address = ConsoleInput.getAddress();
+		Date dateOfBirth = ConsoleInput.getDateOfBirth();
+		
+		newEmployee.setAddress(address);
+		newEmployee.setDateOfBirth(dateOfBirth);
+		
+		boolean added;	
+		if (useBus)
+			added = (Boolean) invoke(HRSERVICE, "addEmployee", new Object[] {newEmployee}, new String[] {EMPLOYEE});
+		else
+			added = manager.addEmployee(newEmployee);			
+		System.out.println("Added employee: " + added);
+	}
+	
+	@SuppressWarnings("unchecked")
+	void listEmployees() {			
+		Set<Employee> employees;
+		if (useBus)
+			employees = (Set<Employee>) invoke(HRSERVICE, "getEmployees", new Object[] {}, new String[] {});
+		else
+			employees = manager.getEmployees();
+		System.out.println("Employees: " + employees);					
+	}
+	
+	void removeEmployee() throws IllegalArgumentException, IOException {			
+		Employee employee = ConsoleInput.getEmployee();
+		
+		if (useBus)
+			invoke(HRSERVICE, "removeEmployee", new Object[] {employee}, new String[] {EMPLOYEE});
+		else
+			manager.removeEmployee(employee);
+	}
+	
+	void getSalary() throws IllegalArgumentException, IOException {
+		Employee employee = ConsoleInput.getEmployee();
+
+		Integer salary = null;
+		if (useBus)
+			salary = (Integer) invoke(HRSERVICE, "getSalary", new Object[] {employee}, new String[] {EMPLOYEE});
+		else
+			salary = manager.getSalary(employee);
+		System.out.println("Salary: " + salary);			
+	}
+	
+	void setSalary() throws NumberFormatException, IllegalArgumentException, IOException {
+		Employee employee = ConsoleInput.getEmployee();	
+		Integer salary = ConsoleInput.getSalary();		
+		
+		Employee actualEmployee;
+		if (useBus) {
+			actualEmployee = (Employee) invoke(HRSERVICE, "getEmployee", new Object[] {employee.getFirstName(), employee.getLastName()}, new String[] {"java.lang.String","java.lang.String"});	
+			invoke(HRSERVICE, "setSalary", new Object[] {actualEmployee, salary}, new String[] {EMPLOYEE, "java.lang.Integer"});	
+		} else {
+			actualEmployee = manager.getEmployee(employee.getFirstName(), employee.getLastName());
+			manager.setSalary(actualEmployee, salary);			
+		}			
+	}
+	
+	void toggleHiringFreeze() {
+		boolean hiringFreeze;
+		if (useBus) {
+			hiringFreeze = (Boolean) invoke(HRSERVICE, "isHiringFreeze", new Object[] {}, new String[] {});	
+			invoke(HRSERVICE, "setHiringFreeze", new Object[] {!hiringFreeze}, new String[] {"boolean"});	
+		} else {
+			hiringFreeze = manager.isHiringFreeze();
+			manager.setHiringFreeze(!hiringFreeze);
+		}		
+	}
+	
+	@SuppressWarnings("unchecked")
+	void printStatus() {
+		boolean hiringFreeze;
+		int totalEmployees;
+		SalaryStrategy salaryStrategy;
+		
+		if (useBus) {
+			try {
+				hiringFreeze = (Boolean) invoke(HRSERVICE, "isHiringFreeze", new Object[] {}, new String[] {});
+				Set<Employee> employees = (Set<Employee>) invoke(HRSERVICE, "getEmployees", new Object[] {}, new String[] {});
+				totalEmployees = employees.size();				
+				salaryStrategy = (SalaryStrategy) invoke(HRSERVICE, "getSalaryStrategy", new Object[] {}, new String[] {});
+			} catch (Exception e) {
+				System.out.println("HRService is not deployed.");
+				return;
+			}
+		} else {
+			hiringFreeze = manager.isHiringFreeze();
+			totalEmployees = manager.getEmployees().size();
+			salaryStrategy = manager.getSalaryStrategy();		
+		}	
+		
+		System.out.println("Total number of employees: " + totalEmployees);
+		System.out.println("Hiring Freeze: " + hiringFreeze);
+		String strategy = "";
+		if (salaryStrategy == null) { strategy = "None"; }
+		else if (salaryStrategy instanceof AgeBasedSalaryStrategy ) { strategy = "AgeBased"; }
+		else if (salaryStrategy instanceof LocationBasedSalaryStrategy ) { strategy = "LocationBased"; }
+		
+		System.out.print("Salary Strategy: " + strategy);
+		if (salaryStrategy != null) {
+			System.out.print(" - MinSalary: " + salaryStrategy.getMinSalary() + " MaxSalary: " + salaryStrategy.getMaxSalary());
+		}
+		System.out.println();
+	}
+}
\ No newline at end of file

Deleted: projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/main/java/org/jboss/example/client/CmdLineClient.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/main/java/org/jboss/example/client/CmdLineClient.java	2007-11-02 16:38:03 UTC (rev 66683)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/main/java/org/jboss/example/client/CmdLineClient.java	2007-11-02 16:38:48 UTC (rev 66684)
@@ -1,184 +0,0 @@
-package org.jboss.example.client;
-
-import java.io.IOException;
-import java.net.URL;
-import java.text.ParseException;
-import java.util.Date;
-import java.util.Set;
-
-import org.jboss.example.service.Address;
-import org.jboss.example.service.Employee;
-import org.jboss.example.service.HRManager;
-import org.jboss.example.service.util.AgeBasedSalaryStrategy;
-import org.jboss.example.service.util.LocationBasedSalaryStrategy;
-import org.jboss.example.service.util.SalaryStrategy;
-import org.jboss.kernel.Kernel;
-import org.jboss.kernel.spi.dependency.KernelControllerContext;
-import org.jboss.kernel.spi.registry.KernelBus;
-import org.jboss.kernel.spi.registry.KernelRegistry;
-
-public class CmdLineClient {
-    
-	protected boolean useBus = false;
-		
-	private EmbeddedBootstrap bootstrap;
-	private Kernel kernel;
-	private KernelRegistry registry;
-	private KernelBus bus;
-
-	private URL url;
-	private HRManager manager;
-
-	private final static String HRSERVICE = "HRService";
-	private final static String EMPLOYEE = "org.jboss.example.service.Employee";
-
-	public static void main(String[] args) throws Exception {
-		if ((args.length == 1 && !args[0].equals("bus")) || args.length > 1) {
-			System.out.println("Usage: java -jar cmdLineClient-1.0.0.jar [bus]");
-			System.exit(1);
-		}
-
-		new CmdLineClient(args.length == 1);
-    }
-
-	public CmdLineClient(final boolean useBus) throws Exception {
-		
-		this.useBus = useBus;
-		
-		ClassLoader cl = Thread.currentThread().getContextClassLoader();
-		url = cl.getResource("META-INF/jboss-beans.xml");
-	
-		// Start JBoss Microcontainer
-		bootstrap = new EmbeddedBootstrap();
-		bootstrap.run();
-		kernel = bootstrap.getKernel();
-		registry = kernel.getRegistry();
-		bus = kernel.getBus();
-		
-		new ConsoleInput(this, bootstrap, useBus, url);		
- 	}
-	
-	void cacheServiceRef() {
-		if (manager == null) {
-			KernelControllerContext context = (KernelControllerContext) registry.getEntry(HRSERVICE);
-			if (context != null) { manager = (HRManager) context.getTarget(); }
-		}
-	}
-
-	private Object invoke(String serviceName, String methodName, Object[] args, String[] types) {
-		Object result = null;
-		try {
-			result = bus.invoke(serviceName, methodName, args, types);
-		} catch (Throwable t) {
-			t.printStackTrace();
-		}	
-		return result;
-	}
-	
-	void addEmployee() throws ParseException, NumberFormatException, IllegalArgumentException, IOException {
-		Employee newEmployee = ConsoleInput.getEmployee();		
-		Address address = ConsoleInput.getAddress();
-		Date dateOfBirth = ConsoleInput.getDateOfBirth();
-		
-		newEmployee.setAddress(address);
-		newEmployee.setDateOfBirth(dateOfBirth);
-		
-		boolean added;	
-		if (useBus)
-			added = (Boolean) invoke(HRSERVICE, "addEmployee", new Object[] {newEmployee}, new String[] {EMPLOYEE});
-		else
-			added = manager.addEmployee(newEmployee);			
-		System.out.println("Added employee: " + added);
-	}
-	
-	@SuppressWarnings("unchecked")
-	void listEmployees() {			
-		Set<Employee> employees;
-		if (useBus)
-			employees = (Set<Employee>) invoke(HRSERVICE, "getEmployees", new Object[] {}, new String[] {});
-		else
-			employees = manager.getEmployees();
-		System.out.println("Employees: " + employees);					
-	}
-	
-	void removeEmployee() throws IllegalArgumentException, IOException {			
-		Employee employee = ConsoleInput.getEmployee();
-		
-		if (useBus)
-			invoke(HRSERVICE, "removeEmployee", new Object[] {employee}, new String[] {EMPLOYEE});
-		else
-			manager.removeEmployee(employee);
-	}
-	
-	void getSalary() throws IllegalArgumentException, IOException {
-		Employee employee = ConsoleInput.getEmployee();
-
-		Integer salary = null;
-		if (useBus)
-			salary = (Integer) invoke(HRSERVICE, "getSalary", new Object[] {employee}, new String[] {EMPLOYEE});
-		else
-			salary = manager.getSalary(employee);
-		System.out.println("Salary: " + salary);			
-	}
-	
-	void setSalary() throws NumberFormatException, IllegalArgumentException, IOException {
-		Employee employee = ConsoleInput.getEmployee();	
-		Integer salary = ConsoleInput.getSalary();		
-		
-		Employee actualEmployee;
-		if (useBus) {
-			actualEmployee = (Employee) invoke(HRSERVICE, "getEmployee", new Object[] {employee.getFirstName(), employee.getLastName()}, new String[] {"java.lang.String","java.lang.String"});	
-			invoke(HRSERVICE, "setSalary", new Object[] {actualEmployee, salary}, new String[] {EMPLOYEE, "java.lang.Integer"});	
-		} else {
-			actualEmployee = manager.getEmployee(employee.getFirstName(), employee.getLastName());
-			manager.setSalary(actualEmployee, salary);			
-		}			
-	}
-	
-	void toggleHiringFreeze() {
-		boolean hiringFreeze;
-		if (useBus) {
-			hiringFreeze = (Boolean) invoke(HRSERVICE, "isHiringFreeze", new Object[] {}, new String[] {});	
-			invoke(HRSERVICE, "setHiringFreeze", new Object[] {!hiringFreeze}, new String[] {"boolean"});	
-		} else {
-			hiringFreeze = manager.isHiringFreeze();
-			manager.setHiringFreeze(!hiringFreeze);
-		}		
-	}
-	
-	@SuppressWarnings("unchecked")
-	void printStatus() {
-		boolean hiringFreeze;
-		int totalEmployees;
-		SalaryStrategy salaryStrategy;
-		
-		if (useBus) {
-			try {
-				hiringFreeze = (Boolean) invoke(HRSERVICE, "isHiringFreeze", new Object[] {}, new String[] {});
-				Set<Employee> employees = (Set<Employee>) invoke(HRSERVICE, "getEmployees", new Object[] {}, new String[] {});
-				totalEmployees = employees.size();				
-				salaryStrategy = (SalaryStrategy) invoke(HRSERVICE, "getSalaryStrategy", new Object[] {}, new String[] {});
-			} catch (Exception e) {
-				System.out.println("HRService is not deployed.");
-				return;
-			}
-		} else {
-			hiringFreeze = manager.isHiringFreeze();
-			totalEmployees = manager.getEmployees().size();
-			salaryStrategy = manager.getSalaryStrategy();		
-		}	
-		
-		System.out.println("Total number of employees: " + totalEmployees);
-		System.out.println("Hiring Freeze: " + hiringFreeze);
-		String strategy = "";
-		if (salaryStrategy == null) { strategy = "None"; }
-		else if (salaryStrategy instanceof AgeBasedSalaryStrategy ) { strategy = "AgeBased"; }
-		else if (salaryStrategy instanceof LocationBasedSalaryStrategy ) { strategy = "LocationBased"; }
-		
-		System.out.print("Salary Strategy: " + strategy);
-		if (salaryStrategy != null) {
-			System.out.print(" - MinSalary: " + salaryStrategy.getMinSalary() + " MaxSalary: " + salaryStrategy.getMaxSalary());
-		}
-		System.out.println();
-	}
-}
\ No newline at end of file

Modified: projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/main/java/org/jboss/example/client/ConsoleInput.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/main/java/org/jboss/example/client/ConsoleInput.java	2007-11-02 16:38:03 UTC (rev 66683)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/main/java/org/jboss/example/client/ConsoleInput.java	2007-11-02 16:38:48 UTC (rev 66684)
@@ -13,7 +13,7 @@
 
 public class ConsoleInput {
 	
-	public ConsoleInput(final CmdLineClient client, final EmbeddedBootstrap bootstrap, final boolean useBus, final URL url) {
+	public ConsoleInput(final Client client, final EmbeddedBootstrap bootstrap, final boolean useBus, final URL url) {
 		printMenu();
 		
 		Thread eventThread = new Thread(new Runnable() {

Modified: projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/main/resources/log4j.properties
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/main/resources/log4j.properties	2007-11-02 16:38:03 UTC (rev 66683)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/main/resources/log4j.properties	2007-11-02 16:38:48 UTC (rev 66684)
@@ -4,5 +4,5 @@
 log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
 
 # Pattern to output the caller's file name and line number.
-log4j.appender.stdout.layout.ConversionPattern=CmdLineClient %5p [%d{dd-MM-yyyy HH:mm:ss}] %c{1} - %m%n
+log4j.appender.stdout.layout.ConversionPattern=Client %5p [%d{dd-MM-yyyy HH:mm:ss}] %c{1} - %m%n
 

Copied: projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/test/java/org/jboss/example/client/ClientTestCase.java (from rev 66682, projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/test/java/org/jboss/example/client/CmdLineClientTestCase.java)
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/test/java/org/jboss/example/client/ClientTestCase.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/test/java/org/jboss/example/client/ClientTestCase.java	2007-11-02 16:38:48 UTC (rev 66684)
@@ -0,0 +1,32 @@
+package org.jboss.example.client;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+public class ClientTestCase extends TestCase
+{
+   public ClientTestCase(String name)
+   {
+      super(name);
+   }
+
+   /**
+    * Setup the test
+    *
+    * @return the test
+    */
+   public static Test suite()
+   {
+      TestSuite suite = new TestSuite();
+      suite.addTest(new TestSuite(ClientTestCase.class));
+      return suite;
+   }
+
+   public void testConfigure() throws Exception
+   {
+      Client client = new Client(false);
+      assertNotNull(client);
+   }
+
+}

Copied: projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/test/java/org/jboss/example/client/ClientTestSuite.java (from rev 66642, projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/test/java/org/jboss/example/client/CmdLineClientTestSuite.java)
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/test/java/org/jboss/example/client/ClientTestSuite.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/test/java/org/jboss/example/client/ClientTestSuite.java	2007-11-02 16:38:48 UTC (rev 66684)
@@ -0,0 +1,24 @@
+package org.jboss.example.client;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+public class ClientTestSuite extends TestSuite
+{
+
+   public static void main(String[] args)
+   {
+      TestRunner.run(suite());
+   }
+
+   public static Test suite()
+   {
+      TestSuite suite = new TestSuite("CmdLineClient Tests");
+
+      suite.addTest(ClientTestCase.suite());
+
+      return suite;
+   }
+
+}

Deleted: projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/test/java/org/jboss/example/client/CmdLineClientTestCase.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/test/java/org/jboss/example/client/CmdLineClientTestCase.java	2007-11-02 16:38:03 UTC (rev 66683)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/test/java/org/jboss/example/client/CmdLineClientTestCase.java	2007-11-02 16:38:48 UTC (rev 66684)
@@ -1,35 +0,0 @@
-package org.jboss.example.client;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-/**
- * @author <a href="mailto:mark.newton at jboss.org">Mark Newton</a>
- */
-public class CmdLineClientTestCase extends TestCase
-{
-   public CmdLineClientTestCase(String name)
-   {
-      super(name);
-   }
-
-   /**
-    * Setup the test
-    *
-    * @return the test
-    */
-   public static Test suite()
-   {
-      TestSuite suite = new TestSuite();
-      suite.addTest(new TestSuite(CmdLineClientTestCase.class));
-      return suite;
-   }
-
-   public void testConfigure() throws Exception
-   {
-      CmdLineClient client = new CmdLineClient(false);
-      assertNotNull(client);
-   }
-
-}

Deleted: projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/test/java/org/jboss/example/client/CmdLineClientTestSuite.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/test/java/org/jboss/example/client/CmdLineClientTestSuite.java	2007-11-02 16:38:03 UTC (rev 66683)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/cmdLineClient/src/test/java/org/jboss/example/client/CmdLineClientTestSuite.java	2007-11-02 16:38:48 UTC (rev 66684)
@@ -1,27 +0,0 @@
-package org.jboss.example.client;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
-
-/**
- * @author <a href="mailto:mark.newton at jboss.org">Mark Newton</a>
- */
-public class CmdLineClientTestSuite extends TestSuite
-{
-
-   public static void main(String[] args)
-   {
-      TestRunner.run(suite());
-   }
-
-   public static Test suite()
-   {
-      TestSuite suite = new TestSuite("CmdLineClient Tests");
-
-      suite.addTest(CmdLineClientTestCase.suite());
-
-      return suite;
-   }
-
-}




More information about the jboss-cvs-commits mailing list