Java Doc for TestBase.java in  » IDE-Netbeans » api » org » netbeans » modules » apisupport » project » 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 » api » org.netbeans.modules.apisupport.project 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.netbeans.modules.apisupport.project.TestBase

All known Subclasses:   org.netbeans.modules.apisupport.project.ui.platform.NbPlatformCustomizerSourcesTest,  org.netbeans.modules.apisupport.project.queries.SourceLevelQueryImplTest,  org.netbeans.modules.apisupport.project.jnlp.GenerateJNLPApplicationTest,  org.netbeans.modules.apisupport.project.queries.SourceForBinaryImplTest,  org.netbeans.modules.apisupport.project.ui.UnitTestLibrariesNodeTest,  org.netbeans.modules.apisupport.project.universe.ModuleListTest,  org.netbeans.modules.apisupport.project.metainf.ServiceNodeHandlerTest,  org.netbeans.modules.apisupport.project.ui.customizer.SingleModulePropertiesTest,  org.netbeans.modules.apisupport.project.ui.LibrariesNodeTest,  org.netbeans.modules.apisupport.project.ui.ModuleActionsTest,  org.netbeans.modules.apisupport.project.AvoidModuleListInProjectConstructorTest,  org.netbeans.modules.apisupport.project.UtilTest,  org.netbeans.modules.apisupport.project.suite.SuiteSubprojectProviderImplTest,  org.netbeans.modules.apisupport.project.TestBuildCleanTest,  org.netbeans.modules.apisupport.project.ui.customizer.SuiteCustomizerModuleListTest,  org.netbeans.modules.apisupport.project.queries.JavadocForBinaryImplTest,  org.netbeans.modules.apisupport.project.BuildPaintapplicationTest,  org.netbeans.modules.apisupport.project.ui.customizer.CustomizerLibrariesTest,  org.netbeans.modules.apisupport.project.ui.SuiteOperationsTest,  org.netbeans.modules.apisupport.project.universe.LocalizedBundleInfoTest,  org.netbeans.modules.apisupport.project.queries.UpdateTrackingFileOwnerQueryTest,  org.netbeans.modules.apisupport.project.suite.BuildZipDistributionTest,  org.netbeans.modules.apisupport.project.universe.TestModuleDependencyTest,  org.netbeans.modules.apisupport.project.BuildFeedreaderTest,  org.netbeans.modules.apisupport.project.suite.BuildNBMSTest,  org.netbeans.modules.apisupport.project.ui.customizer.SuiteUtilsTest,  org.netbeans.modules.apisupport.project.ui.customizer.AddModuleFilterTest,  org.netbeans.modules.apisupport.project.NbModuleProjectGeneratorTest,  org.netbeans.modules.apisupport.project.ProjectXMLManagerTest,  org.netbeans.modules.apisupport.project.ui.customizer.SuitePropertiesTest,  org.netbeans.modules.apisupport.project.queries.ClassPathProviderImplTest,  org.netbeans.modules.apisupport.project.EvaluatorTest,  org.netbeans.modules.apisupport.project.ui.ModuleOperationsTest,  org.netbeans.modules.apisupport.project.ui.customizer.AddModulePanelTest,  org.netbeans.modules.apisupport.project.universe.NbPlatformTest,  org.netbeans.modules.apisupport.project.universe.TestEntryTest,  org.netbeans.modules.apisupport.project.queries.AntArtifactProviderImplTest,  org.netbeans.modules.apisupport.project.CompilationDependencyTest,  org.netbeans.modules.apisupport.project.ui.customizer.ModuleDependencyTest,  org.netbeans.modules.apisupport.project.ManifestManagerTest,  org.netbeans.modules.apisupport.project.NbModuleProjectTest,  org.netbeans.modules.apisupport.project.suite.BrandingSupportTest,  org.netbeans.modules.apisupport.project.queries.GlobalJavadocForBinaryImplTest,  org.netbeans.modules.apisupport.project.ui.SuiteLogicalViewTest,  org.netbeans.modules.apisupport.project.metainf.ServiceTest,  org.netbeans.modules.apisupport.project.queries.UnitTestForSourceQueryImplTest,  org.netbeans.modules.apisupport.project.ui.platform.PlatformComponentFactoryTest,  org.netbeans.modules.apisupport.project.ui.ModuleLogicalViewTest,  org.netbeans.modules.apisupport.project.queries.GlobalSourceForBinaryImplTest,  org.netbeans.modules.apisupport.project.queries.SubprojectProviderImplTest,  org.netbeans.modules.apisupport.project.queries.AccessibilityQueryImplTest,  org.netbeans.modules.apisupport.project.NbModuleProviderTest,  org.netbeans.modules.apisupport.project.suite.SuiteProjectGeneratorTest,
TestBase
abstract public class TestBase extends NbTestCase (Code)
Basic setup for all the tests.
author:
   Jesse Glick, Martin Krauskopf

