Java Doc for JavaCVSValidationTest.java in  » IDE-Netbeans » cvsclient » validation » 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 » cvsclient » validation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


validation.JavaCVSValidationTest

JavaCVSValidationTest
public class JavaCVSValidationTest extends JellyTestCase (Code)
XTest / JUnit test class performing validation of JavaCVS module
author:
   Adam Sotona
See Also:   JavaCVSValidationTest.suite
See Also:    JavaCVS validation testsuite definition
version:
   1.0


Field Summary
static  StringCVS
    
static  StringCVSlbl
    
final  StringMODULE
    
final static  StringMOUNTVCS
    
final  StringPASSWORD
    
final  StringPORT
    
final  StringREPOSITORY
    
final  StringSERVER
    
final  StringSERVERTYPE
    
final static  StringTESTDIR
    
final static  StringTESTFILE
    
final static  StringTESTFILEPROPERTY
    
final  StringUSER
    
final static  StringVERSIONINGMENU
    
final static  StringWORKDIR
    
final protected static  ColorannoBlue
    
final protected static  ColorannoGreen
    
final protected static  ColorannoRed
    
final protected static  ColorannoWhite
    
 APIControllerapi
    
final static  booleancapture
    
static  Stringfilesystem
    
static  util.Historyhis
    
 Operator.StringComparatoroldComparator
    
static  Stringpath
    
 PrintStreamps
    
 PrintStreampsRef
    
static  Stringrepositoryprefix
    
static  MainWindowOperator.StatusTextTracersbt
    
static  StringstrCmdAction
    
static  FiletestFile
    
static  FileSystemtestedJavaCVSFS
    

Constructor Summary
public  JavaCVSValidationTest(String testName)
    

Method Summary
protected  voiddumpColors(StyledDocument sd)
    
protected  voiddumpDiffGraphical(TopComponentOperator tco)
    
 voidfail(Exception e)
    
protected  voidfailNotify(Throwable reason)
     Method called in case of fail or error just after screen shot and XML dumps.
 FilegetJavaCVSWork()
    
 StringgetTestDirNodePath()
    
 StringgetTestDirObjectName()
    
 FilegetTestFile()
    
 StringgetTestFileObjectName()
    
 FileSystemgetTestedJavaCVSFS(String filesystem)
    
 voidinitHistory(FileSystem testedJavaCVSFS)
    
public static  voidmain(java.lang.String[] args)
    
 voidsetClassVariable()
    
 voidsetTestFile(File f)
    
protected  voidsetUp()
    
public static  junit.framework.Testsuite()
     method used for explicit testsuite definition
JavaCVS validation suite is order-sensitive
Contains also commented TRY-CATCH BLOCK with set longer timeouts.
 voidswitchToTab(ExplorerOperator expO, String tab)
    
protected  voidtearDown()
    
public  voidtestAdd()
    
public  voidtestAnnotate()
    
public  voidtestBranch()
    
public  voidtestCommit()
    
public  voidtestCommitToBranch()
    
public  voidtestConnectionManager()
    
public  voidtestCreateFile()
    
public  voidtestDiff()
    
public  voidtestHistory()
    
public  voidtestLog()
    
public  voidtestMerge()
    
public  voidtestMount()
    
public  voidtestStatus()
    
public  voidtestUndock()
    
public  voidtestUnmount()
    
public  voidtestUpdateBranch()
    
public  voidtestVCSGroups()
    
public  voidtestVersioningExplorer()
    

Field Detail
CVS
static String CVS(Code)



CVSlbl
static String CVSlbl(Code)



MODULE
final String MODULE(Code)



MOUNTVCS
final static String MOUNTVCS(Code)



PASSWORD
final String PASSWORD(Code)



PORT
final String PORT(Code)



REPOSITORY
final String REPOSITORY(Code)



SERVER
final String SERVER(Code)



SERVERTYPE
final String SERVERTYPE(Code)



TESTDIR
final static String TESTDIR(Code)



TESTFILE
final static String TESTFILE(Code)



TESTFILEPROPERTY
final static String TESTFILEPROPERTY(Code)



USER
final String USER(Code)



VERSIONINGMENU
final static String VERSIONINGMENU(Code)



