Java Doc for LoggingTest.java in  » IDE-Netbeans » nbjunit » org » netbeans » junit » 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 » nbjunit » org.netbeans.junit 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.netbeans.junit.NbTestCase
   org.netbeans.junit.LoggingTest

LoggingTest
public class LoggingTest extends NbTestCase (Code)
Checks that we can do proper logging.
author:
   Jaroslav Tulach



Constructor Summary
public  LoggingTest(String testName)
    

Method Summary
protected  LevellogLevel()
    
static  StringreadFile(File f)
    
protected  voidsetUp()
    
public static  NbTestSuitesuite()
    
public  voidtestFmting()
    
public  voidtestIOExceptionIsWrappedWithLogMsg()
    
public  voidtestLogFileName()
    
public  voidtestLogFileNameEqualsToNameOfTest()
    
public  voidtestLoggingUtil()
    
public  voidtestLoggingUtilWithCleanOfUserDir()
    
public  voidtestMyExceptionIsWrappedWithLogMsg()
    
public  voidtestMyExceptionWithStackTrace()
    
public  voidtestTrimLogFiles()
     Test of NbTestCase#trimLogFiles method.
public  voidthrowIOThrowable()
     Used in testIOExceptionIsWrappedWithLogMsg.
public  voidthrowMyThrowable()
     Used in testMyExceptionIsWrappedWithLogMsg.


Constructor Detail
LoggingTest
public LoggingTest(String testName)(Code)




Method Detail
logLevel
protected Level logLevel()(Code)



readFile
static String readFile(File f) throws IOException(Code)



setUp
protected void setUp() throws Exception(Code)



suite
public static NbTestSuite suite()(Code)



testFmting
public void testFmting() throws Exception(Code)



testIOExceptionIsWrappedWithLogMsg
public void testIOExceptionIsWrappedWithLogMsg() throws Exception(Code)



testLogFileName
public void testLogFileName() throws Exception(Code)



testLogFileNameEqualsToNameOfTest
public void testLogFileNameEqualsToNameOfTest() throws Exception(Code)



testLoggingUtil
public void testLoggingUtil() throws Exception(Code)



testLoggingUtilWithCleanOfUserDir
public void testLoggingUtilWithCleanOfUserDir() throws Exception(Code)



testMyExceptionIsWrappedWithLogMsg
public void testMyExceptionIsWrappedWithLogMsg() throws Exception(Code)



testMyExceptionWithStackTrace
public void testMyExceptionWithStackTrace() throws Exception(Code)



testTrimLogFiles
public void testTrimLogFiles() throws IOException(Code)
Test of NbTestCase#trimLogFiles method. It should trim size of all files in test case workdir to 1 MB. The method is called at the end of NbTestCase#run method.



throwIOThrowable
public void throwIOThrowable() throws Throwable(Code)
Used in testIOExceptionIsWrappedWithLogMsg.



throwMyThrowable
public void throwMyThrowable() throws Throwable(Code)
Used in testMyExceptionIsWrappedWithLogMsg. It has to have different name because it cannot delete log file on 64 bit machine.



Fields inherited from org.netbeans.junit.NbTestCase
PrintStream systemOutPSWrapper(Code)(Java Doc)

Methods inherited from org.netbeans.junit.NbTestCase
public static void assertFile(String message, String test, String pass, String diff, Diff externalDiff)(Code)(Java Doc)
public static void assertFile(String test, String pass, String diff, Diff externalDiff)(Code)(Java Doc)
public static void assertFile(String message, String test, String pass, String diff)(Code)(Java Doc)
public static void assertFile(String test, String pass, String diff)(Code)(Java Doc)
public static void assertFile(String test, String pass)(Code)(Java Doc)
public static void assertFile(String message, File test, File pass, File diff, Diff externalDiff)(Code)(Java Doc)
public static void assertFile(File test, File pass, File diff, Diff externalDiff)(Code)(Java Doc)
public static void assertFile(String message, File test, File pass, File diff)(Code)(Java Doc)
public static void assertFile(File test, File pass, File diff)(Code)(Java Doc)
public static void assertFile(File test, File pass)(Code)(Java Doc)
public static void assertGC(String text, Reference ref)(Code)(Java Doc)
public static void assertGC(String text, Reference ref, Set rootsHint)(Code)(Java Doc)
public static void assertSize(String message, int limit, Object root)(Code)(Java Doc)
public static void assertSize(String message, Collection roots, int limit)(Code)(Java Doc)
public static void assertSize(String message, Collection roots, int limit, Object[] skip)(Code)(Java Doc)
public static int assertSize(String message, Collection roots, int limit, MemoryFilter skip)(Code)(Java Doc)
public boolean canRun()(Code)(Java Doc)
public void clearWorkDir() throws IOException(Code)(Java Doc)
public void compareReferenceFiles(String testFilename, String goldenFilename, String diffFilename)(Code)(Java Doc)
public void compareReferenceFiles()(Code)(Java Doc)
public static String convertNBFSURL(URL url)(Code)(Java Doc)
static void deleteSubFiles(File file) throws IOException(Code)(Java Doc)
public static void failByBug(int bugID)(Code)(Java Doc)
public static void failByBug(int bugID, String message)(Code)(Java Doc)
public File getDataDir()(Code)(Java Doc)
final long getExecutionTime()(Code)(Java Doc)
public String getExpectedFail()(Code)(Java Doc)
public File getGoldenFile(String filename)(Code)(Java Doc)
public File getGoldenFile()(Code)(Java Doc)
public PrintStream getLog(String logName)(Code)(Java Doc)
public PrintStream getLog()(Code)(Java Doc)
public PrintStream getRef()(Code)(Java Doc)
final protected int getTestNumber()(Code)(Java Doc)
public File getWorkDir() throws IOException(Code)(Java Doc)
public String getWorkDirPath()(Code)(Java Doc)
public void log(String message)(Code)(Java Doc)
public void log(String log, String message)(Code)(Java Doc)
protected Level logLevel()(Code)(Java Doc)
public void ref(String message)(Code)(Java Doc)
public void run(TestResult result)(Code)(Java Doc)
public void runBare() throws Throwable(Code)(Java Doc)
protected boolean runInEQ()(Code)(Java Doc)
public void setFilter(Filter filter)(Code)(Java Doc)
protected int timeOut()(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.