[jboss-cvs] jboss-profiler/java/src/tests/org/jboss/profiler/view/util ...

Takuro Okada t2-okada at nri.co.jp
Wed Apr 11 07:13:54 EDT 2007


  User: tokada  
  Date: 07/04/11 07:13:54

  Added:       java/src/tests/org/jboss/profiler/view/util  Tag:
                        JBossProfiler_Expansion SignatureTest.java
  Log:
  Moved to another directory
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +43 -0     jboss-profiler/java/src/tests/org/jboss/profiler/view/util/Attic/SignatureTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SignatureTest.java
  ===================================================================
  RCS file: SignatureTest.java
  diff -N SignatureTest.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ SignatureTest.java	11 Apr 2007 11:13:54 -0000	1.1.2.1
  @@ -0,0 +1,43 @@
  +package org.jboss.profiler.view.util;
  +
  +import java.util.Map;
  +
  +import org.jboss.profiler.view.util.Signature;
  +
  +import junit.framework.TestCase;
  +
  +public class SignatureTest extends TestCase {
  +
  +    public void testToString_Java() {
  +        Signature target = new Signature();
  +        target.add("org.jboss.mq.server.JMSTopic.addMessage");
  +        target.add("org.jboss.mq.server.JMSTopic.acknowledge");
  +        target.add("org.jboss.mq.il.ServerILJMXService.bindJNDIReferences");
  +        for(Map.Entry<String, Signature.Type> entry : target) {
  +            System.out.print(entry.getKey());
  +            System.out.println("["+entry.getValue()+"]");
  +        }
  +        System.out.print("\n");
  +    }
  +    
  +    public void testCountDepth_Java() {
  +        assertEquals(Signature.countDepth("org.jboss.mq.server.JMSTopic.addMessage"), 5);
  +    }
  +    
  +    public void testToString_URL() {
  +        Signature target = new Signature();
  +        target.add("/test/pages/jsp/sample1.jsp");
  +        target.add("/test/pages/jsp/sample2.jsp");
  +        target.add("/test/TestServlet");
  +        for(Map.Entry<String, Signature.Type> entry : target) {
  +            System.out.print(entry.getKey());
  +            System.out.println("["+entry.getValue()+"]");
  +        }
  +        System.out.print("\n");
  +    }
  +    
  +    public void testCountDepth_URL() {
  +        assertEquals(Signature.countDepth("/test/pages/jsp/sample1.jsp"), 3);
  +    }
  +
  +}
  
  
  



More information about the jboss-cvs-commits mailing list