cn.shenyanchao.ut.utils
Class FileChecker

java.lang.Object
  extended by cn.shenyanchao.ut.utils.FileChecker

public class FileChecker
extends java.lang.Object

Created with IntelliJ IDEA.

Author:
shenyanchao Date: 6/18/13 Time: 3:25 PM

Constructor Summary
FileChecker()
           
 
Method Summary
static japa.parser.ast.body.MethodDeclaration isTestCaseExist(japa.parser.ast.CompilationUnit testCU, japa.parser.ast.body.MethodDeclaration method)
          check whether test method has exists
static boolean isTestJavaClassExist(java.io.File file)
          check whether the test class is exists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileChecker

public FileChecker()
Method Detail

isTestJavaClassExist

public static boolean isTestJavaClassExist(java.io.File file)
check whether the test class is exists

Parameters:
file -
Returns:
true or false;

isTestCaseExist

public static japa.parser.ast.body.MethodDeclaration isTestCaseExist(japa.parser.ast.CompilationUnit testCU,
                                                                     japa.parser.ast.body.MethodDeclaration method)
check whether test method has exists

Parameters:
method -
Returns:
existMethod or null


Copyright © 2013. All Rights Reserved.