Java Doc for TestComponentLogger.java in  » ESB » open-esb » com » sun » jbi » framework » 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 » ESB » open esb » com.sun.jbi.framework 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.jbi.framework.TestComponentLogger

TestComponentLogger
public class TestComponentLogger extends junit.framework.TestCase (Code)
Tests for the ComponentLogger class.
author:
   Sun Microsystems, Inc.



Constructor Summary
public  TestComponentLogger(String aTestName)
     The constructor for this testcase, forwards the test name to the jUnit TestCase base class.

Method Summary
public  voidsetUp()
     Setup for the test.
public  voidtearDown()
     Cleanup for the test.
public  voidtestAddLogger()
     Test the addLogger method.
public  voidtestAddLoggerInfo()
     Test the addLoggerInfo method.
public  voidtestAddLoggerInfoDefault()
     Test the addLoggerInfo method with a default display name.
public  voidtestAddLoggerInfoWithPrefix()
     Test the addLoggerInfo method with a prefix that doesn't match the component name.
public  voidtestGetDisplayNameBadNullLoggerName()
     Test the get method for the display name for a logger with a null argument.
public  voidtestGetDisplayNameDefault()
     Test the get method for the display name for a logger that was not added dynamically and was not pre-defined.
public  voidtestGetDisplayNameGood()
     Test the get method for the display name for a logger that has been added dynamically.
public  voidtestGetLevelBadNotRegistered()
     Test the get method for the logger level with an unregistered logger.
public  voidtestGetLevelBadNullLoggerName()
     Test the get method for the logger level with a null argument.
public  voidtestGetLevelGood()
     Test the get method for the logger level.
public  voidtestGetLoggerNames()
     Test the getLoggerNames method.
public  voidtestGetSavedLevelBadNull()
     Test the get method for the saved logger level with a null logger name.
public  voidtestGetSavedLevelGoodNotSet()
     Test the get method for a saved logger level when no level has been set.
public  voidtestGetSetLoggerNamePrefix()
     Test the get and set methods for the logger name prefix.
public  voidtestIsLoggerRegistered()
     Test the isLoggerRegistered method.
public  voidtestLoadSaveLoggerSettings()
     Test the load/save methods for component logger levels.
public  voidtestSetAll()
     Tests the setAll method.
public  voidtestSetConfig()
     Tests the setConfig method.
public  voidtestSetDefault()
     Tests the setDefault method.
public  voidtestSetFine()
     Tests the setFine method.
public  voidtestSetFiner()
     Tests the setFiner method.
public  voidtestSetFinest()
     Tests the setFinest method.
public  voidtestSetInfo()
     Tests the setInfo method.
public  voidtestSetLevelBadNotRegistered()
     Test the set method for the logger level with an unregistered logger.
public  voidtestSetLevelBadNullLoggerName()
     Test the set method for the logger level with a null argument.
public  voidtestSetOff()
     Tests the setOff method.
public  voidtestSetSevere()
     Tests the setSevere method.
public  voidtestSetWarning()
     Tests the setWarning method.


Constructor Detail
TestComponentLogger
public TestComponentLogger(String aTestName)(Code)
The constructor for this testcase, forwards the test name to the jUnit TestCase base class.
Parameters:
  aTestName - String with the name of this test.




Method Detail
setUp
public void setUp() throws Exception(Code)
Setup for the test. This creates the ComponentLoggerMBean instance and other objects needed for the tests.
throws:
  Exception - when set up fails for any reason.



tearDown
public void tearDown() throws Exception(Code)
Cleanup for the test.
throws:
  Exception - when tearDown fails for any reason.



testAddLogger
public void testAddLogger() throws Exception(Code)
Test the addLogger method.
throws:
  Exception - if an unexpected error occurs.



testAddLoggerInfo
public void testAddLoggerInfo() throws Exception(Code)
Test the addLoggerInfo method.
throws:
  Exception - if an unexpected error occurs.



testAddLoggerInfoDefault
public void testAddLoggerInfoDefault() throws Exception(Code)
Test the addLoggerInfo method with a default display name.
throws:
  Exception - if an unexpected error occurs.



testAddLoggerInfoWithPrefix
public void testAddLoggerInfoWithPrefix() throws Exception(Code)
Test the addLoggerInfo method with a prefix that doesn't match the component name.
throws:
  Exception - if an unexpected error occurs.



