Java Doc for UnitTestBase.java in  » Database-JDBC-Connection-Pool » jTDS » net » sourceforge » jtds » test » 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 » Database JDBC Connection Pool » jTDS » net.sourceforge.jtds.test 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


net.sourceforge.jtds.test.UnitTestBase

All known Subclasses:   net.sourceforge.jtds.test.NamedPipeUnitTest,  net.sourceforge.jtds.test.JtdsDataSourceUnitTest,  net.sourceforge.jtds.test.DefaultPropertiesUnitTest,  net.sourceforge.jtds.test.MessagesPropertiesUnitTest,  net.sourceforge.jtds.test.SupportUnitTest,  net.sourceforge.jtds.test.DriverUnitTest,  net.sourceforge.jtds.test.JtdsObjectFactoryUnitTest,  net.sourceforge.jtds.test.ConnectionJDBC2UnitTest,
UnitTestBase
abstract public class UnitTestBase extends TestCase (Code)
Base class for unit tests which do not connect to a database.
author:
   David D. Kilzer
version:
   $Id: UnitTestBase.java,v 1.12 2005/12/22 17:24:07 ddkilzer Exp $



Constructor Summary
public  UnitTestBase(String name)
     Constructor.

Method Summary
protected  voidassertEquals(String message, Object[] expected, Object[] actual)
     Compare two arrays element-by-element.
public static  ObjectinvokeConstructor(Class klass, Class[] classes, Object[] objects)
     Invoke a constructor on a class using reflection.
Parameters:
  klass - The class.
Parameters:
  classes - The classes in the parameter list.
Parameters:
  objects - The objects to be used as parameters.
public static  ObjectinvokeGetInstanceField(Object instance, String fieldName)
     Get the value of an instance field on an object using reflection.
Parameters:
  instance - The instance of the object.
Parameters:
  fieldName - The name of the field.
public static  ObjectinvokeInstanceMethod(Object instance, String methodName, Class[] classes, Object[] objects)
     Invoke an instance method on an object using reflection.
Parameters:
  instance - The instance of the object.
Parameters:
  methodName - The name of the method.
Parameters:
  classes - The classes in the parameter list.
Parameters:
  objects - The objects to be used as parameters.
public static  voidinvokeSetInstanceField(Object instance, String fieldName, Object fieldValue)
     Set the value of an instance field on an object using reflection.
public static  ObjectinvokeStaticMethod(Class klass, String methodName, Class[] classes, Object[] objects)
     Invoke a static method on a class using reflection.
Parameters:
  klass - The class.
Parameters:
  methodName - The name of the method.
Parameters:
  classes - The classes in the parameter list.
Parameters:
  objects - The objects to be used as parameters.
protected static  StringucFirst(String s)
     Changes the first character of a string to uppercase.
Parameters:
  s - The string to be processed.


Constructor Detail
UnitTestBase
public UnitTestBase(String name)(Code)
Constructor.
Parameters:
  name - The name of the test.




Method Detail
assertEquals
protected void assertEquals(String message, Object[] expected, Object[] actual)(Code)
Compare two arrays element-by-element.

The default JUnit Assert.assertEquals(StringObjectObject) method does not handle them properly.
Parameters:
  message - The message to print upon failure.
Parameters:
  expected - The expected value.
Parameters:
  actual - The actual value.




invokeConstructor
public static Object invokeConstructor(Class klass, Class[] classes, Object[] objects)(Code)
Invoke a constructor on a class using reflection.
Parameters:
  klass - The class.
Parameters:
  classes - The classes in the parameter list.
Parameters:
  objects - The objects to be used as parameters. The object constructed.



invokeGetInstanceField
public static Object invokeGetInstanceField(Object instance, String fieldName)(Code)
Get the value of an instance field on an object using reflection.
Parameters:
  instance - The instance of the object.
Parameters:
  fieldName - The name of the field. The object returned by getting the field.



invokeInstanceMethod
public static Object invokeInstanceMethod(Object instance, String methodName, Class[] classes, Object[] objects)(Code)
Invoke an instance method on an object using reflection.
Parameters:
  instance - The instance of the object.
Parameters:
  methodName - The name of the method.
Parameters:
  classes - The classes in the parameter list.
Parameters:
  objects - The objects to be used as parameters. The object returned by invoking the method.



invokeSetInstanceField
public static void invokeSetInstanceField(Object instance, String fieldName, Object fieldValue)(Code)
Set the value of an instance field on an object using reflection.
Parameters:
  instance - The instance of the object.
Parameters:
  fieldName - The name of the field.
Parameters:
  fieldValue - The value to set the field to.



invokeStaticMethod
public static Object invokeStaticMethod(Class klass, String methodName, Class[] classes, Object[] objects)(Code)
Invoke a static method on a class using reflection.
Parameters:
  klass - The class.
Parameters:
  methodName - The name of the method.
Parameters:
  classes - The classes in the parameter list.
Parameters:
  objects - The objects to be used as parameters. The object returned by invoking the method.



ucFirst
protected static String ucFirst(String s)(Code)
Changes the first character of a string to uppercase.
Parameters:
  s - The string to be processed. The value of s if it is null or zero length,else the string with the first character changed to uppercase.



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