public class AllPackages extends BaseTestCase
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE
Modifier | Constructor and Description |
---|---|
private |
AllPackages(java.lang.String name)
Use suite method instead.
|
Modifier and Type | Method and Description |
---|---|
private static junit.framework.Test |
addSuiteByReflection(java.lang.String className)
Get a class's set of tests from its suite method through reflection.
|
private static java.util.List |
getTestClasses()
Get a list of test classes to add.
|
static java.lang.String[] |
getTopLevelSuiteNames()
Get the class names of all the top-level JUnit test suites that are
included in
suites.All . |
private static junit.framework.Test |
invokeSuite(java.lang.Class<?> klass)
Invoke the static
suite() method on a test class. |
static void |
main(java.lang.String[] args)
Print the class names of all the test suites included in
suites.All . |
static junit.framework.Test |
suite() |
alarm, assertDirectoryDeleted, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertLaunchedJUnitTestMethod, assertLaunchedJUnitTestMethod, assertSameNullness, assertSecurityManager, assertThrowableEquals, currentDirectory, execJavaCmd, execJavaCmd, execJavaCmd, fail, getClassVersionMajor, getEmmaJar, getFailureFolder, getFilesWith, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, hasInterruptibleIO, isCVM, isIBMJVM, isJ9Platform, isJava5, isJava7, isPhoneME, isPlatform, isSunJVM, isWindowsPlatform, newAssertionFailedError, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeFiles, removeSystemProperty, runBare, runsWithEmma, runsWithJaCoCo, setSystemErr, setSystemOut, setSystemProperty, sleep, sleepAtLeastOneTick, traceit, vmAtLeast
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, setUp, tearDown, toString
public static junit.framework.Test suite() throws java.lang.Exception
java.lang.Exception
private static java.util.List getTestClasses()
Get a list of test classes to add. The classes that have been compiled
with target level equal to the lowest supported level are included as
java.lang.Class
objects. Classes compiled with higher target
levels are included as java.lang.String
s with the class names
so that this method does not fail with class not found errors on some
platforms.
To construct a test suite from these classes, the classes' static
suite()
methods have to be called.
private static junit.framework.Test addSuiteByReflection(java.lang.String className) throws java.lang.Exception
java.lang.Exception
private static junit.framework.Test invokeSuite(java.lang.Class<?> klass) throws java.lang.Exception
suite()
method on a test class.klass
- the test classsuite()
java.lang.Exception
- if the suite() method cannot be called or failspublic static java.lang.String[] getTopLevelSuiteNames()
suites.All
.public static void main(java.lang.String[] args)
suites.All
.args
- command line arguments (ignored)Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.