Java Doc for AbstractSemanticRecorderFixture.java in  » Testing » abbot-1.0.1 » abbot » editor » recorder » 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 » Testing » abbot 1.0.1 » abbot.editor.recorder 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


abbot.editor.recorder.AbstractRecorderFixture
   abbot.editor.recorder.AbstractSemanticRecorderFixture

All known Subclasses:   abbot.editor.recorder.JInternalFrameRecorderTest,  abbot.editor.recorder.CaptureDragDropTest,  abbot.editor.recorder.DialogRecorderTest,  abbot.editor.recorder.WindowRecorderTest,  abbot.editor.recorder.JTableRecorderTest,  abbot.editor.recorder.FileDialogRecorderTest,  abbot.editor.recorder.ChoiceRecorderTest,  abbot.editor.recorder.ComponentRecorderTest,  abbot.editor.recorder.JTextComponentRecorderTest,  abbot.editor.recorder.JTreeRecorderTest,  abbot.editor.recorder.FrameRecorderTest,  abbot.editor.recorder.JTabbedPaneRecorderTest,  abbot.editor.recorder.JComponentRecorderTest,  abbot.editor.recorder.JListRecorderTest,  abbot.editor.recorder.JComboBoxRecorderTest,
AbstractSemanticRecorderFixture
abstract public class AbstractSemanticRecorderFixture extends AbstractRecorderFixture (Code)
All SemanticRecorder tests should derive from this class. Provides a framework similar to EventRecorder which creates appropriate semantic recorders based on incoming events.

Will continue recording past the first semantic recorder used, preserving the first one until an invocation of assert[No]Step, which resets the preserved recorder, replacing it with the current one when appropriate. This allows a more or less continuous stream of actions alternating with assert[No]Step calls.

NOTE: it would probably be simpler to not do this and require explicit startRecording steps, although there is some benefit to checking recorders back to back (it more closely simulates the EventRecorder behavior).




Constructor Summary
public  AbstractSemanticRecorderFixture()
    
public  AbstractSemanticRecorderFixture(String name)
     Create a new test case with the given name.

Method Summary
protected  voidassertNoStep()
    
protected  voidassertNoTrailingEvents()
     Verify that no unconsumed events were seen since the last recorded step.
protected  voidassertStep(String pattern)
     Make sure the step created matches the given pattern.
public  voidassertStep(String pattern, Step step)
    
protected  voidassertStep(String pattern, boolean mustBeFinished)
     Make sure the recorder created step matches the given pattern, optionally requiring the recorder to have detected the end of the semantic event.
protected synchronized  voidclear()
     Clear the current state of all steps and active recorder.
abstract protected  SemanticRecordercreateSemanticRecorder(Resolver r)
     Each Recorder subclass test should implement this method to return the SemanticRecorder to be tested.
protected  voidfixtureSetUp()
    
protected  voidfixtureTearDown()
    
protected synchronized  RecordergetRecorder()
     Provide a recorder which acts sort of like EventRecorder, but will always pass events on to the same SemanticRecorder obtained with createRecorder, rather than dynamically determining which recorder to create.
protected synchronized  StepgetStep()
    
protected synchronized  booleanhasRecorder()
    
protected synchronized  voidrecordEvent(AWTEvent event)
    
protected  voidstartRecording()
    
protected  voidstartRecording(boolean waitForIdle)
    


Constructor Detail
AbstractSemanticRecorderFixture
public AbstractSemanticRecorderFixture()(Code)



AbstractSemanticRecorderFixture
public AbstractSemanticRecorderFixture(String name)(Code)
Create a new test case with the given name.




Method Detail
assertNoStep
protected void assertNoStep()(Code)



assertNoTrailingEvents
protected void assertNoTrailingEvents()(Code)
Verify that no unconsumed events were seen since the last recorded step.



assertStep
protected void assertStep(String pattern)(Code)
Make sure the step created matches the given pattern. The recorder may not nececessarily have detected the end of the pattern.



assertStep
public void assertStep(String pattern, Step step)(Code)



assertStep
protected void assertStep(String pattern, boolean mustBeFinished)(Code)
Make sure the recorder created step matches the given pattern, optionally requiring the recorder to have detected the end of the semantic event.



clear
protected synchronized void clear()(Code)
Clear the current state of all steps and active recorder.



createSemanticRecorder
abstract protected SemanticRecorder createSemanticRecorder(Resolver r)(Code)
Each Recorder subclass test should implement this method to return the SemanticRecorder to be tested.



fixtureSetUp
protected void fixtureSetUp() throws Throwable(Code)



fixtureTearDown
protected void fixtureTearDown() throws Throwable(Code)



getRecorder
protected synchronized Recorder getRecorder()(Code)
Provide a recorder which acts sort of like EventRecorder, but will always pass events on to the same SemanticRecorder obtained with createRecorder, rather than dynamically determining which recorder to create.



getStep
protected synchronized Step getStep()(Code)



hasRecorder
protected synchronized boolean hasRecorder()(Code)



recordEvent
protected synchronized void recordEvent(AWTEvent event)(Code)



startRecording
protected void startRecording()(Code)



startRecording
protected void startRecording(boolean waitForIdle)(Code)



Methods inherited from abbot.editor.recorder.AbstractRecorderFixture
protected void addPopup(Component c, PopupMenu popup)(Code)(Java Doc)
protected void addPopup(Component c, JPopupMenu popup)(Code)(Java Doc)
public void assertStep(String pattern, Step step)(Code)(Java Doc)
public synchronized void assertStep(String pattern, Step step, String events)(Code)(Java Doc)
public void assertStepCount(int count, Sequence seq)(Code)(Java Doc)
protected String bugInfo(String msg)(Code)(Java Doc)
protected void clear()(Code)(Java Doc)
protected synchronized void clearEvents()(Code)(Java Doc)
protected void fixtureTearDown() throws Throwable(Code)(Java Doc)
abstract protected Recorder getRecorder()(Code)(Java Doc)
protected void insertEvent(AWTEvent e)(Code)(Java Doc)
protected synchronized String listEvents()(Code)(Java Doc)
public void runBare() throws Throwable(Code)(Java Doc)
protected void startRecording()(Code)(Java Doc)
protected void stopRecording()(Code)(Java Doc)
public String toString(Sequence seq)(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.