WORKDIR
final static String WORKDIR(Code)



annoBlue
final protected static Color annoBlue(Code)



annoGreen
final protected static Color annoGreen(Code)



annoRed
final protected static Color annoRed(Code)



annoWhite
final protected static Color annoWhite(Code)



api
APIController api(Code)



capture
final static boolean capture(Code)



filesystem
static String filesystem(Code)



his
static util.History his(Code)



oldComparator
Operator.StringComparator oldComparator(Code)
store previously used comparator



path
static String path(Code)



ps
PrintStream ps(Code)



psRef
PrintStream psRef(Code)



repositoryprefix
static String repositoryprefix(Code)



sbt
static MainWindowOperator.StatusTextTracer sbt(Code)



strCmdAction
static String strCmdAction(Code)



testFile
static File testFile(Code)



testedJavaCVSFS
static FileSystem testedJavaCVSFS(Code)




Constructor Detail
JavaCVSValidationTest
public JavaCVSValidationTest(String testName)(Code)
constructor required by JUnit
Parameters:
  testName - method name to be used as testcase




Method Detail
dumpColors
protected void dumpColors(StyledDocument sd)(Code)



dumpDiffGraphical
protected void dumpDiffGraphical(TopComponentOperator tco)(Code)



fail
void fail(Exception e)(Code)



failNotify
protected void failNotify(Throwable reason)(Code)
Method called in case of fail or error just after screen shot and XML dumps.
Override this method when you need to be notified about test failures or errors but avoid any exception to be throwed from this method.
super.failNotify() does not need to be called because it is empty.
Parameters:
  reason - Throwable reason of current fail



getJavaCVSWork
File getJavaCVSWork() throws IOException(Code)



getTestDirNodePath
String getTestDirNodePath() throws IOException(Code)



getTestDirObjectName
String getTestDirObjectName() throws IOException(Code)



getTestFile
File getTestFile() throws IOException(Code)



getTestFileObjectName
String getTestFileObjectName() throws IOException(Code)



getTestedJavaCVSFS
FileSystem getTestedJavaCVSFS(String filesystem)(Code)



initHistory
void initHistory(FileSystem testedJavaCVSFS)(Code)
Inicializing of History object



main
public static void main(java.lang.String[] args) throws IOException(Code)
Use for internal test execution inside IDE
Parameters:
  args - command line arguments



setClassVariable
void setClassVariable()(Code)



setTestFile
void setTestFile(File f)(Code)



setUp
protected void setUp()(Code)
method called before each testcase
sets long Jemmy WaitComponentTimeout and switches JavaCVS UI mode



suite
public static junit.framework.Test suite()(Code)
method used for explicit testsuite definition
JavaCVS validation suite is order-sensitive
Contains also commented TRY-CATCH BLOCK with set longer timeouts. This should be uncommented on slower machines. JavaCVS validation testsuite
See Also:   JavaCVSValidationTest.testConnectionManager
See Also:    1.testConnectionManager
See Also:   JavaCVSValidationTest.testMount
See Also:   
2.testMount
See Also:   JavaCVSValidationTest.testHistory
See Also:   
3.testHistory
See Also:   JavaCVSValidationTest.testCreateFile
See Also:   
4.testCreateFile
See Also:   JavaCVSValidationTest.testAdd
See Also:   
5.testAdd
See Also:   JavaCVSValidationTest.testCommit
See Also:   
6.testCommit
See Also:   JavaCVSValidationTest.testDiff
See Also:   
7.testDiff
See Also:   JavaCVSValidationTest.testVCSGroups
See Also:   
8.testVCSGroups
See Also:   JavaCVSValidationTest.testVersioningExplorer
See Also:   
9.testVersioningExplorer
See Also:   JavaCVSValidationTest.testBranch
See Also:   
10.testBranch
See Also:   JavaCVSValidationTest.testUpdateBranch
See Also:   
11.testUpdateBranch
See Also:   JavaCVSValidationTest.testCommitToBranch
See Also:   
12.testCommitToBranch
See Also:   JavaCVSValidationTest.testMerge
See Also:   
13.testMerge
See Also:   JavaCVSValidationTest.testStatus
See Also:   
14.testStatus
See Also:   JavaCVSValidationTest.testLog
See Also:   
15.testLog
See Also:   JavaCVSValidationTest.testAnnotate
See Also:   
16.testAnnotate
See Also:   JavaCVSValidationTest.testUnmount
See Also:   
17.testUnmount
See Also:   JavaCVSValidationTest.testUndock
See Also:   
18.testUndock



