Java Doc for TestBase.java in  » Database-DBMS » h2database » org » h2 » 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 DBMS » h2database » org.h2.test 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.h2.test.TestBase

All known Subclasses:   org.h2.test.jdbc.TestDatabaseEventListener,  org.h2.test.unit.TestFile,  org.h2.test.synth.thread.TestMulti,  org.h2.test.db.TestLinkedTable,  org.h2.test.unit.TestReader,  org.h2.test.db.TestBigDb,  org.h2.test.db.TestLogFile,  org.h2.test.synth.TestHalt,  org.h2.test.synth.TestKillRestart,  org.h2.test.synth.TestCrashAPI,  org.h2.test.unit.TestIntArray,  org.h2.test.unit.TestValue,  org.h2.test.synth.TestThreads,  org.h2.test.jdbc.TestUpdatableResultSet,  org.h2.test.server.TestNestedLoop,  org.h2.test.db.TestExclusive,  org.h2.test.unit.TestCache,  org.h2.test.db.TestMultiDimension,  org.h2.test.jdbcx.TestXASimple,  org.h2.test.db.TestLob,  org.h2.test.unit.TestSampleApps,  org.h2.test.db.TestEncryptedDb,  org.h2.test.db.TestTriggersConstraints,  org.h2.test.server.TestWeb,  org.h2.test.mvcc.TestMvcc3,  org.h2.test.db.TestMultiThread,  org.h2.test.jdbcx.TestDataSource,  org.h2.test.db.TestBigResult,  org.h2.test.jdbc.TestResultSet,  org.h2.test.synth.TestKillRestartMulti,  org.h2.test.db.TestScript,  org.h2.test.unit.TestFtp,  org.h2.test.synth.TestKill,  org.h2.test.unit.TestScriptReader,  org.h2.test.jdbc.TestZloty,  org.h2.test.jdbc.TestMetaData,  org.h2.test.unit.TestStringUtils,  org.h2.test.unit.TestPattern,  org.h2.test.jdbc.TestStatement,  org.h2.test.db.TestAutoRecompile,  org.h2.test.db.TestSessionsLocks,  org.h2.test.db.TestSpeed,  org.h2.test.db.TestMultiConn,  org.h2.test.jdbc.TestCallableStatement,  org.h2.test.db.TestCluster,  org.h2.test.db.TestScriptSimple,  org.h2.test.synth.TestRandomSQL,  org.h2.test.db.TestRights,  org.h2.test.mvcc.TestMvcc1,  org.h2.test.unit.TestMultiThreadedKernel,  org.h2.test.synth.TestTimer,  org.h2.test.db.TestIndex,  org.h2.test.db.TestCsv,  org.h2.test.synth.TestJoin,  org.h2.test.db.TestRunscript,  org.h2.test.unit.TestValueMemory,  org.h2.test.db.TestView,  org.h2.test.unit.TestDate,  org.h2.test.db.TestTransaction,  org.h2.test.mvcc.TestMvcc2,  org.h2.test.db.TestOptimizations,  org.h2.test.unit.TestOverflow,  org.h2.test.synth.TestSimpleIndex,  org.h2.test.synth.sql.TestSynth,  org.h2.test.jdbc.TestBatchUpdates,  org.h2.test.unit.TestRecovery,  org.h2.test.jdbc.TestPreparedStatement,  org.h2.test.db.TestTempTables,  org.h2.test.jdbc.TestManyJdbcObjects,  org.h2.test.jdbc.TestNativeSQL,  org.h2.test.db.TestSpaceReuse,  org.h2.test.unit.TestSecurity,  org.h2.test.unit.TestIntIntHashMap,  org.h2.test.db.TestPowerOff,  org.h2.test.unit.TestBitField,  org.h2.test.jdbc.TestCancel,  org.h2.test.db.TestBackup,  org.h2.test.db.TestFunctions,  org.h2.test.server.TestPgServer,  org.h2.test.db.TestMemoryUsage,  org.h2.test.db.TestCompatibility,  org.h2.test.unit.TestStreams,  org.h2.test.jdbcx.TestXA,  org.h2.test.db.TestSequence,  org.h2.test.db.TestCases,  org.h2.test.unit.TestValueHashMap,  org.h2.test.unit.TestExit,  org.h2.test.unit.TestTools,  org.h2.test.db.TestFullText,  org.h2.test.db.TestOpenClose,  org.h2.test.db.TestListener,  org.h2.test.db.TestSQLInjection,  org.h2.test.unit.TestCompress,  org.h2.test.unit.TestFileLock,  org.h2.test.unit.TestFileSystem,  org.h2.test.unit.TestDataPage,  org.h2.test.db.TestReadOnly,  org.h2.test.unit.TestStringCache,  org.h2.test.db.TestCheckpoint,  org.h2.test.db.TestTwoPhaseCommit,  org.h2.test.jdbc.TestTransactionIsolation,  org.h2.test.unit.TestServlet,  org.h2.test.synth.TestBtreeIndex,
TestBase
abstract public class TestBase (Code)
The base class for all tests.


