Java Doc for MainFrameTest.java in  » IDE » DrJava » edu » rice » cs » drjava » ui » 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 » DrJava » edu.rice.cs.drjava.ui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


edu.rice.cs.drjava.model.MultiThreadedTestCase
   edu.rice.cs.drjava.ui.MainFrameTest

MainFrameTest
final public class MainFrameTest extends MultiThreadedTestCase (Code)
Test functions of MainFrame.
version:
   $Id: MainFrameTest.java 4255 2007-08-28 19:17:37Z mgricken $

Inner Class :class SingleDisplayModelCompileListener extends GlobalModelTestCase.TestListener implements GlobalModelListener
Inner Class :class SingleDisplayModelFileOpenedListener extends GlobalModelTestCase.TestListener implements GlobalModelListener
Inner Class :class SingleDisplayModelFileClosedListener extends GlobalModelTestCase.TestListener implements GlobalModelListener

Field Summary
 JButton_but
    
protected volatile  boolean_closeDone
    
final protected  Object_closeLock
    
protected volatile  boolean_compileDone
    
final protected  Object_compileLock
    
 DefinitionsPane_defPane1_defPane2
    
protected volatile  boolean_openDone
    
final protected  Object_openLock
    
 JScrollPane_pane1_pane2
    


Method Summary
public  voidsetUp()
     Setup method for each JUnit test case.
public  voidtearDown()
    
protected  FiletempFile(String fileName)
     Create a new temporary file in _tempDir.
public  voidtestClearLine()
     Tests that the clipboard is unmodified after a "clear line" action.
public  voidtestCorrectInteractionsDocument()
     Make sure that the InteractionsPane is displaying the correct InteractionsDocument.
public  voidtestCreateManualToolbarButton()
     Tests that the returned JButton of createManualToolbarButton: 1.
public  voidtestCutLine()
     Tests that the clipboard is modified after a "cut line" action.
public  voidtestDancingUIFileClosed()
     A Test to guarantee that the Dancing UI bug will not rear its ugly head again.
public  voidtestDancingUIFileOpened()
     A Test to guarantee that the Dancing UI bug will not rear its ugly head again.
public  voidtestDocLocationAfterSwitch()
     Tests that the current location of a document is equal to the caret location after documents are switched.
public  voidtestGlassPaneEditableState()
     Ensure that a document's editable status is set appropriately throughout the compile process.
public  voidtestGlassPaneHidesKeyEvents()
     Ensure that all key events are disabled when the glass pane is up.
public  voidtestGotoFileUnderCursor()
     Tests that "go to file under cursor" works if unique.
public  voidtestGotoFileUnderCursorAppendJava()
    
public  voidtestGotoFileUnderCursorShowDialog()
    
public  voidtestMultilineIndentAfterScroll()
     Tests that undoing/redoing a multi-line indent will restore the caret position.
public  voidtestSaveButtonEnabled()
     Tests that the save button does not set itself as enabled immediately after opening a file.

Field Detail
_but
JButton _but(Code)



_closeDone
protected volatile boolean _closeDone(Code)



_closeLock
final protected Object _closeLock(Code)



_compileDone
protected volatile boolean _compileDone(Code)



_compileLock
final protected Object _compileLock(Code)



_defPane1_defPane2
DefinitionsPane _defPane1_defPane2(Code)



_openDone
protected volatile boolean _openDone(Code)



_openLock
final protected Object _openLock(Code)



_pane1_pane2
JScrollPane _pane1_pane2(Code)





Method Detail
setUp
public void setUp() throws Exception(Code)
Setup method for each JUnit test case.



tearDown
public void tearDown() throws Exception(Code)



tempFile
protected File tempFile(String fileName) throws IOException(Code)
Create a new temporary file in _tempDir.



testClearLine
public void testClearLine() throws BadLocationException, UnsupportedFlavorException, IOException(Code)
Tests that the clipboard is unmodified after a "clear line" action.



testCorrectInteractionsDocument
public void testCorrectInteractionsDocument() throws EditDocumentException(Code)
Make sure that the InteractionsPane is displaying the correct InteractionsDocument. (SourceForge bug #681547) Also make sure this document cannot be edited before the prompt.



testCreateManualToolbarButton
public void testCreateManualToolbarButton()(Code)
Tests that the returned JButton of createManualToolbarButton: 1. Is disabled upon return. 2. Inherits the tooltip of the Action parameter a.



testCutLine
public void testCutLine() throws BadLocationException(Code)
Tests that the clipboard is modified after a "cut line" action. NOTE: Commented out for commit because of failures, despite proper behavior in GUI. This may not work unless ActionEvents are dropped in the event queue



testDancingUIFileClosed
public void testDancingUIFileClosed() throws IOException(Code)
A Test to guarantee that the Dancing UI bug will not rear its ugly head again. Basically, add a component listener to the leftComponent of _docSplitPane and make certain its size does not change while closing an OpenDefinitionsDocument outside the event thread.



testDancingUIFileOpened
public void testDancingUIFileOpened() throws IOException(Code)
A Test to guarantee that the Dancing UI bug will not rear its ugly head again. Basically, add a component listener to the leftComponent of _docSplitPane and make certain its size does not change while compiling a class which depends on another class.



testDocLocationAfterSwitch
public void testDocLocationAfterSwitch() throws BadLocationException(Code)
Tests that the current location of a document is equal to the caret location after documents are switched.



testGlassPaneEditableState
public void testGlassPaneEditableState()(Code)
Ensure that a document's editable status is set appropriately throughout the compile process. Since the behavior is interesting only when the model changes its active document, that's what this test looks most like.



testGlassPaneHidesKeyEvents
public void testGlassPaneHidesKeyEvents()(Code)
Ensure that all key events are disabled when the glass pane is up.



testGotoFileUnderCursor
public void testGotoFileUnderCursor() throws IOException(Code)
Tests that "go to file under cursor" works if unique.



testGotoFileUnderCursorAppendJava
public void testGotoFileUnderCursorAppendJava() throws IOException(Code)
Tests that "go to file under cursor" works if unique after appending ".java"



testGotoFileUnderCursorShowDialog
public void testGotoFileUnderCursorShowDialog() throws IOException(Code)
Tests that "go to file under cursor" displays the dialog if choice is not unique



testMultilineIndentAfterScroll
public void testMultilineIndentAfterScroll() throws BadLocationException, InterruptedException(Code)
Tests that undoing/redoing a multi-line indent will restore the caret position.



testSaveButtonEnabled
public void testSaveButtonEnabled() throws IOException(Code)
Tests that the save button does not set itself as enabled immediately after opening a file.



Fields inherited from edu.rice.cs.drjava.model.MultiThreadedTestCase
protected static volatile boolean _testFailed(Code)(Java Doc)

Methods inherited from edu.rice.cs.drjava.model.MultiThreadedTestCase
public static void join(Thread t)(Code)(Java Doc)
protected static void listenerFail(String s)(Code)(Java Doc)
public void setUp() throws Exception(Code)(Java Doc)
public void tearDown() throws Exception(Code)(Java Doc)
public static void wait(Object o)(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.