switchToTab
void switchToTab(ExplorerOperator expO, String tab) throws Exception(Code)



tearDown
protected void tearDown()(Code)
method called after each testcase
resets Jemmy WaitComponentTimeout



testAdd
public void testAdd()(Code)
invokes Add dialog from testdir's popup menu, runs add command recursively and verifies that testfile has now attributes [LAdded; New] under Explorer
throws:
  Exception - any unexpected exception thrown during test
See Also:   JavaCVSValidationTest.testCreateFile
See Also:    depends on: testCreateFile
See Also:   JavaCVSValidationTest.testCommit
See Also:   
next: testCommit



testAnnotate
public void testAnnotate()(Code)
performs Annotate command on testfile and looks for output
throws:
  Exception - any unexpected exception thrown during test
See Also:   JavaCVSValidationTest.testLog
See Also:    depends on: testLog
See Also:   JavaCVSValidationTest.testUnmount
See Also:   
next: testUnmount



testBranch
public void testBranch()(Code)
invokes Tag dialog from testfile's popup menu, creates new branch "vetev2", invokes Refresh Revisions command under Versioning Explorer and looks for "1.2.2 (vetev2)" node inside Versioning Explorer
throws:
  Exception - any unexpected exception thrown during test
See Also:   JavaCVSValidationTest.testVersioningExplorer
See Also:    depends on: testVersioningExplorer
See Also:   JavaCVSValidationTest.testUpdateBranch
See Also:   
next: testUpdateBranch



testCommit
public void testCommit()(Code)
invokes Commit dialog from testfile's popup menu, runs commit command and verifies that testfile has now attributes [Up-to-date; 1.1] under Explorer
throws:
  Exception - any unexpected exception thrown during test
See Also:   JavaCVSValidationTest.testAdd
See Also:    depends on: testAdd
See Also:   JavaCVSValidationTest.testDiff
See Also:   
next: testDiff



testCommitToBranch
public void testCommitToBranch()(Code)
changes testfile contents again, invokes Refresh command, verifies that testfile has now attributes [LMod; 1.2] (vetev2), invokes Commit command from testfile's popup menu, verifies that testfile has now attributes [Up-to-date; 1.2.2.1] (vetev2), performs Refresh Revissions command under Revision Expplorer and looks for "1.2.2.1 no message" node inside
throws:
  Exception - any unexpected exception thrown during test
See Also:   JavaCVSValidationTest.testUpdateBranch
See Also:    depends on: testUpdateBranch
See Also:   JavaCVSValidationTest.testMerge
See Also:   
next: testMerge



testConnectionManager
public void testConnectionManager()(Code)
invokes Connection Manager window from Versioning menu, adds new record and performs login
throws:
  Exception - any unexpected exception thrown during test
See Also:   JavaCVSValidationTest.testMount
See Also:    next: testMount



testCreateFile
public void testCreateFile()(Code)
creates new unique testdirectory under workdir, creates new testfile indside and verifies that both are present under Explorer's Filesystems tab with attribute [Local]
throws:
  Exception - any unexpected exception thrown during test
See Also:   JavaCVSValidationTest.testHistory
See Also:    depends on: testHistory
See Also:   JavaCVSValidationTest.testAdd
See Also:   
next: testAdd



testDiff
public void testDiff()(Code)
changes testfile contents, invokes Refresh command, verifies that testfile has now attributes [LMod; 1.1] under Explorer, invokes diff command from testfile's popup menu and waits for Diff Output frame
throws:
  Exception - any unexpected exception thrown during test
See Also:   JavaCVSValidationTest.testCommit
See Also:    depends on: testCommit
See Also:   JavaCVSValidationTest.testVCSGroups
See Also:   
next: testVCSGroups