Field Summary
protected static  StringbaseDir
    
protected  TestAllconfig
    


Method Summary
public  voidcheck(int a, int b)
    
protected  voidcheck(byte[] a, byte[] b)
    
protected  voidcheck(String a, String b)
    
protected  voidcheck(long a, long b)
    
protected  voidcheck(double a, double b)
    
protected  voidcheck(float a, float b)
    
protected  voidcheck(boolean a, boolean b)
    
protected  voidcheck(boolean value)
    
protected  voidcheck(Integer a, Integer b)
    
protected  voidcheckContains(String result, String contains)
    
protected  voidcheckFalse(String a, String b)
    
protected  voidcheckFalse(boolean value)
    
protected  voidcheckNotGeneralException(SQLException e)
    
protected  voidcheckResultRowCount(ResultSet rs, int expected)
    
protected  voidcheckSingleValue(Statement stat, String sql, int value)
    
protected  voidcheckSmaller(long a, long b)
    
protected  voidcompareDatabases(Statement stat1, Statement stat2)
    
protected  voidcrash(Connection conn)
    
protected  voiddeleteDb(String name)
    
protected  voiddeleteDb(String dir, String name)
    
protected  voiderror()
    
protected  voiderror(String string)
    
protected  voidfail(String s, Throwable e)
    
 StringformatRow(String[] row)
    
public  ConnectiongetConnection(String name)
    
protected  ConnectiongetConnection(String name, String user, String password)
    
 String[]getData(ResultSet rs, int len)
    
public static  intgetMemoryUsed()
    
protected  StringgetPassword()
    
protected  intgetSize(int small, int big)
    
public static  StringgetTestDir(String name)
    
protected  StringgetURL(String name, boolean admin)
    
protected  StringgetUser()
    
public  TestBaseinit(TestAll conf)
    
public static  voidlogError(String s, Throwable e)
    
protected  voidprintTime(String s)
    
public  voidprintTimeMemory(String s, long time)
    
protected  voidprintln(String s)
    
static  voidprintlnWithTime(long time, String s)
    
protected  StringreadString(Reader reader)
    
public  voidrunTest(TestAll conf)
    
protected  voidstartServerIfRequired()
    
abstract public  voidtest()
    
public  voidtestCase(int i)
    
 voidtestResultSet(boolean ordered, ResultSet rs, String[][] data)
    
protected  voidtestResultSetMeta(ResultSet rs, int columnCount, String[] labels, int[] datatypes, int[] precision, int[] scale)
    
protected  voidtestResultSetOrdered(ResultSet rs, String[][] data)
    
 voidtestResultSetUnordered(ResultSet rs, String[][] data)
    
 booleantestRow(String[] a, String[] b, int len)
    
