Java Doc for LoaderPoolTest.java in  » IDE-Netbeans » openide » DataLoaderTests » LoaderPoolTest » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » openide » DataLoaderTests.LoaderPoolTest 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.netbeans.junit.NbTestCase
   DataLoaderTests.LoaderPoolTest.LoaderPoolTest

LoaderPoolTest
public class LoaderPoolTest extends NbTestCase implements DataLoader.RecognizedFiles(Code)

Inner Class :class ChL implements ChangeListener

Field Summary
 DataLoaderPoolDLP
    
final public  StringFAILED
    
 LoaderPoolNodeLPN
    
final public  StringPASSED
    
final public  booleanPRINT_EXCEPTIONS
    
 RepositoryRep
    
 LoaderPoolTest.ChLchangel
    
 Enumerationen
    
 DataLoaderjavadl
    
static  LocalFileSystemlfs
    
 intnoOfChanges
    
 booleansuccessful
    
 DataLoadertextdl
    
public static  Stringwork
    

Constructor Summary
public  LoaderPoolTest(java.lang.String testName)
    

Method Summary
 voidaddDataLoader(String module)
    
public  voidclean()
    
 voidcompareTest()
    
 voidcreateDataObject(String fileName, DataLoader dl)
    
 voiddummyWait(int millis)
    
 voideatMemory(int amount)
     Will consume specified amount of memory.
 booleanexistDataObject(String fileName)
    
 voidexploreDataLoaderPool()
    
public  DataLoadergetDataLoader(String DLDisplayNameSubstr)
    
public  StringgetWorkDirPath()
    
public static  voidmain(String args)
    
public  voidmarkRecognized(FileObject fo)
    
 voidnotCreateDataObject(String file, DataLoader dl)
     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).
 booleannotRecognizedAs(String file, String loaderName)
    
 voidprepare()
    
 voidprintException(Exception e)
    
 voidprintExtensions(UniFileLoader ufl)
    
 booleanrecognizedAs(String fileName, String loaderDisplayName)
    
 booleanrefPrintExtensions(DataLoader dl)
    
 voidremoveDataLoader(DataLoader dl)
    
 voidsweepMemory()
     Tries to invoke garbage collection.
public  voidwriteLog(String text)
    
public  voidwriteRef(String text)
    
public  voidwriteRef(String text, String inf)
    

Field Detail
DLP
DataLoaderPool DLP(Code)



FAILED
final public String FAILED(Code)



LPN
LoaderPoolNode LPN(Code)



PASSED
final public String PASSED(Code)



PRINT_EXCEPTIONS
final public boolean PRINT_EXCEPTIONS(Code)



Rep
Repository Rep(Code)



changel
LoaderPoolTest.ChL changel(Code)



en
Enumeration en(Code)



javadl
DataLoader javadl(Code)



lfs
static LocalFileSystem lfs(Code)



noOfChanges
int noOfChanges(Code)



successful
boolean successful(Code)



textdl
DataLoader textdl(Code)



work
public static String work(Code)




Constructor Detail
LoaderPoolTest
public LoaderPoolTest(java.lang.String testName)(Code)
Creates new LoaderPoolTest




Method Detail
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



markRecognized
public void markRecognized(FileObject fo)(Code)



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)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.