|
org.netbeans.modules.jellytools.platform/3 3.13 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.netbeans.junit.NbTestCase
org.netbeans.jellytools.TestBundleKeys
public abstract class TestBundleKeys
Base class for testing resurce bundle keys used in a particular jellytools cluster. Descendants need to implement the getPropertiesName() and getDescendantClass() methods and also add the suite() and main() methods.
| Constructor Summary | |
|---|---|
TestBundleKeys(String isBundleName)
|
|
| Method Summary | |
|---|---|
protected abstract ClassLoader |
getDescendantClassLoader()
Descendants need to implement this method to return their classloader. |
protected static Properties |
getProperties(ClassLoader irClassLoader,
String isPropertiesName)
|
protected abstract String |
getPropertiesName()
Descendants implement this method to return a proper name. |
protected static junit.framework.Test |
prepareSuite(Class irClass,
String isPropertiesName)
Does common things needed in the suite() method that descendants need to create. |
protected void |
runTest()
Performs the test itself. |
| Methods inherited from class org.netbeans.junit.NbTestCase |
|---|
assertFile, assertFile, assertFile, assertFile, assertFile, assertFile, assertFile, assertFile, assertFile, assertFile, assertGC, assertGC, assertSize, assertSize, assertSize, assertSize, canRun, clearWorkDir, compareReferenceFiles, compareReferenceFiles, convertNBFSURL, failByBug, failByBug, getDataDir, getExpectedFail, getGoldenFile, getGoldenFile, getLog, getLog, getRef, getTestNumber, getWorkDir, getWorkDirPath, log, log, logLevel, logRoot, ref, run, runBare, runInEQ, setFilter, timeOut |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, setName, setUp, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
|---|
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, fail, fail, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface junit.framework.Test |
|---|
countTestCases |
| Constructor Detail |
|---|
public TestBundleKeys(String isBundleName)
| Method Detail |
|---|
protected abstract String getPropertiesName()
protected abstract ClassLoader getDescendantClassLoader()
protected static Properties getProperties(ClassLoader irClassLoader,
String isPropertiesName)
throws IOException
IOException
protected void runTest()
throws Throwable
runTest in class junit.framework.TestCaseThrowable
protected static junit.framework.Test prepareSuite(Class irClass,
String isPropertiesName)
irClass - descendant classisPropertiesName - name of the descendants-specific properties file
|
org.netbeans.modules.jellytools.platform/3 3.13 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||