protected  voidtrace(int x)
    
public  voidtrace(String s)
    
protected  voidtraceMemory()
    

Field Detail
baseDir
protected static String baseDir(Code)



config
protected TestAll config(Code)





Method Detail
check
public void check(int a, int b) throws Exception(Code)



check
protected void check(byte[] a, byte[] b) throws Exception(Code)



check
protected void check(String a, String b) throws Exception(Code)



check
protected void check(long a, long b) throws Exception(Code)



check
protected void check(double a, double b) throws Exception(Code)



check
protected void check(float a, float b) throws Exception(Code)



check
protected void check(boolean a, boolean b) throws Exception(Code)



check
protected void check(boolean value) throws Exception(Code)



check
protected void check(Integer a, Integer b) throws Exception(Code)



checkContains
protected void checkContains(String result, String contains) throws Exception(Code)



checkFalse
protected void checkFalse(String a, String b) throws Exception(Code)



checkFalse
protected void checkFalse(boolean value) throws Exception(Code)



checkNotGeneralException
protected void checkNotGeneralException(SQLException e) throws Exception(Code)



checkResultRowCount
protected void checkResultRowCount(ResultSet rs, int expected) throws Exception(Code)



checkSingleValue
protected void checkSingleValue(Statement stat, String sql, int value) throws Exception(Code)



checkSmaller
protected void checkSmaller(long a, long b) throws Exception(Code)



compareDatabases
protected void compareDatabases(Statement stat1, Statement stat2) throws Exception(Code)



crash
protected void crash(Connection conn) throws Exception(Code)



deleteDb
protected void deleteDb(String name) throws Exception(Code)



deleteDb
protected void deleteDb(String dir, String name) throws Exception(Code)



error
protected void error() throws Exception(Code)



error
protected void error(String string) throws Exception(Code)



fail
protected void fail(String s, Throwable e)(Code)



formatRow
String formatRow(String[] row)(Code)



getConnection
public Connection getConnection(String name) throws Exception(Code)



getConnection
protected Connection getConnection(String name, String user, String password) throws Exception(Code)



getData
String[] getData(ResultSet rs, int len) throws SQLException(Code)



getMemoryUsed
public static int getMemoryUsed()(Code)



getPassword
protected String getPassword()(Code)



getSize
protected int getSize(int small, int big) throws Exception(Code)



getTestDir
public static String getTestDir(String name)(Code)



getURL
protected String getURL(String name, boolean admin) throws SQLException(Code)



getUser
protected String getUser()(Code)



init
public TestBase init(TestAll conf) throws Exception(Code)



logError
public static void logError(String s, Throwable e)(Code)



printTime
protected void printTime(String s)(Code)



printTimeMemory
public void printTimeMemory(String s, long time)(Code)



println
protected void println(String s)(Code)



printlnWithTime
static void printlnWithTime(long time, String s)(Code)



readString
protected String readString(Reader reader) throws Exception(Code)



runTest
public void runTest(TestAll conf)(Code)



startServerIfRequired
protected void startServerIfRequired() throws SQLException(Code)



test
abstract public void test() throws Exception(Code)



testCase
public void testCase(int i) throws Exception(Code)



testResultSet
void testResultSet(boolean ordered, ResultSet rs, String[][] data) throws Exception(Code)



testResultSetMeta
protected void testResultSetMeta(ResultSet rs, int columnCount, String[] labels, int[] datatypes, int[] precision, int[] scale) throws Exception(Code)



testResultSetOrdered
protected void testResultSetOrdered(ResultSet rs, String[][] data) throws Exception(Code)



testResultSetUnordered
void testResultSetUnordered(ResultSet rs, String[][] data) throws Exception(Code)



testRow
boolean testRow(String[] a, String[] b, int len)(Code)



trace
protected void trace(int x)(Code)



trace
public void trace(String s)(Code)



traceMemory
protected void traceMemory()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.