| org.netbeans.junit.NbTestCase DataLoaderTests.LoaderPoolTest.LoaderPoolTest
PRINT_EXCEPTIONS | final public boolean PRINT_EXCEPTIONS(Code) | | |
noOfChanges | int noOfChanges(Code) | | |
successful | boolean successful(Code) | | |
addDataLoader | void addDataLoader(String module)(Code) | | Adds DataLoader(s) to DataLoaderPool
Parameters: module - name of the module containing loder(s) (name of the jar without extension) |
clean | public void clean()(Code) | | Performs clean up
|
compareTest | void compareTest()(Code) | | Two ways should return the same
|
createDataObject | void createDataObject(String fileName, DataLoader dl) throws Exception(Code) | | Parameters: file - is path to the file in the repository Parameters: dl - is DataLoader |
dummyWait | void dummyWait(int millis)(Code) | | Performs waiting of current thread for time in millis
Parameters: millist - integer number - time in millis to wait |
eatMemory | void eatMemory(int amount)(Code) | | Will consume specified amount of memory.
Method: create String[amount]
Parameters: amount - dimension of String array |
existDataObject | boolean existDataObject(String fileName) throws Exception(Code) | | Tests if for specified file exists DataObject
Parameters: file - path to the file in the repository true if exists |
exploreDataLoaderPool | void exploreDataLoaderPool() throws Exception(Code) | | Goes through all registered DataLoaders, firstProducerOf, ProducerOf,
gets and sets PrefferedLoader for java source file
|
getDataLoader | public DataLoader getDataLoader(String DLDisplayNameSubstr)(Code) | | Gets the specified DataLoader
Parameters: DLDisplayNameSubstr - substring of the DataLoader's DisplayName |
getWorkDirPath | public String getWorkDirPath()(Code) | | overrides parent definition of this methot,
so this new works in this way - returns work filed
that should have been set by user of this utility class
|
main | public static void main(String args)(Code) | | ONLY FOR TESTING PURPOSES
REAL TESTS ARE IN SEPARATED CLASSES
|
notCreateDataObject | void notCreateDataObject(String file, DataLoader dl) throws Exception(Code) | | For specified file tests if there is an exception thrown when creating
DataObject using passed DataLoader (assuming that the DataObject exists
the exception will be DataObjectExistsException).
Parameters: file - is path to the file in the repository Parameters: dl - is DataLoader |
notRecognizedAs | boolean notRecognizedAs(String file, String loaderName)(Code) | | For passed file finds DataObject and verify if it was not created with the desired DataLoader
Parameters: file - path to the file in the repository Parameters: loaderDisplayName - DisplayName of desired loader true if the two DisplayNames differ |
prepare | void prepare()(Code) | | Performs initializing before own tests starts
|
printException | void printException(Exception e)(Code) | | If enabled, prints exception to the output and to the ref stream
|
printExtensions | void printExtensions(UniFileLoader ufl)(Code) | | Prints extensions that specified loader will recognize
Parameters: ufl - UniFileLoader |
recognizedAs | boolean recognizedAs(String fileName, String loaderDisplayName) throws IOException(Code) | | For passed file finds DataObject and verify if it was created with the desired DataLoader
Parameters: file - path to the file in the repository Parameters: loaderDisplayName - DisplayName of desired loader true if the two DisplayNames are identical |
refPrintExtensions | boolean refPrintExtensions(DataLoader dl)(Code) | | Prints extensions that specified loader will recognize
Parameters: ufl - UniFileLoader |
removeDataLoader | void removeDataLoader(DataLoader dl)(Code) | | Removes DataLoader from DataLoaderPool
Parameters: dl - DataLoader |
sweepMemory | void sweepMemory()(Code) | | Tries to invoke garbage collection.
Method: 3xgc, sleep 5s, 1xgc, sleep 5s
|
writeLog | public void writeLog(String text)(Code) | | This methods write an output to log stream
|
writeRef | public void writeRef(String text)(Code) | | This methods write an output to reference stream
|
writeRef | public void writeRef(String text, String inf)(Code) | | This methods write an output to reference stream and asserts success of the test fragment
|
Methods inherited from org.netbeans.junit.NbTestCase | public static void assertFile(String message, String test, String pass, String diff, Diff externalDiff)(Code)(Java Doc) public static void assertFile(String test, String pass, String diff, Diff externalDiff)(Code)(Java Doc) public static void assertFile(String message, String test, String pass, String diff)(Code)(Java Doc) public static void assertFile(String test, String pass, String diff)(Code)(Java Doc) public static void assertFile(String test, String pass)(Code)(Java Doc) public static void assertFile(String message, File test, File pass, File diff, Diff externalDiff)(Code)(Java Doc) public static void assertFile(File test, File pass, File diff, Diff externalDiff)(Code)(Java Doc) public static void assertFile(String message, File test, File pass, File diff)(Code)(Java Doc) public static void assertFile(File test, File pass, File diff)(Code)(Java Doc) public static void assertFile(File test, File pass)(Code)(Java Doc) public static void assertGC(String text, Reference> ref)(Code)(Java Doc) public static void assertGC(String text, Reference> ref, Set> rootsHint)(Code)(Java Doc) public static void assertSize(String message, int limit, Object root)(Code)(Java Doc) public static void assertSize(String message, Collection> roots, int limit)(Code)(Java Doc) public static void assertSize(String message, Collection> roots, int limit, Object[] skip)(Code)(Java Doc) public static int assertSize(String message, Collection> roots, int limit, MemoryFilter skip)(Code)(Java Doc) public boolean canRun()(Code)(Java Doc) public void clearWorkDir() throws IOException(Code)(Java Doc) public void compareReferenceFiles(String testFilename, String goldenFilename, String diffFilename)(Code)(Java Doc) public void compareReferenceFiles()(Code)(Java Doc) public static String convertNBFSURL(URL url)(Code)(Java Doc) public static void failByBug(int bugID)(Code)(Java Doc) public static void failByBug(int bugID, String message)(Code)(Java Doc) public File getDataDir()(Code)(Java Doc) public String getExpectedFail()(Code)(Java Doc) public File getGoldenFile(String filename)(Code)(Java Doc) public File getGoldenFile()(Code)(Java Doc) public PrintStream getLog(String logName)(Code)(Java Doc) public PrintStream getLog()(Code)(Java Doc) public PrintStream getRef()(Code)(Java Doc) final protected int getTestNumber()(Code)(Java Doc) public File getWorkDir() throws IOException(Code)(Java Doc) public String getWorkDirPath()(Code)(Java Doc) public void log(String message)(Code)(Java Doc) public void log(String log, String message)(Code)(Java Doc) protected Level logLevel()(Code)(Java Doc) public void ref(String message)(Code)(Java Doc) public void run(TestResult result)(Code)(Java Doc) public void runBare() throws Throwable(Code)(Java Doc) protected boolean runInEQ()(Code)(Java Doc) public void setFilter(Filter filter)(Code)(Java Doc) protected int timeOut()(Code)(Java Doc)
|
|
|