testHistory
public void testHistory()(Code)
looks for CVS command checkout history record under Explorer's Runtime tab, opens record and tests if "Finished" info is present
throws:
  Exception - any unexpected exception thrown during test
See Also:   JavaCVSValidationTest.testMount
See Also:    depends on: testMount
See Also:   JavaCVSValidationTest.testCreateFile
See Also:   
next: testCreateFile



testLog
public void testLog()(Code)
performs Log command on testfile and looks for "1.3" label inside output frame
throws:
  Exception - any unexpected exception thrown during test
See Also:   JavaCVSValidationTest.testStatus
See Also:    depends on: testStatus
See Also:   JavaCVSValidationTest.testAnnotate
See Also:   
next: testAnnotate



testMerge
public void testMerge()(Code)
performs update of testfile with Reset Sticky option, verifies that testfile has now [Up-to-date; 1.2] attributes, swithes to Revision Explorer, performs Merge With Revision command on "1.2.2 (vetev2)" node, verifies that testfile has now [LMod; 1.2] attributes, performs Commit command on testfile's node and verifies that testfile has now [Up-to-date; 1.3] attributes
throws:
  Exception - any unexpected exception thrown during test
See Also:   JavaCVSValidationTest.testCommitToBranch
See Also:    depends on: testCommitToBranch
See Also:   JavaCVSValidationTest.testStatus
See Also:   
next: testStatus



testMount
public void testMount()(Code)
invokes CVS Wizard from Versioning menu, sets workdir, connection settings and performs initial checkout of module
throws:
  Exception - any unexpected exception thrown during test
See Also:   JavaCVSValidationTest.testConnectionManager
See Also:    depends on: testConnectionManager
See Also:   JavaCVSValidationTest.testHistory
See Also:   
next: testHistory



testStatus
public void testStatus()(Code)
performs Status command on testfile and looks for "Up-to-date" and "1.3" labels inside output frame
throws:
  Exception - any unexpected exception thrown during test
See Also:   JavaCVSValidationTest.testMerge
See Also:    depends on: testMerge
See Also:   JavaCVSValidationTest.testLog
See Also:   
next: testLog



testUndock
public void testUndock()(Code)
undocks VCS Groups and Versioning frames from Explorer and closes them
throws:
  Exception - any unexpected exception thrown during test
See Also:   JavaCVSValidationTest.testUnmount
See Also:    depends on: testUnmount



testUnmount
public void testUnmount()(Code)
unmounts CVS filesystem using its popup menu
throws:
  Exception - any unexpected exception thrown during test
See Also:   JavaCVSValidationTest.testAnnotate
See Also:    depends on: testAnnotate
See Also:   JavaCVSValidationTest.testUndock
See Also:   
next: testUndock



testUpdateBranch
public void testUpdateBranch()(Code)
invokes Update dialog from testfile's popup menu, performs update using Tag "vetev2" and verifies that testfile has now attributes [Up-to-date; 1.2] (vetev2) under Filesystems tab
throws:
  Exception - any unexpected exception thrown during test
See Also:   JavaCVSValidationTest.testBranch
See Also:    depends on: testBranch
See Also:   JavaCVSValidationTest.testCommitToBranch
See Also:   
next: testCommitToBranch



testVCSGroups
public void testVCSGroups()(Code)
adds testfile to default VCS group using popup menu, invokes VCS Groups frame from Versioning menu, docks it into Explorer, performs Verify, Commit and Delete commands on default group and verifies that testfile has now attributes [Up-to-date; 1.2] under Explorer
throws:
  Exception - any unexpected exception thrown during test
See Also:   JavaCVSValidationTest.testDiff
See Also:    depends on: testDiff
See Also:   JavaCVSValidationTest.testVersioningExplorer
See Also:   
next: testVersioningExplorer



testVersioningExplorer
public void testVersioningExplorer()(Code)
invokes Versioning Explorer from testdir's popup menu, docks it into Explorer and looks for "1.1 no message" and "1.2 " nodes under testfile node inside Versioning Explorer
throws:
  Exception - any unexpected exception thrown during test
See Also:   JavaCVSValidationTest.testVCSGroups
See Also:    depends on: testVCSGroups
See Also:   JavaCVSValidationTest.testBranch
See Also:   
next: testBranch



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