testGetDisplayNameBadNullLoggerName
public void testGetDisplayNameBadNullLoggerName() throws Exception(Code)
Test the get method for the display name for a logger with a null argument.
throws:
  Exception - if an unexpected error occurs.



testGetDisplayNameDefault
public void testGetDisplayNameDefault() throws Exception(Code)
Test the get method for the display name for a logger that was not added dynamically and was not pre-defined.
throws:
  Exception - if an unexpected error occurs.



testGetDisplayNameGood
public void testGetDisplayNameGood() throws Exception(Code)
Test the get method for the display name for a logger that has been added dynamically.
throws:
  Exception - if an unexpected error occurs.



testGetLevelBadNotRegistered
public void testGetLevelBadNotRegistered() throws Exception(Code)
Test the get method for the logger level with an unregistered logger.
throws:
  Exception - if an unexpected error occurs.



testGetLevelBadNullLoggerName
public void testGetLevelBadNullLoggerName() throws Exception(Code)
Test the get method for the logger level with a null argument.
throws:
  Exception - if an unexpected error occurs.



testGetLevelGood
public void testGetLevelGood() throws Exception(Code)
Test the get method for the logger level.
throws:
  Exception - if an unexpected error occurs.



testGetLoggerNames
public void testGetLoggerNames() throws Exception(Code)
Test the getLoggerNames method.
throws:
  Exception - if an unexpected error occurs.



testGetSavedLevelBadNull
public void testGetSavedLevelBadNull() throws Exception(Code)
Test the get method for the saved logger level with a null logger name. An exception is expected
throws:
  Exception - if an unexpected error occurs.



testGetSavedLevelGoodNotSet
public void testGetSavedLevelGoodNotSet() throws Exception(Code)
Test the get method for a saved logger level when no level has been set.
throws:
  Exception - if an unexpected error occurs.



testGetSetLoggerNamePrefix
public void testGetSetLoggerNamePrefix() throws Exception(Code)
Test the get and set methods for the logger name prefix.
throws:
  Exception - if an unexpected error occurs.



testIsLoggerRegistered
public void testIsLoggerRegistered() throws Exception(Code)
Test the isLoggerRegistered method.
throws:
  Exception - if an unexpected error occurs.



testLoadSaveLoggerSettings
public void testLoadSaveLoggerSettings() throws Exception(Code)
Test the load/save methods for component logger levels. This test uses the get/set methods for verification. It also uses the setInstallRoot() method to set up the directory used by the load/save methods.
throws:
  Exception - if an unexpected error occurs.



testSetAll
public void testSetAll() throws Exception(Code)
Tests the setAll method.
throws:
  Exception - if an unexpected error occurs.



testSetConfig
public void testSetConfig() throws Exception(Code)
Tests the setConfig method.
throws:
  Exception - if an unexpected error occurs.



testSetDefault
public void testSetDefault() throws Exception(Code)
Tests the setDefault method.
throws:
  Exception - if an unexpected error occurs.



testSetFine
public void testSetFine() throws Exception(Code)
Tests the setFine method.
throws:
  Exception - if an unexpected error occurs.



testSetFiner
public void testSetFiner() throws Exception(Code)
Tests the setFiner method.
throws:
  Exception - if an unexpected error occurs.



testSetFinest
public void testSetFinest() throws Exception(Code)
Tests the setFinest method.
throws:
  Exception - if an unexpected error occurs.



testSetInfo
public void testSetInfo() throws Exception(Code)
Tests the setInfo method.
throws:
  Exception - if an unexpected error occurs.



testSetLevelBadNotRegistered
public void testSetLevelBadNotRegistered() throws Exception(Code)
Test the set method for the logger level with an unregistered logger. This test covers all of the set methods because they all delegate to this method.
throws:
  Exception - if an unexpected error occurs.



testSetLevelBadNullLoggerName
public void testSetLevelBadNullLoggerName() throws Exception(Code)
Test the set method for the logger level with a null argument. This test covers all of the set methods because they all delegate to this method.
throws:
  Exception - if an unexpected error occurs.



testSetOff
public void testSetOff() throws Exception(Code)
Tests the setOff method.
throws:
  Exception - if an unexpected error occurs.



testSetSevere
public void testSetSevere() throws Exception(Code)
Tests the setSevere method.
throws:
  Exception - if an unexpected error occurs.



testSetWarning
public void testSetWarning() throws Exception(Code)
Tests the setWarning method.
throws:
  Exception - if an unexpected error occurs.



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