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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassUtil
public ClassUtil()
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.