|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.model.junit.ConcJUnitUtils
public class ConcJUnitUtils
Helpers for ConcJUnit.
| Constructor Summary | |
|---|---|
ConcJUnitUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
generateRTConcJUnitJarFile(File rtFile,
File concJUnitJarFile,
File tmpDir)
Generate the rt.concjunit.jar file using the specified concutest-junit-XXX-withrt.jar file. |
static boolean |
isCompatibleRTConcJUnitFile(File f)
Check if the file is a valid rt.concjunit.jar file that matches the currently running Java version. |
static boolean |
isValidConcJUnitFile(File f)
Check if the file is a valid concutest-junit-xxx-withrt.jar file. |
protected static boolean |
isValidJarFile(File f,
String... checkFilesInJar)
Check if the file is a valid jar file containing the files in the varargs. |
static boolean |
isValidJUnitFile(File f)
Check if the file is a valid junit.jar file. |
static boolean |
isValidRTConcJUnitFile(File f)
Check if the file is a valid rt.concjunit.jar file. |
static void |
showGenerateRTConcJUnitJarFileDialog(Frame parentFrame,
File rtFile,
File concJUnitJarFile,
Runnable1<File> successRunnable,
Runnable failureRunnable)
Show the "Generate ConcJUnit Runtime" dialog (ask for file name, etc.). |
static boolean |
showIncompatibleWantToRegenerateDialog(Frame parentFrame,
Runnable yesRunnable,
Runnable noRunnable)
Ask the user if the rt.concjunit.jar file should be regenerated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConcJUnitUtils()
| Method Detail |
|---|
protected static boolean isValidJarFile(File f,
String... checkFilesInJar)
f - file to checkcheckFilesInJar - file names that should be in the jar file
public static boolean isValidJUnitFile(File f)
f - file to check
public static boolean isValidConcJUnitFile(File f)
f - file to check
public static boolean isValidRTConcJUnitFile(File f)
f - file to check
public static boolean isCompatibleRTConcJUnitFile(File f)
f - file to check
public static boolean showIncompatibleWantToRegenerateDialog(Frame parentFrame,
Runnable yesRunnable,
Runnable noRunnable)
parentFrame - parent frame
public static void showGenerateRTConcJUnitJarFileDialog(Frame parentFrame,
File rtFile,
File concJUnitJarFile,
Runnable1<File> successRunnable,
Runnable failureRunnable)
parentFrame - parent framertFile - suggestion of where we should generate the runtimeconcJUnitJarFile - the concutest-junit-....-withrt.jar file that does the generationsuccessRunnable - command to execute after successful generation, parameter is the filefailureRunnable - command to execute if generation fails
public static boolean generateRTConcJUnitJarFile(File rtFile,
File concJUnitJarFile,
File tmpDir)
rtFile - target rt.concjunit.jar fileconcJUnitJarFile - concutest-junit-XXX-withrt.jar file that contains the instrumentortmpDir - temporary directory for the processing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||