Java Doc for BasicMessageDrivenUnitTest.java in  » EJB-Server-JBoss-4.2.1 » testsuite » org » jboss » test » messagedriven » support » 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 » EJB Server JBoss 4.2.1 » testsuite » org.jboss.test.messagedriven.support 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jboss.test.messagedriven.support.BasicMessageDrivenUnitTest

All known Subclasses:   org.jboss.test.messagedriven.support.SimpleMessageDrivenUnitTest,
BasicMessageDrivenUnitTest
abstract public class BasicMessageDrivenUnitTest extends JBossTestCase implements ExceptionListener(Code)
Basic tests of message driven beans
author:
   Runnable

Field Summary
final protected static  longREPEATED_WAIT
    
final protected static  longWAIT_TIME
    
protected  Connectionconnection
    
protected  StringconnectionFactoryJNDI
    
protected  PropertiesdefaultProps
    
protected  Destinationdestination
    
protected  DestinationdlqDestination
    
protected  ObjectNamedlqJMXDestination
    
protected  ObjectNamejmxDestination
    
protected  Stringmbeansar
    
protected  Stringmdbjar
    
protected  ArrayListmessages
    
protected  HashMapproducers
    
protected  Propertiesprops
    
protected  booleanrunning
    
protected  Sessionsession
    
final protected static  ObjectNametestDurableTopic
    
final protected static  PropertiestestDurableTopicProps
    
final protected static  ObjectNametestQueue
    
final protected static  PropertiestestQueueProps
    
final protected static  ObjectNametestTopic
    
final protected static  PropertiestestTopicProps
    
protected  Threadthread
    

Constructor Summary
public  BasicMessageDrivenUnitTest(String name, ObjectName jmxDestination, Properties defaultProps)
    

Method Summary
protected  voidactivate(ObjectName name)
    
protected  voidclearMessages(ObjectName name)
    
protected  voiddeactivate(ObjectName name)
    
protected  ObjectgetAttribute(ObjectName name, String attribute)
    
public  ConnectiongetConnection()
    
public  ConnectiongetConnection(String user, String password)
    
public  DestinationgetDLQDestination()
    
public  ObjectNamegetDLQJMXDestination()
    
public  DestinationgetDestination()
    
public  ObjectNamegetJMXDestination()
    
public  StringgetMDBDeployment()
    
public  MessageProducergetMessageProducer()
    
public  MessageProducergetMessageProducer(Destination destination)
    
protected  ArrayListgetMessages()
    
public  SessiongetSession()
    
public  MessagegetTestMessage()
    
protected  voidinitProperties(Properties props)
    
protected  Objectlookup(String jndiName, Class clazz)
    
public  voidonException(JMSException e)
    
public  voidrunTest(Operation[] ops, Properties props)
    
protected  voidsetUp()
    
protected  voidstart(ObjectName name)
    
protected  voidstartReceiverThread()
    
protected  voidstartTest(Properties props)
    
protected  voidstop(ObjectName name)
    
protected  voidstopReceiverThread()
    
protected  voidstopTest()
    
protected  voidtearDown()
    
protected  voidtidyup(Properties props)
    
protected  voidwaitMessages(int expected, long wait)
    

Field Detail
REPEATED_WAIT
final protected static long REPEATED_WAIT(Code)



WAIT_TIME
final protected static long WAIT_TIME(Code)



connection
protected Connection connection(Code)



connectionFactoryJNDI
protected String connectionFactoryJNDI(Code)



defaultProps
protected Properties defaultProps(Code)



destination
protected Destination destination(Code)



dlqDestination
protected Destination dlqDestination(Code)



dlqJMXDestination
protected ObjectName dlqJMXDestination(Code)



jmxDestination
protected ObjectName jmxDestination(Code)



mbeansar
protected String mbeansar(Code)



mdbjar
protected String mdbjar(Code)



messages
protected ArrayList messages(Code)



producers
protected HashMap producers(Code)



props
protected Properties props(Code)



running
protected boolean running(Code)



session
protected Session session(Code)



testDurableTopic
final protected static ObjectName testDurableTopic(Code)



testDurableTopicProps
final protected static Properties testDurableTopicProps(Code)



testQueue
final protected static ObjectName testQueue(Code)



testQueueProps
final protected static Properties testQueueProps(Code)



testTopic
final protected static ObjectName testTopic(Code)



testTopicProps
final protected static Properties testTopicProps(Code)



thread
protected Thread thread(Code)




Constructor Detail
BasicMessageDrivenUnitTest
public BasicMessageDrivenUnitTest(String name, ObjectName jmxDestination, Properties defaultProps)(Code)




Method Detail
activate
protected void activate(ObjectName name) throws Exception(Code)



clearMessages
protected void clearMessages(ObjectName name) throws Exception(Code)



deactivate
protected void deactivate(ObjectName name) throws Exception(Code)



getAttribute
protected Object getAttribute(ObjectName name, String attribute) throws Exception(Code)



getConnection
public Connection getConnection() throws Exception(Code)



getConnection
public Connection getConnection(String user, String password) throws Exception(Code)



getDLQDestination
public Destination getDLQDestination() throws Exception(Code)



getDLQJMXDestination
public ObjectName getDLQJMXDestination()(Code)



getDestination
public Destination getDestination() throws Exception(Code)



getJMXDestination
public ObjectName getJMXDestination()(Code)



getMDBDeployment
public String getMDBDeployment()(Code)



getMessageProducer
public MessageProducer getMessageProducer() throws Exception(Code)



getMessageProducer
public MessageProducer getMessageProducer(Destination destination) throws Exception(Code)



getMessages
protected ArrayList getMessages() throws Exception(Code)



getSession
public Session getSession() throws Exception(Code)



getTestMessage
public Message getTestMessage() throws Exception(Code)



initProperties
protected void initProperties(Properties props) throws Exception(Code)



lookup
protected Object lookup(String jndiName, Class clazz) throws Exception(Code)



onException
public void onException(JMSException e)(Code)



runTest
public void runTest(Operation[] ops, Properties props) throws Exception(Code)



setUp
protected void setUp() throws Exception(Code)



start
protected void start(ObjectName name) throws Exception(Code)



startReceiverThread
protected void startReceiverThread()(Code)



startTest
protected void startTest(Properties props) throws Exception(Code)



stop
protected void stop(ObjectName name) throws Exception(Code)



stopReceiverThread
protected void stopReceiverThread()(Code)



stopTest
protected void stopTest()(Code)



tearDown
protected void tearDown() throws Exception(Code)



tidyup
protected void tidyup(Properties props) throws Exception(Code)



waitMessages
protected void waitMessages(int expected, long wait) 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.