Inner Class :final public static class TestPCL implements PropertyChangeListener

Field Summary
final public static  StringCLUSTER_APISUPPORT
    
final public static  StringCLUSTER_ENTERPRISE
    
final public static  StringCLUSTER_IDE
    
final public static  StringCLUSTER_JAVA
    
final public static  StringCLUSTER_PLATFORM
    
protected  FileapisZip
    
protected  FiledestDirF
     Represents destination directory with NetBeans (always available).
protected static  booleannoDataDir
    

Constructor Summary
protected  TestBase(String name)
    

Method Summary
public static  voidassertAsynchronouslyUpdatedChildrenNodes(Node node, int n)
     Fails with timeout if children are not updated to the required count.
protected  FilecopyFolder(File d)
     Make a temporary copy of a whole folder into some new dir in the scratch area.
public static  voidcreateJar(File jar, Map contents, Manifest manifest)
     Create a fresh JAR file.
public static  voiddelete(File f)
    
public static  voiddump(FileObject f, String contents)
    
public static  voiddump(File f, String contents)
    
protected static  Filefile(File root, String path)
    
protected  Filefile(String path)
     Calls in turn TestBase.file(File,String) with TestBase.nbrootF as the first parameter.
public  NbModuleProjectgenerateStandaloneModule(String prjDir)
     Calls in turn TestBase.generateStandaloneModule(FileString) with the TestBase.getWorkDir() as a first parameter.
public static  NbModuleProjectgenerateStandaloneModule(File workDir, String prjDir)
     Returns NbModuleProject created in the TestBase.getWorkDir() /prjDir with code name base default to org.example + dotted prjDir which is also used as the default package so the layer and bundle are generated accordingly.
public static  FileObjectgenerateStandaloneModuleDirectory(File workDir, String prjDir)
     The same as TestBase.generateStandaloneModule(File,String) but without opening a generated project.
public  SuiteProjectgenerateSuite(String prjDir)
     Calls in turn TestBase.generateSuite(FileString) with the TestBase.getWorkDir() as a first parameter.
public static  SuiteProjectgenerateSuite(File workDir, String prjDir)
     Generates an empty suite which has the default platform set.
public static  SuiteProjectgenerateSuite(File workDir, String prjDir, String platformID)
     Generates an empty suite.
public static  NbModuleProjectgenerateSuiteComponent(SuiteProject suiteProject, String prjDir)
     Generates a suite component module which becomes a part of the given suiteProject.
public static  NbModuleProjectgenerateSuiteComponent(SuiteProject suiteProject, File parentDir, String prjDir)
     Generates a suite component module which becomes a part of the given suiteProject.
public static  FileinitializeBuildProperties(File workDir, File dataDir)
     Sets up global build.properties for the default platform.
public static  voidmakePlatform(File d)
    
protected  FileObjectnbRoot()
    
protected  FilenbRootFile()
    
protected  FileObjectresolveEEP(String relativePath)
    
protected  FileresolveEEPFile(String relativePath)
    
protected  StringresolveEEPPath(String relativePath)
    
protected  voidsetUp()
    
public static  Stringslurp(FileObject fileObject)
    
public static  Stringslurp(File file)
    
protected  voidtearDown()
    

Field Detail
CLUSTER_APISUPPORT
final public static String CLUSTER_APISUPPORT(Code)



CLUSTER_ENTERPRISE
final public static String CLUSTER_ENTERPRISE(Code)



CLUSTER_IDE
final public static String CLUSTER_IDE(Code)



CLUSTER_JAVA
final public static String CLUSTER_JAVA(Code)



CLUSTER_PLATFORM
final public static String CLUSTER_PLATFORM(Code)



apisZip
protected File apisZip(Code)



destDirF
protected File destDirF(Code)
Represents destination directory with NetBeans (always available).



noDataDir
protected static boolean noDataDir(Code)
sample projects doesn't have datadir




Constructor Detail
TestBase
protected TestBase(String name)(Code)




