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

Takuro Okada t2-okada at nri.co.jp
Fri Mar 2 00:41:09 EST 2007


  User: tokada  
  Date: 07/03/02 00:41:09

  Added:       java/src/tests/org/jboss/profiler/exp/view/util  Tag:
                        JBossProfiler_Expansion SignatureTest.java
  Log:
  
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +41 -0     jboss-profiler/java/src/tests/org/jboss/profiler/exp/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	2 Mar 2007 05:41:09 -0000	1.1.2.1
  @@ -0,0 +1,41 @@
  +package org.jboss.profiler.exp.view.util;
  +
  +import java.util.Map;
  +
  +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