testsgen.wttools
Class ClassUtil

java.lang.Object
  |
  +--testsgen.wttools.ClassUtil

public class ClassUtil
extends java.lang.Object

ClassUtil.java implements some useful and simple String transformations. These transformations are class related.

It means that it contains methods for accessing package name, short class name, transformation from source class name to test class name and so on.

Created: Tue Dec 04 15:51:38 2001

Version:
$Revision: 1.9 $
Author:
Artur Hefczyc

Constructor Summary
ClassUtil()
           
 
Method Summary
static java.lang.String getClassShortName(java.lang.String cls_name)
           
static java.lang.String getDecodedClassName(java.lang.String name)
           
static java.lang.String getPackageName(java.lang.String cls_name)
           
static java.lang.String getParamsStr(java.lang.String[] params)
           
static java.lang.String getTestClassName(ParsedSourceIfc src, java.lang.String pattern)
           
static java.lang.String getTestFileName(ParsedSourceIfc src, java.lang.String pattern, java.lang.String dir)
           
static java.lang.String getTestMethodName(java.lang.String name, java.lang.String[] params)
           
static boolean isTestClassName(java.lang.String file_name, java.lang.String pattern)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassUtil

public ClassUtil()
Method Detail

getDecodedClassName

public static java.lang.String getDecodedClassName(java.lang.String name)

getPackageName

public static java.lang.String getPackageName(java.lang.String cls_name)

getClassShortName

public static java.lang.String getClassShortName(java.lang.String cls_name)

getTestClassName

public static java.lang.String getTestClassName(ParsedSourceIfc src,
                                                java.lang.String pattern)

isTestClassName

public static boolean isTestClassName(java.lang.String file_name,
                                      java.lang.String pattern)

getTestFileName

public static java.lang.String getTestFileName(ParsedSourceIfc src,
                                               java.lang.String pattern,
                                               java.lang.String dir)

getTestMethodName

public static java.lang.String getTestMethodName(java.lang.String name,
                                                 java.lang.String[] params)

getParamsStr

public static java.lang.String getParamsStr(java.lang.String[] params)


Copyright GNU, wttools developers Team.