Method Detail
assertAsynchronouslyUpdatedChildrenNodes
public static void assertAsynchronouslyUpdatedChildrenNodes(Node node, int n) throws InterruptedException(Code)
Fails with timeout if children are not updated to the required count.



copyFolder
protected File copyFolder(File d) throws IOException(Code)
Make a temporary copy of a whole folder into some new dir in the scratch area. Stolen from ant/freeform.



createJar
public static void createJar(File jar, Map contents, Manifest manifest) throws IOException(Code)
Create a fresh JAR file.
Parameters:
  jar - the file to create
Parameters:
  contents - keys are JAR entry paths, values are text contents (will be written in UTF-8)
Parameters:
  manifest - a manifest to store (or null for none)



delete
public static void delete(File f) throws IOException(Code)



dump
public static void dump(FileObject f, String contents) throws IOException(Code)



dump
public static void dump(File f, String contents) throws IOException(Code)



file
protected static File file(File root, String path)(Code)
Just calls File(root, path.replace('/', File.separatorChar));



file
protected File file(String path)(Code)
Calls in turn TestBase.file(File,String) with TestBase.nbrootF as the first parameter. So the returned path will be actually relative to the netbeans.org source tree this test is run in.



generateStandaloneModule
public NbModuleProject generateStandaloneModule(String prjDir) throws IOException(Code)
Calls in turn TestBase.generateStandaloneModule(FileString) with the TestBase.getWorkDir() as a first parameter.



generateStandaloneModule
public static NbModuleProject generateStandaloneModule(File workDir, String prjDir) throws IOException(Code)
Returns NbModuleProject created in the TestBase.getWorkDir() /prjDir with code name base default to org.example + dotted prjDir which is also used as the default package so the layer and bundle are generated accordingly. Default module's display name is set to Testing Module. So final set of generated files for module1 as the parameter may look like:
  • module1/manifest.mf
  • module1/nbproject/platform.properties
  • module1/nbproject/project.xml
  • module1/src/org/example/module1/resources/Bundle.properties
  • module1/src/org/example/module1/resources/layer.xml
Do not forget to first call TestBase.initializeBuildProperties if you are not a TestBase subclass!



generateStandaloneModuleDirectory
public static FileObject generateStandaloneModuleDirectory(File workDir, String prjDir) throws IOException(Code)
The same as TestBase.generateStandaloneModule(File,String) but without opening a generated project.



generateSuite
public SuiteProject generateSuite(String prjDir) throws IOException(Code)
Calls in turn TestBase.generateSuite(FileString) with the TestBase.getWorkDir() as a first parameter.



generateSuite
public static SuiteProject generateSuite(File workDir, String prjDir) throws IOException(Code)
Generates an empty suite which has the default platform set.



generateSuite
public static SuiteProject generateSuite(File workDir, String prjDir, String platformID) throws IOException(Code)
Generates an empty suite.



generateSuiteComponent
public static NbModuleProject generateSuiteComponent(SuiteProject suiteProject, String prjDir) throws Exception(Code)
Generates a suite component module which becomes a part of the given suiteProject. Module will be generated inside of the suite's project directory.

See TestBase.generateStandaloneModule(File,String) for details about what is generated.




generateSuiteComponent
public static NbModuleProject generateSuiteComponent(SuiteProject suiteProject, File parentDir, String prjDir) throws Exception(Code)
Generates a suite component module which becomes a part of the given suiteProject.

See TestBase.generateStandaloneModule(File,String) for details about what is generated.




initializeBuildProperties
public static File initializeBuildProperties(File workDir, File dataDir) throws Exception(Code)
Sets up global build.properties for the default platform. For PropertyUtils.userBuildProperties . Called automatically by TestBase.setUp .
Parameters:
  workDir - use getWorkDir() resulting properties file



makePlatform
public static void makePlatform(File d) throws IOException(Code)



nbRoot
protected FileObject nbRoot()(Code)



nbRootFile
protected File nbRootFile()(Code)



resolveEEP
protected FileObject resolveEEP(String relativePath)(Code)



resolveEEPFile
protected File resolveEEPFile(String relativePath)(Code)



resolveEEPPath
protected String resolveEEPPath(String relativePath)(Code)



setUp
protected void setUp() throws Exception(Code)



slurp
public static String slurp(FileObject fileObject) throws IOException(Code)



slurp
public static String slurp(File file) throws IOException(Code)



tearDown
protected void tearDown() throws Exception(Code)



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