You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(13) |
Aug
(151) |
Sep
(21) |
Oct
(6) |
Nov
(70) |
Dec
(8) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(47) |
Feb
(66) |
Mar
(23) |
Apr
(115) |
May
(24) |
Jun
(53) |
Jul
(10) |
Aug
(279) |
Sep
(84) |
Oct
(149) |
Nov
(138) |
Dec
(52) |
2003 |
Jan
(22) |
Feb
(20) |
Mar
(29) |
Apr
(106) |
May
(170) |
Jun
(122) |
Jul
(70) |
Aug
(64) |
Sep
(27) |
Oct
(71) |
Nov
(49) |
Dec
(9) |
2004 |
Jan
(7) |
Feb
(38) |
Mar
(3) |
Apr
(9) |
May
(22) |
Jun
(4) |
Jul
(1) |
Aug
(2) |
Sep
(2) |
Oct
|
Nov
(15) |
Dec
(2) |
2005 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
(1) |
May
(28) |
Jun
(3) |
Jul
(11) |
Aug
(5) |
Sep
(1) |
Oct
(5) |
Nov
(2) |
Dec
(3) |
2006 |
Jan
(8) |
Feb
(3) |
Mar
(8) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Steve F. <sm...@us...> - 2002-08-02 17:56:27
|
Update of /cvsroot/mockobjects/no-stone-unturned/doc/docbook-xsl-1.52.2/extensions/doc/saxon6 In directory usw-pr-cvs1:/tmp/cvs-serv27726/doc/docbook-xsl-1.52.2/extensions/doc/saxon6 Log Message: Directory /cvsroot/mockobjects/no-stone-unturned/doc/docbook-xsl-1.52.2/extensions/doc/saxon6 added to the repository |
From: Steve F. <sm...@us...> - 2002-08-02 17:56:26
|
Update of /cvsroot/mockobjects/no-stone-unturned/doc In directory usw-pr-cvs1:/tmp/cvs-serv27726/doc Log Message: Directory /cvsroot/mockobjects/no-stone-unturned/doc added to the repository |
From: Steve F. <sm...@us...> - 2002-08-02 17:56:26
|
Update of /cvsroot/mockobjects/no-stone-unturned/doc/docbook-xsl-1.52.2/common In directory usw-pr-cvs1:/tmp/cvs-serv27726/doc/docbook-xsl-1.52.2/common Log Message: Directory /cvsroot/mockobjects/no-stone-unturned/doc/docbook-xsl-1.52.2/common added to the repository |
From: Steve F. <sm...@us...> - 2002-08-02 17:56:26
|
Update of /cvsroot/mockobjects/no-stone-unturned/doc/docbook-xsl-1.52.2/doc/common In directory usw-pr-cvs1:/tmp/cvs-serv27726/doc/docbook-xsl-1.52.2/doc/common Log Message: Directory /cvsroot/mockobjects/no-stone-unturned/doc/docbook-xsl-1.52.2/doc/common added to the repository |
From: Steve F. <sm...@us...> - 2002-08-02 17:56:25
|
Update of /cvsroot/mockobjects/no-stone-unturned/doc/docbook-xsl-1.52.2/doc In directory usw-pr-cvs1:/tmp/cvs-serv27726/doc/docbook-xsl-1.52.2/doc Log Message: Directory /cvsroot/mockobjects/no-stone-unturned/doc/docbook-xsl-1.52.2/doc added to the repository |
From: Steve F. <sm...@us...> - 2002-08-02 17:56:25
|
Update of /cvsroot/mockobjects/no-stone-unturned/doc/docbook-xsl-1.52.2/doc/fo In directory usw-pr-cvs1:/tmp/cvs-serv27726/doc/docbook-xsl-1.52.2/doc/fo Log Message: Directory /cvsroot/mockobjects/no-stone-unturned/doc/docbook-xsl-1.52.2/doc/fo added to the repository |
From: Steve F. <sm...@us...> - 2002-08-02 17:56:25
|
Update of /cvsroot/mockobjects/no-stone-unturned/doc/docbook-xsl-1.52.2/doc/template In directory usw-pr-cvs1:/tmp/cvs-serv27726/doc/docbook-xsl-1.52.2/doc/template Log Message: Directory /cvsroot/mockobjects/no-stone-unturned/doc/docbook-xsl-1.52.2/doc/template added to the repository |
From: Steve F. <sm...@us...> - 2002-08-02 17:54:16
|
Update of /cvsroot/mockobjects/no-stone-unturned In directory usw-pr-cvs1:/tmp/cvs-serv26686 Log Message: Initial import Status: Vendor Tag: vendor Release Tags: start No conflicts created by this import ***** Bogus filespec: - Imported sources |
From: Jeff M. <cus...@us...> - 2002-07-30 18:46:18
|
Update of /cvsroot/mockobjects/mockobjects-java In directory usw-pr-cvs1:/tmp/cvs-serv27186 Modified Files: build.xml Log Message: Changes to build file to improve code release Index: build.xml =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/build.xml,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- build.xml 9 May 2002 13:16:38 -0000 1.22 +++ build.xml 30 Jul 2002 18:22:35 -0000 1.23 @@ -21,7 +21,7 @@ <target name="project-properties"> <property name="project.fullname" value="Mock Objects" /> - <property name="project.version" value="0.03" /> + <property name="project.version" value="0.4" /> <property name="project.name" value="mockobjects" /> <property name="year" value="2002" /> <property name="debug" value="on" /> @@ -336,8 +336,8 @@ depends="call-me-first, deliverable-names" unless="javadoc.notrequired" description="Generate the javadoc for the current version"> - <javadoc sourcepath="${out.src.dir}" - packagenames="com.mockobjects.*" destdir="${out.javadoc.dir}" + <javadoc + packagenames="com.mockobjects.*,alt.*" destdir="${out.javadoc.dir}" author="true" public="true" version="true" use="true" windowtitle="${project.fullname} ${project.version}" doctitle="${project.fullname} ${project.version}" @@ -345,27 +345,18 @@ <classpath> <path refid="lib.classpath" /> - <pathelement path="${java.class.path}" /> </classpath> + <sourcepath> + <pathelement path="${src.dir}/core"/> + <pathelement path="${src.dir}/jdk/common"/> + <pathelement path="${src.dir}/jdk/1.3"/> + <pathelement path="${src.dir}/j2ee/common"/> + <pathelement path="${src.dir}/j2ee/1.3"/> + </sourcepath> </javadoc> </target> - <target name="zip-javadoc-for-website" depends="javadoc"> -<!-- Create a gzip file of the javadoc. This is for putting to the - project web site. It needs to be unzipped in the root document - of the web site. This file is not intended to be redistributed as part - of the end-user redistributable. It is simply to help create the - web site --> - <tar tarfile="${out.dir}/${javadoc.name}.tar" - basedir="${out.javadoc.dir}" /> - - <gzip zipfile="${out.dir}/${javadoc.name}.tar.gz" - src="${out.dir}/${javadoc.name}.tar" /> - - <delete file="${out.dir}/${javadoc.name}.tar" /> - </target> - <target name="_prepare-xdoc"> <!-- requires prepare.xdoc.dir, book.xml.file --> <mkdir dir="${prepare.xdoc.dir}" /> @@ -420,13 +411,6 @@ <target name="doc" depends="prepare-doc" unless="stylebook.doc.notrequired" description="Generate the documentation website"> - <stylebook book="${out.xdoc.doc.dir}/book.xml" - skinDirectory="${skin.dir}/jakarta.apache.org" - targetDirectory="${out.doc.dir}"> - <classpath> - <pathelement path="${java.class.path}" /> - </classpath> - </stylebook> </target> <!-- @@ -479,7 +463,7 @@ <!-- Generate the web site --> <target name="site" - depends="deliverable-names, prepare-site, zip-javadoc-for-website" + depends="deliverable-names, prepare-site" unless="stylebook.site.notrequired" description="Generate the web site"> <stylebook book="${out.xdoc.site.dir}/book.xml" @@ -529,15 +513,15 @@ <target name="dist" depends="call-me-first, prepare-dist, zip-java-sources" description="Generate the distributables"> - <zip zipfile="${dist.dir}/${dist.name}.zip"> + <zip zipfile="${dist.dir}/mockobjects${project.version}.zip"> <zipfileset dir="${out.dir}" prefix="lib"> - <include name="${jar.name}.jar" /> + <include name="*.jar" /> </zipfileset> <zipfileset dir="${out.doc.dir}" prefix="doc" /> <zipfileset dir="${out.dir}" prefix="src"> - <include name="${src.name}.zip" /> + <include name="mockobjects-src.zip" /> </zipfileset> </zip> </target> |
From: A Gyles-M. <ag...@us...> - 2002-07-10 09:47:17
|
Update of /cvsroot/mockobjects/mockobjects-java/src/examples In directory usw-pr-cvs1:/tmp/cvs-serv20171/src/examples Modified Files: Readme.txt Log Message: Added fullstop as a cvs commit test via tortoise cvs Index: Readme.txt =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/examples/Readme.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- Readme.txt 29 Jul 2001 19:50:24 -0000 1.1 +++ Readme.txt 10 Jul 2002 09:47:13 -0000 1.2 @@ -1 +1 @@ -Examples of how to use the core mockobjects library \ No newline at end of file +Examples of how to use the core mockobjects library. \ No newline at end of file |
From: Jeff M. <cus...@us...> - 2002-07-08 18:34:01
|
Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/common/com/mockobjects/sql In directory usw-pr-cvs1:/tmp/cvs-serv12665/src/jdk/common/com/mockobjects/sql Modified Files: CommonMockConnection.java Added Files: MockDatabaseMetaData.java Log Message: Mock for DatabaseMetaData provided by Scott Lamb <sl...@sl...> --- NEW FILE: MockDatabaseMetaData.java --- package com.mockobjects.sql; import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.ResultSet; import java.sql.SQLException; import com.mockobjects.MockObject; public class MockDatabaseMetaData extends MockObject implements DatabaseMetaData { private String myDriverName; public void setupDriverName(String driverName) { myDriverName = driverName; } public boolean supportsANSI92FullSQL() throws SQLException { notImplemented(); return false; } public boolean supportsANSI92EntryLevelSQL() throws SQLException { notImplemented(); return false; } public boolean supportsStatementPooling() throws SQLException { notImplemented(); return false; } public boolean supportsMixedCaseQuotedIdentifiers() throws SQLException { notImplemented(); return false; } public boolean supportsSubqueriesInComparisons() throws SQLException { notImplemented(); return false; } public boolean supportsMultipleOpenResults() throws SQLException { notImplemented(); return false; } public ResultSet getProcedures(String a0, String a1, String a2) throws SQLException { notImplemented(); return null; } public String getSystemFunctions() throws SQLException { notImplemented(); return null; } public boolean supportsUnionAll() throws SQLException { notImplemented(); return false; } public int getDatabaseMinorVersion() throws SQLException { notImplemented(); return 0; } public boolean supportsResultSetConcurrency(int a0, int a1) throws SQLException { notImplemented(); return false; } public ResultSet getCatalogs() throws SQLException { notImplemented(); return null; } public boolean usesLocalFilePerTable() throws SQLException { notImplemented(); return false; } public boolean supportsResultSetHoldability(int a0) throws SQLException { notImplemented(); return false; } public ResultSet getIndexInfo(String a0, String a1, String a2, boolean a3, boolean a4) throws SQLException { notImplemented(); return null; } public boolean supportsExpressionsInOrderBy() throws SQLException { notImplemented(); return false; } public String getDatabaseProductName() throws SQLException { notImplemented(); return null; } public boolean supportsIntegrityEnhancementFacility() throws SQLException { notImplemented(); return false; } public int getMaxBinaryLiteralLength() throws SQLException { notImplemented(); return 0; } public boolean supportsLimitedOuterJoins() throws SQLException { notImplemented(); return false; } public boolean storesUpperCaseQuotedIdentifiers() throws SQLException { notImplemented(); return false; } public boolean supportsMultipleResultSets() throws SQLException { notImplemented(); return false; } public boolean supportsFullOuterJoins() throws SQLException { notImplemented(); return false; } public boolean ownDeletesAreVisible(int a0) throws SQLException { notImplemented(); return false; } public ResultSet getPrimaryKeys(String a0, String a1, String a2) throws SQLException { notImplemented(); return null; } public int getMaxColumnsInIndex() throws SQLException { notImplemented(); return 0; } public ResultSet getExportedKeys(String a0, String a1, String a2) throws SQLException { notImplemented(); return null; } public boolean locatorsUpdateCopy() throws SQLException { notImplemented(); return false; } public ResultSet getTables(String a0, String a1, String a2, String[] a3) throws SQLException { notImplemented(); return null; } public int getMaxColumnsInTable() throws SQLException { notImplemented(); return 0; } public String getDriverVersion() throws SQLException { notImplemented(); return null; } public boolean supportsBatchUpdates() throws SQLException { notImplemented(); return false; } public int getMaxTablesInSelect() throws SQLException { notImplemented(); return 0; } public Connection getConnection() throws SQLException { notImplemented(); return null; } public boolean supportsNonNullableColumns() throws SQLException { notImplemented(); return false; } public int getMaxColumnsInOrderBy() throws SQLException { notImplemented(); return 0; } public boolean supportsOrderByUnrelated() throws SQLException { notImplemented(); return false; } public boolean supportsCatalogsInIndexDefinitions() throws SQLException { notImplemented(); return false; } public int getJDBCMajorVersion() throws SQLException { notImplemented(); return 0; } public String getExtraNameCharacters() throws SQLException { notImplemented(); return null; } public boolean nullsAreSortedLow() throws SQLException { notImplemented(); return false; } public ResultSet getAttributes(String a0, String a1, String a2, String a3) throws SQLException { notImplemented(); return null; } public boolean updatesAreDetected(int a0) throws SQLException { notImplemented(); return false; } public boolean supportsDataManipulationTransactionsOnly() throws SQLException { notImplemented(); return false; } public int getMaxConnections() throws SQLException { notImplemented(); return 0; } public boolean supportsOpenCursorsAcrossCommit() throws SQLException { notImplemented(); return false; } public ResultSet getUDTs(String a0, String a1, String a2, int[] a3) throws SQLException { notImplemented(); return null; } public ResultSet getTableTypes() throws SQLException { notImplemented(); return null; } public int getResultSetHoldability() throws SQLException { notImplemented(); return 0; } public boolean insertsAreDetected(int a0) throws SQLException { notImplemented(); return false; } public ResultSet getSchemas() throws SQLException { notImplemented(); return null; } public int getMaxCatalogNameLength() throws SQLException { notImplemented(); return 0; } public int getDefaultTransactionIsolation() throws SQLException { notImplemented(); return 0; } public String getURL() throws SQLException { notImplemented(); return null; } public boolean usesLocalFiles() throws SQLException { notImplemented(); return false; } public boolean supportsExtendedSQLGrammar() throws SQLException { notImplemented(); return false; } public boolean supportsSchemasInProcedureCalls() throws SQLException { notImplemented(); return false; } public ResultSet getSuperTypes(String a0, String a1, String a2) throws SQLException { notImplemented(); return null; } public int getMaxStatements() throws SQLException { notImplemented(); return 0; } public int getMaxCharLiteralLength() throws SQLException { notImplemented(); return 0; } public boolean supportsTransactionIsolationLevel(int a0) throws SQLException { notImplemented(); return false; } public boolean supportsTableCorrelationNames() throws SQLException { notImplemented(); return false; } public String getSearchStringEscape() throws SQLException { notImplemented(); return null; } public boolean deletesAreDetected(int a0) throws SQLException { notImplemented(); return false; } public boolean supportsColumnAliasing() throws SQLException { notImplemented(); return false; } public boolean isReadOnly() throws SQLException { notImplemented(); return false; } public boolean supportsLikeEscapeClause() throws SQLException { notImplemented(); return false; } public boolean storesLowerCaseIdentifiers() throws SQLException { notImplemented(); return false; } public boolean storesMixedCaseQuotedIdentifiers() throws SQLException { notImplemented(); return false; } public boolean supportsMultipleTransactions() throws SQLException { notImplemented(); return false; } public String getProcedureTerm() throws SQLException { notImplemented(); return null; } public int getMaxStatementLength() throws SQLException { notImplemented(); return 0; } public boolean nullPlusNonNullIsNull() throws SQLException { notImplemented(); return false; } public boolean supportsGroupByBeyondSelect() throws SQLException { notImplemented(); return false; } public int getDriverMajorVersion() { notImplemented(); return 0; } public boolean supportsCoreSQLGrammar() throws SQLException { notImplemented(); return false; } public boolean supportsPositionedUpdate() throws SQLException { notImplemented(); return false; } public boolean supportsCatalogsInPrivilegeDefinitions() throws SQLException { notImplemented(); return false; } public boolean supportsGetGeneratedKeys() throws SQLException { notImplemented(); return false; } public ResultSet getImportedKeys(String a0, String a1, String a2) throws SQLException { notImplemented(); return null; } public String getIdentifierQuoteString() throws SQLException { notImplemented(); return null; } public ResultSet getSuperTables(String a0, String a1, String a2) throws SQLException { notImplemented(); return null; } public boolean nullsAreSortedHigh() throws SQLException { notImplemented(); return false; } public String getNumericFunctions() throws SQLException { notImplemented(); return null; } public boolean supportsSchemasInIndexDefinitions() throws SQLException { notImplemented(); return false; } public boolean supportsGroupByUnrelated() throws SQLException { notImplemented(); return false; } public ResultSet getTypeInfo() throws SQLException { notImplemented(); return null; } public boolean supportsTransactions() throws SQLException { notImplemented(); return false; } public boolean supportsPositionedDelete() throws SQLException { notImplemented(); return false; } public int getMaxProcedureNameLength() throws SQLException { notImplemented(); return 0; } public boolean supportsOuterJoins() throws SQLException { notImplemented(); return false; } public boolean supportsOpenCursorsAcrossRollback() throws SQLException { notImplemented(); return false; } public boolean storesMixedCaseIdentifiers() throws SQLException { notImplemented(); return false; } public int getDatabaseMajorVersion() throws SQLException { notImplemented(); return 0; } public int getMaxColumnsInSelect() throws SQLException { notImplemented(); return 0; } public boolean dataDefinitionIgnoredInTransactions() throws SQLException { notImplemented(); return false; } public String getCatalogTerm() throws SQLException { notImplemented(); return null; } public int getMaxRowSize() throws SQLException { notImplemented(); return 0; } public String getUserName() throws SQLException { notImplemented(); return null; } public boolean allProceduresAreCallable() throws SQLException { notImplemented(); return false; } public boolean nullsAreSortedAtStart() throws SQLException { notImplemented(); return false; } public boolean storesUpperCaseIdentifiers() throws SQLException { notImplemented(); return false; } public boolean supportsCatalogsInDataManipulation() throws SQLException { notImplemented(); return false; } public ResultSet getBestRowIdentifier(String a0, String a1, String a2, int a3, boolean a4) throws SQLException { notImplemented(); return null; } public boolean storesLowerCaseQuotedIdentifiers() throws SQLException { notImplemented(); return false; } public boolean nullsAreSortedAtEnd() throws SQLException { notImplemented(); return false; } public String getSQLKeywords() throws SQLException { notImplemented(); return null; } public ResultSet getCrossReference(String a0, String a1, String a2, String a3, String a4, String a5) throws SQLException { notImplemented(); return null; } public boolean isCatalogAtStart() throws SQLException { notImplemented(); return false; } public boolean supportsNamedParameters() throws SQLException { notImplemented(); return false; } public boolean supportsSubqueriesInIns() throws SQLException { notImplemented(); return false; } public ResultSet getVersionColumns(String a0, String a1, String a2) throws SQLException { notImplemented(); return null; } public boolean othersInsertsAreVisible(int a0) throws SQLException { notImplemented(); return false; } public boolean supportsANSI92IntermediateSQL() throws SQLException { notImplemented(); return false; } public boolean supportsCatalogsInTableDefinitions() throws SQLException { notImplemented(); return false; } public int getJDBCMinorVersion() throws SQLException { notImplemented(); return 0; } public String getStringFunctions() throws SQLException { notImplemented(); return null; } public boolean supportsDataDefinitionAndDataManipulationTransactions() throws SQLException { notImplemented(); return false; } public ResultSet getColumnPrivileges(String a0, String a1, String a2, String a3) throws SQLException { notImplemented(); return null; } public boolean dataDefinitionCausesTransactionCommit() throws SQLException { notImplemented(); return false; } public boolean supportsSubqueriesInExists() throws SQLException { notImplemented(); return false; } public int getMaxUserNameLength() throws SQLException { notImplemented(); return 0; } public int getMaxIndexLength() throws SQLException { notImplemented(); return 0; } public String getDriverName() throws SQLException { return myDriverName; } public boolean othersUpdatesAreVisible(int a0) throws SQLException { notImplemented(); return false; } public boolean supportsSavepoints() throws SQLException { notImplemented(); return false; } public boolean supportsMixedCaseIdentifiers() throws SQLException { notImplemented(); return false; } public String getCatalogSeparator() throws SQLException { notImplemented(); return null; } public boolean supportsSchemasInPrivilegeDefinitions() throws SQLException { notImplemented(); return false; } public int getMaxColumnsInGroupBy() throws SQLException { notImplemented(); return 0; } public boolean supportsDifferentTableCorrelationNames() throws SQLException { notImplemented(); return false; } public boolean supportsSubqueriesInQuantifieds() throws SQLException { notImplemented(); return false; } public boolean supportsResultSetType(int a0) throws SQLException { notImplemented(); return false; } public String getDatabaseProductVersion() throws SQLException { notImplemented(); return null; } public int getSQLStateType() throws SQLException { notImplemented(); return 0; } public boolean supportsSelectForUpdate() throws SQLException { notImplemented(); return false; } public int getMaxTableNameLength() throws SQLException { notImplemented(); return 0; } public boolean supportsUnion() throws SQLException { notImplemented(); return false; } public boolean supportsOpenStatementsAcrossCommit() throws SQLException { notImplemented(); return false; } public ResultSet getColumns(String a0, String a1, String a2, String a3) throws SQLException { notImplemented(); return null; } public boolean supportsAlterTableWithDropColumn() throws SQLException { notImplemented(); return false; } public boolean supportsStoredProcedures() throws SQLException { notImplemented(); return false; } public boolean othersDeletesAreVisible(int a0) throws SQLException { notImplemented(); return false; } public String getSchemaTerm() throws SQLException { notImplemented(); return null; } public int getDriverMinorVersion() { notImplemented(); return 0; } public int getMaxSchemaNameLength() throws SQLException { notImplemented(); return 0; } public boolean doesMaxRowSizeIncludeBlobs() throws SQLException { notImplemented(); return false; } public ResultSet getTablePrivileges(String a0, String a1, String a2) throws SQLException { notImplemented(); return null; } public boolean supportsSchemasInDataManipulation() throws SQLException { notImplemented(); return false; } public int getMaxCursorNameLength() throws SQLException { notImplemented(); return 0; } public boolean supportsAlterTableWithAddColumn() throws SQLException { notImplemented(); return false; } public boolean supportsOpenStatementsAcrossRollback() throws SQLException { notImplemented(); return false; } public int getMaxColumnNameLength() throws SQLException { notImplemented(); return 0; } public boolean ownInsertsAreVisible(int a0) throws SQLException { notImplemented(); return false; } public boolean supportsGroupBy() throws SQLException { notImplemented(); return false; } public boolean supportsConvert(int a0, int a1) throws SQLException { notImplemented(); return false; } public boolean supportsConvert() throws SQLException { notImplemented(); return false; } public boolean supportsCorrelatedSubqueries() throws SQLException { notImplemented(); return false; } public String getTimeDateFunctions() throws SQLException { notImplemented(); return null; } public boolean supportsSchemasInTableDefinitions() throws SQLException { notImplemented(); return false; } public boolean supportsCatalogsInProcedureCalls() throws SQLException { notImplemented(); return false; } public boolean allTablesAreSelectable() throws SQLException { notImplemented(); return false; } public boolean supportsMinimumSQLGrammar() throws SQLException { notImplemented(); return false; } public boolean ownUpdatesAreVisible(int a0) throws SQLException { notImplemented(); return false; } public ResultSet getProcedureColumns(String a0, String a1, String a2, String a3) throws SQLException { notImplemented(); return null; } } Index: CommonMockConnection.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/jdk/common/com/mockobjects/sql/CommonMockConnection.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- CommonMockConnection.java 28 Jun 2002 17:35:39 -0000 1.1 +++ CommonMockConnection.java 8 Jul 2002 18:33:58 -0000 1.2 @@ -17,6 +17,7 @@ private ExpectationCounter myCreateStatementCalls = new ExpectationCounter("CommonMockConnection.createStatement"); private ExpectationValue myAutoCommit = new ExpectationValue("CommonMockConnection.setAutoCommit"); private Statement myStatement; + private DatabaseMetaData myMetaData; private boolean myIsClosed; private SQLException myIsClosedException; @@ -54,6 +55,10 @@ myStatementException = exception; } + public void setupMetaData(DatabaseMetaData metaData) { + myMetaData = metaData; + } + public void clearWarnings() throws SQLException { notImplemented(); } @@ -99,8 +104,7 @@ public DatabaseMetaData getMetaData() throws SQLException { - notImplemented(); - return null; + return myMetaData; } public int getTransactionIsolation() throws SQLException { @@ -207,4 +211,4 @@ throw myStatementException; } } -} \ No newline at end of file +} |
From: Jeff M. <cus...@us...> - 2002-07-08 18:31:31
|
Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/common/com/mockobjects/io In directory usw-pr-cvs1:/tmp/cvs-serv12218/src/jdk/common/com/mockobjects/io Modified Files: MockOutputStream.java Log Message: Tidy up import statements Index: MockOutputStream.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/jdk/common/com/mockobjects/io/MockOutputStream.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- MockOutputStream.java 8 Jul 2002 00:12:29 -0000 1.2 +++ MockOutputStream.java 8 Jul 2002 18:31:29 -0000 1.3 @@ -1,14 +1,17 @@ package com.mockobjects.io; -import java.io.*; -import junit.framework.*; - -import com.mockobjects.*; +import com.mockobjects.ExpectationCounter; +import com.mockobjects.ExpectationValue; +import com.mockobjects.Verifiable; import com.mockobjects.util.Verifier; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.OutputStream; + public class MockOutputStream extends OutputStream implements Verifiable { private ExpectationValue myWriteWasCalled = new ExpectationValue("MockOutputStream.writeWasCalled"); - private ExpectationCounter myCloseCalls= new ExpectationCounter("MockOutputStream.close()"); + private ExpectationCounter myCloseCalls = new ExpectationCounter("MockOutputStream.close()"); private ByteArrayOutputStream myBuffer = new ByteArrayOutputStream(); private boolean shouldThrowException = false; @@ -34,7 +37,7 @@ public byte[] getContentsAsByteArray() { return myBuffer.toByteArray(); } - + public void setExpectedCloseCalls(int closeCall) { myCloseCalls.setExpected(closeCall); } @@ -53,7 +56,7 @@ public void write(int b) throws IOException { myWriteWasCalled.setActual(true); - if (shouldThrowException) { + if(shouldThrowException) { throw new IOException("Test IOException generated by request"); } myBuffer.write(b); |
From: Jeff M. <cus...@us...> - 2002-07-08 18:30:42
|
Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/common/com/mockobjects/sql In directory usw-pr-cvs1:/tmp/cvs-serv11808/src/jdk/common/com/mockobjects/sql Modified Files: CommonMockStatement.java Log Message: Patch from Francois Beausoleil <fra...@ya...> to allow connection to be set Index: CommonMockStatement.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/jdk/common/com/mockobjects/sql/CommonMockStatement.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- CommonMockStatement.java 28 Jun 2002 17:35:39 -0000 1.1 +++ CommonMockStatement.java 8 Jul 2002 18:30:37 -0000 1.2 @@ -16,6 +16,8 @@ private int myUpdateCount = 0; private SQLException myExecuteException = null; + private Connection myConnection = null; + public void setExpectedExecuteCalls(int callCount) { myExecuteCalls.setExpected(callCount); } @@ -32,6 +34,10 @@ myResultSets.addObjectToReturn(aResultSet); } + public void setupConnection(Connection conn) { + myConnection = conn; + } + public void setupThrowExceptionOnExecute(SQLException exception) { myExecuteException = exception; } @@ -42,7 +48,7 @@ protected void innerExecute() throws SQLException { myExecuteCalls.inc(); - if(null != myExecuteException) { + if (null != myExecuteException) { throw myExecuteException; } } @@ -59,7 +65,7 @@ public ResultSet executeQuery(String sql) throws SQLException { myQueryString.setActual(sql); innerExecute(); - return (ResultSet) myResultSets.nextReturnObject(); + return (ResultSet)myResultSets.nextReturnObject(); } public int executeUpdate(String sql) throws SQLException { @@ -172,8 +178,6 @@ } public Connection getConnection() throws SQLException { - notImplemented(); - return null; + return myConnection; } - } |
From: Scott L. <sl...@sl...> - 2002-07-08 17:40:00
|
Jeff Martin wrote: > Scott could you do me a favor and change this to use the MockObject > notImplemented() method rather than UnsupportedOperationException then > I'll happily commit this. > Done, attached. -- Scott Lamb |
From: Jeff M. <je...@mk...> - 2002-07-08 09:37:37
|
Scott could you do me a favor and change this to use the MockObject notImplemented() method rather than UnsupportedOperationException then I'll happily commit this. On Tue, 2002-07-02 at 17:22, Scott Lamb wrote: > First, thanks Jeff for adding the SQL stuff for JDK 1.4. I know I said I > would look at that...argh. Thanks. > > The attached patch adds a MockDatabaseMetaData class and setup in > CommonMockConnection to attach it. I'm testing some code that determines > what SQL to give to the database based on the driver name. That's the > only method implemented in the class so far. > > -- > Scott Lamb > ---- > > diff -Nru --exclude=CVS mockobjects-java.clean/src/jdk/common/com/mockobjects/sql/CommonMockConnection.java mockobjects-java/src/jdk/common/com/mockobjects/sql/CommonMockConnection.java > --- mockobjects-java.clean/src/jdk/common/com/mockobjects/sql/CommonMockConnection.java Fri Jun 28 12:35:39 2002 > +++ mockobjects-java/src/jdk/common/com/mockobjects/sql/CommonMockConnection.java Tue Jul 2 01:22:25 2002 > @@ -17,6 +17,7 @@ > private ExpectationCounter myCreateStatementCalls = new ExpectationCounter("CommonMockConnection.createStatement"); > private ExpectationValue myAutoCommit = new ExpectationValue("CommonMockConnection.setAutoCommit"); > private Statement myStatement; > + private DatabaseMetaData myMetaData; > > private boolean myIsClosed; > private SQLException myIsClosedException; > @@ -54,6 +55,10 @@ > myStatementException = exception; > } > > + public void setupMetaData(DatabaseMetaData metaData) { > + myMetaData = metaData; > + } > + > public void clearWarnings() throws SQLException { > notImplemented(); > } > @@ -99,8 +104,7 @@ > > public DatabaseMetaData getMetaData() > throws SQLException { > - notImplemented(); > - return null; > + return myMetaData; > } > > public int getTransactionIsolation() throws SQLException { > @@ -207,4 +211,4 @@ > throw myStatementException; > } > } > -} > \ No newline at end of file > +} > diff -Nru --exclude=CVS mockobjects-java.clean/src/jdk/common/com/mockobjects/sql/MockDatabaseMetaData.java mockobjects-java/src/jdk/common/com/mockobjects/sql/MockDatabaseMetaData.java > --- mockobjects-java.clean/src/jdk/common/com/mockobjects/sql/MockDatabaseMetaData.java Wed Dec 31 18:00:00 1969 > +++ mockobjects-java/src/jdk/common/com/mockobjects/sql/MockDatabaseMetaData.java Tue Jul 2 01:28:51 2002 > @@ -0,0 +1,701 @@ > +package com.mockobjects.sql; > + > +import java.sql.Connection; > +import java.sql.DatabaseMetaData; > +import java.sql.ResultSet; > +import java.sql.SQLException; > + > +public class MockDatabaseMetaData implements DatabaseMetaData { > + > + private String myDriverName; > + > + public void setupDriverName(String driverName) { > + myDriverName = driverName; > + } > + > + public boolean supportsANSI92FullSQL() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsANSI92EntryLevelSQL() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsStatementPooling() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsMixedCaseQuotedIdentifiers() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsSubqueriesInComparisons() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsMultipleOpenResults() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public ResultSet getProcedures(String a0, String a1, String a2) > + throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public String getSystemFunctions() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsUnionAll() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getDatabaseMinorVersion() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsResultSetConcurrency(int a0, int a1) > + throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public ResultSet getCatalogs() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean usesLocalFilePerTable() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsResultSetHoldability(int a0) throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public ResultSet getIndexInfo(String a0, String a1, String a2, boolean a3, > + boolean a4) throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsExpressionsInOrderBy() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public String getDatabaseProductName() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsIntegrityEnhancementFacility() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getMaxBinaryLiteralLength() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsLimitedOuterJoins() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean storesUpperCaseQuotedIdentifiers() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsMultipleResultSets() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsFullOuterJoins() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean ownDeletesAreVisible(int a0) throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public ResultSet getPrimaryKeys(String a0, String a1, String a2) > + throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getMaxColumnsInIndex() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public ResultSet getExportedKeys(String a0, String a1, String a2) > + throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean locatorsUpdateCopy() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public ResultSet getTables(String a0, String a1, String a2, String[] a3) > + throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getMaxColumnsInTable() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public String getDriverVersion() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsBatchUpdates() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getMaxTablesInSelect() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public Connection getConnection() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsNonNullableColumns() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getMaxColumnsInOrderBy() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsOrderByUnrelated() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsCatalogsInIndexDefinitions() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getJDBCMajorVersion() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public String getExtraNameCharacters() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean nullsAreSortedLow() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public ResultSet getAttributes(String a0, String a1, String a2, String a3) > + throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean updatesAreDetected(int a0) throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsDataManipulationTransactionsOnly() > + throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getMaxConnections() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsOpenCursorsAcrossCommit() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public ResultSet getUDTs(String a0, String a1, String a2, int[] a3) > + throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public ResultSet getTableTypes() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getResultSetHoldability() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean insertsAreDetected(int a0) throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public ResultSet getSchemas() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getMaxCatalogNameLength() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getDefaultTransactionIsolation() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public String getURL() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean usesLocalFiles() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsExtendedSQLGrammar() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsSchemasInProcedureCalls() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public ResultSet getSuperTypes(String a0, String a1, String a2) > + throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getMaxStatements() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getMaxCharLiteralLength() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsTransactionIsolationLevel(int a0) > + throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsTableCorrelationNames() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public String getSearchStringEscape() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean deletesAreDetected(int a0) throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsColumnAliasing() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean isReadOnly() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsLikeEscapeClause() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean storesLowerCaseIdentifiers() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean storesMixedCaseQuotedIdentifiers() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsMultipleTransactions() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public String getProcedureTerm() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getMaxStatementLength() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean nullPlusNonNullIsNull() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsGroupByBeyondSelect() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getDriverMajorVersion() { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsCoreSQLGrammar() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsPositionedUpdate() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsCatalogsInPrivilegeDefinitions() > + throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsGetGeneratedKeys() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public ResultSet getImportedKeys(String a0, String a1, String a2) > + throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public String getIdentifierQuoteString() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public ResultSet getSuperTables(String a0, String a1, String a2) > + throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean nullsAreSortedHigh() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public String getNumericFunctions() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsSchemasInIndexDefinitions() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsGroupByUnrelated() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public ResultSet getTypeInfo() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsTransactions() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsPositionedDelete() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getMaxProcedureNameLength() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsOuterJoins() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsOpenCursorsAcrossRollback() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean storesMixedCaseIdentifiers() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getDatabaseMajorVersion() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getMaxColumnsInSelect() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean dataDefinitionIgnoredInTransactions() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public String getCatalogTerm() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getMaxRowSize() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public String getUserName() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean allProceduresAreCallable() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean nullsAreSortedAtStart() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean storesUpperCaseIdentifiers() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsCatalogsInDataManipulation() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public ResultSet getBestRowIdentifier(String a0, String a1, String a2, > + int a3, boolean a4) throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean storesLowerCaseQuotedIdentifiers() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean nullsAreSortedAtEnd() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public String getSQLKeywords() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public ResultSet getCrossReference(String a0, String a1, String a2, > + String a3, String a4, String a5) throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean isCatalogAtStart() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsNamedParameters() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsSubqueriesInIns() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public ResultSet getVersionColumns(String a0, String a1, String a2) > + throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean othersInsertsAreVisible(int a0) throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsANSI92IntermediateSQL() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsCatalogsInTableDefinitions() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getJDBCMinorVersion() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public String getStringFunctions() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsDataDefinitionAndDataManipulationTransactions() > + throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public ResultSet getColumnPrivileges(String a0, String a1, String a2, > + String a3) throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean dataDefinitionCausesTransactionCommit() > + throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsSubqueriesInExists() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getMaxUserNameLength() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getMaxIndexLength() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public String getDriverName() throws SQLException { > + return myDriverName; > + } > + > + public boolean othersUpdatesAreVisible(int a0) throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsSavepoints() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsMixedCaseIdentifiers() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public String getCatalogSeparator() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsSchemasInPrivilegeDefinitions() > + throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getMaxColumnsInGroupBy() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsDifferentTableCorrelationNames() > + throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsSubqueriesInQuantifieds() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsResultSetType(int a0) throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public String getDatabaseProductVersion() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getSQLStateType() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsSelectForUpdate() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getMaxTableNameLength() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsUnion() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsOpenStatementsAcrossCommit() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public ResultSet getColumns(String a0, String a1, String a2, String a3) > + throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsAlterTableWithDropColumn() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsStoredProcedures() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean othersDeletesAreVisible(int a0) throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public String getSchemaTerm() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getDriverMinorVersion() { > + throw new UnsupportedOperationException(); > + } > + > + public int getMaxSchemaNameLength() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean doesMaxRowSizeIncludeBlobs() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public ResultSet getTablePrivileges(String a0, String a1, String a2) > + throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsSchemasInDataManipulation() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getMaxCursorNameLength() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsAlterTableWithAddColumn() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsOpenStatementsAcrossRollback() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public int getMaxColumnNameLength() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean ownInsertsAreVisible(int a0) throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsGroupBy() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsConvert(int a0, int a1) throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsConvert() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsCorrelatedSubqueries() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public String getTimeDateFunctions() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsSchemasInTableDefinitions() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsCatalogsInProcedureCalls() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean allTablesAreSelectable() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean supportsMinimumSQLGrammar() throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public boolean ownUpdatesAreVisible(int a0) throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > + public ResultSet getProcedureColumns(String a0, String a1, String a2, > + String a3) throws SQLException { > + throw new UnsupportedOperationException(); > + } > + > +} -- jeff martin information technologist mkodo limited mobile: 44 (0) 78 5547 8331 phone: 44 (0) 20 2226 4545 email: je...@mk... www.mkodo.com |
From: Jeff M. <cus...@us...> - 2002-07-08 09:24:27
|
Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/1.3/com/mockobjects/sql In directory usw-pr-cvs1:/tmp/cvs-serv9730/src/jdk/1.3/com/mockobjects/sql Added Files: MockStatement.java Log Message: Added 1.3 version of Statement --- NEW FILE: MockStatement.java --- package com.mockobjects.sql; public class MockStatement extends CommonMockStatement { } |
From: Steve F. <sm...@us...> - 2002-07-08 00:12:33
|
Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/common/com/mockobjects/io In directory usw-pr-cvs1:/tmp/cvs-serv26829/src/jdk/common/com/mockobjects/io Modified Files: MockOutputStream.java Log Message: Added getContentsAsByteArray In response to bug 546661 Index: MockOutputStream.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/jdk/common/com/mockobjects/io/MockOutputStream.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- MockOutputStream.java 13 Apr 2002 15:08:23 -0000 1.1 +++ MockOutputStream.java 8 Jul 2002 00:12:29 -0000 1.2 @@ -28,6 +28,13 @@ return myBuffer.toString(); } + /** + * Added in response to Bug report 546661. + */ + public byte[] getContentsAsByteArray() { + return myBuffer.toByteArray(); + } + public void setExpectedCloseCalls(int closeCall) { myCloseCalls.setExpected(closeCall); } |
From: Scott L. <sl...@sl...> - 2002-07-02 16:25:23
|
First, thanks Jeff for adding the SQL stuff for JDK 1.4. I know I said I would look at that...argh. Thanks. The attached patch adds a MockDatabaseMetaData class and setup in CommonMockConnection to attach it. I'm testing some code that determines what SQL to give to the database based on the driver name. That's the only method implemented in the class so far. -- Scott Lamb |
From: <fra...@ya...> - 2002-06-30 04:44:12
|
Hello everyone, This unidiff patch allows one to setup the connection and result set objects that the mock should return. A small and simple patch :) Hope that helps ! Francois Beausoleil Index: src/jdk/common/com/mockobjects/sql/CommonMockStatement.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/jdk/common/com/mockobjects/sql/CommonMockStatement.java,v retrieving revision 1.1 diff -u -r1.1 CommonMockStatement.java --- src/jdk/common/com/mockobjects/sql/CommonMockStatement.java 28 Jun 2002 17:35:39 -0000 1.1 +++ src/jdk/common/com/mockobjects/sql/CommonMockStatement.java 30 Jun 2002 04:43:18 -0000 @@ -16,6 +16,8 @@ private int myUpdateCount = 0; private SQLException myExecuteException = null; + private Connection myConnection = null; + public void setExpectedExecuteCalls(int callCount) { myExecuteCalls.setExpected(callCount); } @@ -32,6 +34,10 @@ myResultSets.addObjectToReturn(aResultSet); } + public void setupConnection(Connection conn) { + myConnection = conn; + } + public void setupThrowExceptionOnExecute(SQLException exception) { myExecuteException = exception; } @@ -42,7 +48,7 @@ protected void innerExecute() throws SQLException { myExecuteCalls.inc(); - if(null != myExecuteException) { + if (null != myExecuteException) { throw myExecuteException; } } @@ -59,7 +65,7 @@ public ResultSet executeQuery(String sql) throws SQLException { myQueryString.setActual(sql); innerExecute(); - return (ResultSet) myResultSets.nextReturnObject(); + return (ResultSet)myResultSets.nextReturnObject(); } public int executeUpdate(String sql) throws SQLException { @@ -172,8 +178,6 @@ } public Connection getConnection() throws SQLException { - notImplemented(); - return null; + return myConnection; } - } ===== Francois Beausoleil Java Gui Builder - http://jgb.sourceforge.net/ __________________________________________________________ Lèche-vitrine ou lèche-écran ? magasinage.yahoo.ca |
Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/common/com/mockobjects/sql In directory usw-pr-cvs1:/tmp/cvs-serv21660/src/jdk/common/com/mockobjects/sql Added Files: CommonMockConnection.java CommonMockMultiRowResultSet.java CommonMockPreparedStatement.java CommonMockSingleRowResultSet.java CommonMockStatement.java Removed Files: MockConnection.java MockMultiRowResultSet.java MockPreparedStatement.java MockResultSetMetaData.java MockSingleRowResultSet.java MockStatement.java Log Message: Added abstraction layer to sql mocks to allow build against jdk1.4 --- NEW FILE: CommonMockConnection.java --- package com.mockobjects.sql; import com.mockobjects.*; import java.sql.*; import java.util.Map; public abstract class CommonMockConnection extends MockObject implements Connection { private ExpectationCounter myCommitCalls = new ExpectationCounter("CommonMockConnection.commit"); private ExpectationCounter myRollbackCalls = new ExpectationCounter("CommonMockConnection.rollback"); private ExpectationCounter myCloseCalls = new ExpectationCounter("CommonMockConnection.close"); private ExpectationCollection myPreparedStatementStrings = new ExpectationList("CommonMockConnection.preparedStatementString"); private ReturnObjectList myPreparedStatements = new ReturnObjectList("statements"); private SQLException myStatementException = null; private ExpectationCounter myCreateStatementCalls = new ExpectationCounter("CommonMockConnection.createStatement"); private ExpectationValue myAutoCommit = new ExpectationValue("CommonMockConnection.setAutoCommit"); private Statement myStatement; private boolean myIsClosed; private SQLException myIsClosedException; private SQLException myCloseException; public void setExpectedCloseCalls(int callCount) { myCloseCalls.setExpected(callCount); } public void setExpectedCommitCalls(int callCount) { myCommitCalls.setExpected(callCount); } public void setExpectedCreateStatementCalls(int calls) { myCreateStatementCalls.setExpected(calls); } public void addExpectedPreparedStatementString(String sql) { myPreparedStatementStrings.addExpected(sql); } public void setExpectedRollbackCalls(int callCount) { myRollbackCalls.setExpected(callCount); } public void setupAddPreparedStatement(PreparedStatement prepared) { myPreparedStatements.addObjectToReturn(prepared); } public void setupStatement(Statement statement) { myStatement = statement; } public void setupThrowExceptionOnPrepareOrCreate(SQLException exception) { myStatementException = exception; } public void clearWarnings() throws SQLException { notImplemented(); } public void setupCloseException(SQLException aCloseException) { myCloseException = aCloseException; } public void close() throws SQLException { if(myCloseException != null) { throw myCloseException; } myCloseCalls.inc(); } public void commit() throws SQLException { myCommitCalls.inc(); } public Statement createStatement() throws SQLException { myCreateStatementCalls.inc(); throwStatementExceptionIfAny(); return myStatement; } public Statement createStatement( int resultSetType, int resultSetConcurrency) throws SQLException { notImplemented(); return null; } public boolean getAutoCommit() throws SQLException { notImplemented(); return false; } public String getCatalog() throws SQLException { notImplemented(); return null; } public DatabaseMetaData getMetaData() throws SQLException { notImplemented(); return null; } public int getTransactionIsolation() throws SQLException { notImplemented(); return 0; } public Map getTypeMap() throws SQLException { notImplemented(); return null; } public SQLWarning getWarnings() throws SQLException { notImplemented(); return null; } public void setupIsClosedException(SQLException aIsClosedException) { myIsClosedException = aIsClosedException; } public void setupIsClose(boolean aIsClosed) { myIsClosed = aIsClosed; } public boolean isClosed() throws SQLException { if(myIsClosedException != null) { throw myIsClosedException; } return myIsClosed; } public boolean isReadOnly() throws SQLException { notImplemented(); return false; } public String nativeSQL(String sql) throws SQLException { notImplemented(); return null; } public CallableStatement prepareCall(String sql) throws SQLException { notImplemented(); return null; } public CallableStatement prepareCall( String sql, int resultSetType, int resultSetConcurrency) throws SQLException { notImplemented(); return null; } public PreparedStatement prepareStatement(String sql) throws SQLException { myPreparedStatementStrings.addActual(sql); throwStatementExceptionIfAny(); return (PreparedStatement) myPreparedStatements.nextReturnObject(); } public PreparedStatement prepareStatement( String sql, int resultSetType, int resultSetConcurrency) throws SQLException { notImplemented(); return null; } public void rollback() throws SQLException { myRollbackCalls.inc(); } public void setExpectedAutoCommit(boolean autoCommit) { myAutoCommit.setExpected(autoCommit); } public void setAutoCommit(boolean autoCommit) throws SQLException { myAutoCommit.setActual(autoCommit); } public void setCatalog(String catalog) throws SQLException { notImplemented(); } public void setReadOnly(boolean readOnly) throws SQLException { notImplemented(); } public void setTransactionIsolation(int level) throws SQLException { notImplemented(); } public void setTypeMap(Map map) throws SQLException { notImplemented(); } private void throwStatementExceptionIfAny() throws SQLException { if(null != myStatementException) { throw myStatementException; } } } --- NEW FILE: CommonMockMultiRowResultSet.java --- package com.mockobjects.sql; import java.sql.*; import java.sql.Date; import java.util.*; import java.math.BigDecimal; import java.io.InputStream; import java.io.Reader; import junit.framework.Assert; import junit.framework.AssertionFailedError; import com.mockobjects.*; /** * This is a simple implementation of a MockResultSet. * It returns values for multiple rows. */ public abstract class CommonMockMultiRowResultSet extends MockResultSet { private Object[][] myRows = new Object[0][0]; private String[] myColumnNames; private int myRowOffset = -1; private SQLException myGetException = null; public CommonMockMultiRowResultSet() { super(); } public void setupColumnNames(String[] columnNames) { myColumnNames = columnNames; } public void setupRows(Object[][] rows) { myRows = rows; } public void setupThrowExceptionOnGet(SQLException exception) { myGetException = exception; } public Object getObject(int columnIndex) throws SQLException { throwGetExceptionIfAny(); return myRows[myRowOffset][columnIndex - 1]; } public Object getObject(String columnName) throws SQLException { throwGetExceptionIfAny(); return getObject(findIndexForColumnName(columnName)); } public boolean next() throws SQLException { myNextCalls.inc(); if (myRowOffset + 1 >= myRows.length) { return false; } myRowOffset++; return true; } public int getRow() throws SQLException { return myRowOffset + 1; } private void throwGetExceptionIfAny() throws SQLException { if (null != myGetException) { throw myGetException; } } private int findIndexForColumnName(String columnName) throws SQLException { for (int i = 0; i < myColumnNames.length; ++i) { if (myColumnNames[i].equalsIgnoreCase(columnName)) { return i + 1; } } throw new SQLException("Column name not found"); } } --- NEW FILE: CommonMockPreparedStatement.java --- package com.mockobjects.sql; import java.sql.*; import java.util.Calendar; import java.io.Reader; import java.math.BigDecimal; import com.mockobjects.*; public abstract class CommonMockPreparedStatement extends CommonMockStatement implements PreparedStatement { private ExpectationSet mySetParameters = new ExpectationSet("CommonMockPreparedStatement.setParameters"); private ExpectationCounter myClearParametersCalls = new ExpectationCounter("CommonMockPreparedStatement.clearParameters() calls"); private ExpectationSet myTargetSQLTypes = new ExpectationSet("target sql types"); public void addExpectedSetParameter(int parameterIndex, int intValue) { addExpectedSetParameter(parameterIndex, new Integer(intValue)); } public void addExpectedTargetSQLType(int aTargetSQLType){ myTargetSQLTypes.addExpected(new Integer(aTargetSQLType)); } public void addExpectedSetParameter(int parameterIndex, Object parameterValue) { mySetParameters.addExpected(new MapEntry(new Integer(parameterIndex), parameterValue)); } public void addExpectedSetParameters(Object[] parameters) { for (int i = 0; i < parameters.length; ++i) { addExpectedSetParameter(i + 1, parameters[i]); } } public void clearParameters() throws SQLException { myClearParametersCalls.inc(); } public boolean execute() throws SQLException { innerExecute(); return false; } public void setExpectedClearParametersCalls(int callCount) { myClearParametersCalls.setExpected(callCount); } public void setExpectingNoSetParameters() { mySetParameters.setExpectNothing(); } public ResultSet executeQuery() throws SQLException { return executeQuery(""); } public int executeUpdate() throws SQLException { return executeUpdate(""); } public void setInt(int parameterIndex, int x) throws SQLException { setObject(parameterIndex, new Integer(x)); } public void setString(int parameterIndex, String x) throws SQLException { setObject(parameterIndex, x); } public void setTimestamp(int param, Timestamp timestamp) throws SQLException { setObject(param, timestamp); } public void setClob(int param, Clob clob) throws SQLException { setObject(param, clob); } public void setLong(int param, long aLong) throws SQLException { setObject(param, new Long(aLong)); } public void addBatch() throws SQLException { notImplemented(); } public void setNull(int param, int param1) throws SQLException { setObject(param, null); } public void setArray(int param, Array array) throws SQLException { setObject(param, array); } public void setShort(int param, short aShort) throws SQLException { setObject(param, new Short(aShort)); } public void setTime(int param, Time time, Calendar calendar) throws SQLException { setObject(param, time); } public void setObject(int param, Object anObject, int targetSqlType, int scale) throws SQLException { notImplemented(); } public void setObject(int param, Object anObject, int aTargetSQLType) throws SQLException { setObject(param, anObject); myTargetSQLTypes.addActual(new Integer(aTargetSQLType)); } public void setRef(int param, Ref ref) throws SQLException { setObject(param, ref); } public void setDate(int param, Date date) throws SQLException { setObject(param, date); } public void setFloat(int param, float aFloat) throws SQLException { setObject(param, new Float(aFloat)); } public void setBlob(int param, Blob blob) throws SQLException { setObject(param, blob); } public void setCharacterStream(int param, Reader reader, int length) throws SQLException { notImplemented(); } public void setAsciiStream(int param, java.io.InputStream inputStream, int length) throws SQLException { notImplemented(); } public void setDate(int param, Date date, Calendar calendar) throws SQLException { setDate(param, date); } public void setBinaryStream(int param, java.io.InputStream inputStream, int length) throws SQLException { notImplemented(); } public void setUnicodeStream(int param, java.io.InputStream inputStream, int length) throws SQLException { notImplemented(); } public void setBytes(int param, byte[] values) throws SQLException { setObject(param, values); } public void setObject(int param, Object anObject) throws SQLException { mySetParameters.addActual(new MapEntry(new Integer(param), anObject)); } public void setByte(int param, byte aByte) throws SQLException { setObject(param, new Byte(aByte)); } public void setDouble(int param, double aDouble) throws SQLException { setObject(param, new Double(aDouble)); } public ResultSetMetaData getMetaData() throws SQLException { notImplemented(); return null; } public void setTimestamp(int param, Timestamp timestamp, Calendar calendar) throws SQLException { notImplemented(); } public void setTime(int param, Time time) throws SQLException { setObject(param, time); } public void setBoolean(int param, boolean aBoolean) throws SQLException { setObject(param, new Boolean(aBoolean)); } public void setNull(int param, int param1, String typeName) throws SQLException { notImplemented(); } public void setBigDecimal(int param, BigDecimal bigDecimal) throws SQLException { setObject(param, bigDecimal); } } --- NEW FILE: CommonMockSingleRowResultSet.java --- package com.mockobjects.sql; import java.sql.SQLException; import java.util.*; /** * This is a simple implementation of a MockResultSet. * It verifies that the values fed to it have been retrieved. * These can be found by either column index or column name. * For basic java types (e.g. int, boolean), insert an instance of * the appropriate object (e.g. Integer, Boolean) * To force throwing a SQLException on a getter, set the corresponding value to be of type SQLException. */ public abstract class CommonMockSingleRowResultSet extends MockResultSet { private ExpectationSqlRow myRow = new ExpectationSqlRow("single row"); private int myNextCallCount = 0; public CommonMockSingleRowResultSet(Object[] values) { addExpectedIndexedValues(values); } public CommonMockSingleRowResultSet(){ super(); } public CommonMockSingleRowResultSet(String[] names, Object[] values) { addExpectedNamedValues(names, values); } public CommonMockSingleRowResultSet(Map map) { addExpectedNamedValues(map); } public void addExpectedIndexedValues(Object[] values) { myRow.addExpectedIndexedValues(values); } public void addExpectedNamedValues(String[] names, Object[] values) { myRow.addExpectedNamedValues(names, values); } public void addExpectedNamedValues(Map map) { myRow.addExpectedNamedValues(map); } public boolean next() throws SQLException { myNextCalls.inc(); myNextCallCount++; return myNextCallCount == 1; } public int getRow() throws SQLException { return myNextCallCount; } public Object getObject(int columnIndex) throws SQLException { return myRow.get(columnIndex); } public Object getObject(String columnName) throws SQLException { return myRow.get(columnName); } } --- NEW FILE: CommonMockStatement.java --- package com.mockobjects.sql; import com.mockobjects.ExpectationCounter; import com.mockobjects.ExpectationValue; import com.mockobjects.MockObject; import com.mockobjects.ReturnObjectList; import java.sql.*; public abstract class CommonMockStatement extends MockObject implements Statement { protected ExpectationCounter myCloseCalls = new ExpectationCounter("CommonMockStatement.closeCalls"); protected ExpectationCounter myExecuteCalls = new ExpectationCounter("CommonMockStatement.executeCalls"); protected ExpectationValue myQueryString = new ExpectationValue("CommonMockStatement.queryString"); protected ReturnObjectList myResultSets = new ReturnObjectList("result set"); private int myUpdateCount = 0; private SQLException myExecuteException = null; public void setExpectedExecuteCalls(int callCount) { myExecuteCalls.setExpected(callCount); } public void setExpectedQueryString(String queryString) { myQueryString.setExpected(queryString); } public void setExpectedCloseCalls(int callCount) { myCloseCalls.setExpected(callCount); } public void addResultSet(MockResultSet aResultSet) { myResultSets.addObjectToReturn(aResultSet); } public void setupThrowExceptionOnExecute(SQLException exception) { myExecuteException = exception; } public void setupUpdateCount(int updateCount) { myUpdateCount = updateCount; } protected void innerExecute() throws SQLException { myExecuteCalls.inc(); if(null != myExecuteException) { throw myExecuteException; } } public void close() throws SQLException { myCloseCalls.inc(); } public boolean execute(String sql) throws SQLException { notImplemented(); return true; } public ResultSet executeQuery(String sql) throws SQLException { myQueryString.setActual(sql); innerExecute(); return (ResultSet) myResultSets.nextReturnObject(); } public int executeUpdate(String sql) throws SQLException { myQueryString.setActual(sql); innerExecute(); return myUpdateCount; } public int getMaxFieldSize() throws SQLException { notImplemented(); return 0; } public void setMaxFieldSize(int max) throws SQLException { notImplemented(); } public int getMaxRows() throws SQLException { notImplemented(); return 0; } public void setMaxRows(int max) throws SQLException { notImplemented(); } public void setEscapeProcessing(boolean enable) throws SQLException { notImplemented(); } public int getQueryTimeout() throws SQLException { notImplemented(); return 0; } public void setQueryTimeout(int seconds) throws SQLException { notImplemented(); } public void cancel() throws SQLException { notImplemented(); } public SQLWarning getWarnings() throws SQLException { notImplemented(); return null; } public void clearWarnings() throws SQLException { notImplemented(); } public void setCursorName(String name) throws SQLException { notImplemented(); } public ResultSet getResultSet() throws SQLException { notImplemented(); return null; } public int getUpdateCount() throws SQLException { return myUpdateCount; } public boolean getMoreResults() throws SQLException { notImplemented(); return false; } public void setFetchDirection(int direction) throws SQLException { notImplemented(); } public int getFetchDirection() throws SQLException { notImplemented(); return 0; } public void setFetchSize(int rows) throws SQLException { notImplemented(); } public int getFetchSize() throws SQLException { notImplemented(); return 0; } public int getResultSetConcurrency() throws SQLException { notImplemented(); return 0; } public int getResultSetType() throws SQLException { notImplemented(); return 0; } public void addBatch(String sql) throws SQLException { notImplemented(); } public void clearBatch() throws SQLException { notImplemented(); } public int[] executeBatch() throws SQLException { notImplemented(); return null; } public Connection getConnection() throws SQLException { notImplemented(); return null; } } --- MockConnection.java DELETED --- --- MockMultiRowResultSet.java DELETED --- --- MockPreparedStatement.java DELETED --- --- MockResultSetMetaData.java DELETED --- --- MockSingleRowResultSet.java DELETED --- --- MockStatement.java DELETED --- |
From: Jeff M. <cus...@us...> - 2002-06-28 17:35:42
|
Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/1.4/com/mockobjects/sql In directory usw-pr-cvs1:/tmp/cvs-serv21660/src/jdk/1.4/com/mockobjects/sql Added Files: MockConnection.java MockMultiRowResultSet.java MockPreparedStatement.java MockResultSetMetaData.java MockSingleRowResultSet.java MockStatement.java Log Message: Added abstraction layer to sql mocks to allow build against jdk1.4 --- NEW FILE: MockConnection.java --- package com.mockobjects.sql; import java.sql.*; public class MockConnection extends CommonMockConnection{ public void setHoldability(int holdability) throws SQLException { notImplemented(); } public int getHoldability() throws SQLException { notImplemented(); return 0; } public Savepoint setSavepoint() throws SQLException { notImplemented(); return null; } public Savepoint setSavepoint(String name) throws SQLException { notImplemented(); return null; } public void rollback(Savepoint savepoint) throws SQLException { notImplemented(); } public void releaseSavepoint(Savepoint savepoint) throws SQLException { notImplemented(); } public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { notImplemented(); return null; } public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { notImplemented(); return null; } public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { notImplemented(); return null; } public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException { notImplemented(); return null; } public PreparedStatement prepareStatement(String sql, int columnIndexes[]) throws SQLException { notImplemented(); return null; } public PreparedStatement prepareStatement(String sql, String columnNames[]) throws SQLException { notImplemented(); return null; } } --- NEW FILE: MockMultiRowResultSet.java --- package com.mockobjects.sql; import java.net.URL; import java.sql.*; import java.sql.SQLException; import java.sql.Ref; import java.sql.Blob; import java.sql.Clob; public class MockMultiRowResultSet extends CommonMockMultiRowResultSet{ public URL getURL(int columnIndex) throws SQLException { notImplemented(); return null; } public URL getURL(String columnName) throws SQLException { notImplemented(); return null; } public void updateRef(int columnIndex, Ref x) throws SQLException { notImplemented(); } public void updateRef(String columnName, Ref x) throws SQLException { notImplemented(); } public void updateBlob(int columnIndex, Blob x) throws SQLException { notImplemented(); } public void updateBlob(String columnName, Blob x) throws SQLException { notImplemented(); } public void updateClob(int columnIndex, Clob x) throws SQLException { notImplemented(); } public void updateClob(String columnName, Clob x) throws SQLException { notImplemented(); } public void updateArray(int columnIndex, Array x) throws SQLException { notImplemented(); } public void updateArray(String columnName, Array x) throws SQLException { notImplemented(); } } --- NEW FILE: MockPreparedStatement.java --- package com.mockobjects.sql; import java.sql.SQLException; import java.sql.ResultSet; import java.sql.ParameterMetaData; import java.net.URL; public class MockPreparedStatement extends CommonMockPreparedStatement { public boolean getMoreResults(int current) throws SQLException { notImplemented(); return false; } public void setURL(int parameterIndex, URL x) throws SQLException { notImplemented(); } public ResultSet getGeneratedKeys() throws SQLException { notImplemented(); return null; } public ParameterMetaData getParameterMetaData() throws SQLException { notImplemented(); return null; } public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException { notImplemented(); return 0; } public int executeUpdate(String sql, int columnIndexes[]) throws SQLException { notImplemented(); return 0; } public int executeUpdate(String sql, String columnNames[]) throws SQLException { notImplemented(); return 0; } public boolean execute(String sql, int autoGeneratedKeys) throws SQLException { notImplemented(); return false; } public boolean execute(String sql, int columnIndexes[]) throws SQLException { notImplemented(); return false; } public boolean execute(String sql, String columnNames[]) throws SQLException { notImplemented(); return false; } public int getResultSetHoldability() throws SQLException { notImplemented(); return 0; } } --- NEW FILE: MockResultSetMetaData.java --- package com.mockobjects.sql; import com.mockobjects.*; import java.sql.*; import java.sql.SQLException; import java.util.Vector; public class MockResultSetMetaData extends MockObject implements ResultSetMetaData { private ReturnObjectList myNames = new ReturnObjectList("column names"); private int myColumnCount; public void setupGetColumnCount(int aColumnCount){ myColumnCount = aColumnCount; } /** * @see ResultSetMetaData#getColumnCount() */ public int getColumnCount() throws SQLException { return myColumnCount; } /** * @see ResultSetMetaData#isAutoIncrement(int) */ public boolean isAutoIncrement(int arg0) throws SQLException { notImplemented(); return false; } /** * @see ResultSetMetaData#isCaseSensitive(int) */ public boolean isCaseSensitive(int arg0) throws SQLException { notImplemented(); return false; } /** * @see ResultSetMetaData#isSearchable(int) */ public boolean isSearchable(int arg0) throws SQLException { notImplemented(); return false; } /** * @see ResultSetMetaData#isCurrency(int) */ public boolean isCurrency(int arg0) throws SQLException { notImplemented(); return false; } /** * @see ResultSetMetaData#isNullable(int) */ public int isNullable(int arg0) throws SQLException { notImplemented(); return 0; } /** * @see ResultSetMetaData#isSigned(int) */ public boolean isSigned(int arg0) throws SQLException { notImplemented(); return false; } /** * @see ResultSetMetaData#getColumnDisplaySize(int) */ public int getColumnDisplaySize(int arg0) throws SQLException { notImplemented(); return 0; } /** * @see ResultSetMetaData#getColumnLabel(int) */ public String getColumnLabel(int arg0) throws SQLException { notImplemented(); return null; } public void setupAddColumnNames(String[] allNames) { if (allNames != null) { for (int i = 0; i < allNames.length; i++) { setupAddColumnName(allNames[i]); } } } public void setupAddColumnName(String aName){ this.myNames.addObjectToReturn(aName); } /** * @see ResultSetMetaData#getColumnName(int) */ public String getColumnName(int aColumnIndex) throws SQLException { return (String)myNames.nextReturnObject(); } /** * @see ResultSetMetaData#getSchemaName(int) */ public String getSchemaName(int arg0) throws SQLException { notImplemented(); return null; } /** * @see ResultSetMetaData#getPrecision(int) */ public int getPrecision(int arg0) throws SQLException { notImplemented(); return 0; } /** * @see ResultSetMetaData#getScale(int) */ public int getScale(int arg0) throws SQLException { notImplemented(); return 0; } /** * @see ResultSetMetaData#getTableName(int) */ public String getTableName(int arg0) throws SQLException { notImplemented(); return null; } /** * @see ResultSetMetaData#getCatalogName(int) */ public String getCatalogName(int arg0) throws SQLException { notImplemented(); return null; } /** * @see ResultSetMetaData#getColumnType(int) */ public int getColumnType(int arg0) throws SQLException { notImplemented(); return 0; } /** * @see ResultSetMetaData#getColumnTypeName(int) */ public String getColumnTypeName(int arg0) throws SQLException { notImplemented(); return null; } /** * @see ResultSetMetaData#isReadOnly(int) */ public boolean isReadOnly(int arg0) throws SQLException { notImplemented(); return false; } /** * @see ResultSetMetaData#isWritable(int) */ public boolean isWritable(int arg0) throws SQLException { notImplemented(); return false; } /** * @see ResultSetMetaData#isDefinitelyWritable(int) */ public boolean isDefinitelyWritable(int arg0) throws SQLException { notImplemented(); return false; } /** * @see ResultSetMetaData#getColumnClassName(int) */ public String getColumnClassName(int arg0) throws SQLException { notImplemented(); return null; } } --- NEW FILE: MockSingleRowResultSet.java --- package com.mockobjects.sql; import java.net.URL; import java.sql.*; public class MockSingleRowResultSet extends CommonMockSingleRowResultSet { public URL getURL(int columnIndex) throws SQLException { notImplemented(); return null; } public URL getURL(String columnName) throws SQLException { notImplemented(); return null; } public void updateRef(int columnIndex, Ref x) throws SQLException { notImplemented(); } public void updateRef(String columnName, Ref x) throws SQLException { notImplemented(); } public void updateBlob(int columnIndex, Blob x) throws SQLException { notImplemented(); } public void updateBlob(String columnName, Blob x) throws SQLException { notImplemented(); } public void updateClob(int columnIndex, Clob x) throws SQLException { notImplemented(); } public void updateClob(String columnName, Clob x) throws SQLException { notImplemented(); } public void updateArray(int columnIndex, Array x) throws SQLException { notImplemented(); } public void updateArray(String columnName, Array x) throws SQLException { notImplemented(); } } --- NEW FILE: MockStatement.java --- package com.mockobjects.sql; import java.sql.SQLException; import java.sql.ResultSet; public class MockStatement extends CommonMockStatement{ public boolean getMoreResults(int current) throws SQLException { notImplemented(); return false; } public ResultSet getGeneratedKeys() throws SQLException { notImplemented(); return null; } public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException { notImplemented(); return 0; } public int executeUpdate(String sql, int columnIndexes[]) throws SQLException { notImplemented(); return 0; } public int executeUpdate(String sql, String columnNames[]) throws SQLException { notImplemented(); return 0; } public boolean execute(String sql, int autoGeneratedKeys) throws SQLException { notImplemented(); return false; } public boolean execute(String sql, int columnIndexes[]) throws SQLException { notImplemented(); return false; } public boolean execute(String sql, String columnNames[]) throws SQLException { notImplemented(); return false; } public int getResultSetHoldability() throws SQLException { notImplemented(); return 0; } } |
Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/1.3/com/mockobjects/sql In directory usw-pr-cvs1:/tmp/cvs-serv21660/src/jdk/1.3/com/mockobjects/sql Added Files: MockConnection.java MockMultiRowResultSet.java MockPreparedStatement.java MockResultSetMetaData.java MockSingleRowResultSet.java Log Message: Added abstraction layer to sql mocks to allow build against jdk1.4 --- NEW FILE: MockConnection.java --- package com.mockobjects.sql; public class MockConnection extends CommonMockConnection{ } --- NEW FILE: MockMultiRowResultSet.java --- package com.mockobjects.sql; public class MockMultiRowResultSet extends CommonMockMultiRowResultSet{ } --- NEW FILE: MockPreparedStatement.java --- package com.mockobjects.sql; public class MockPreparedStatement extends CommonMockPreparedStatement { } --- NEW FILE: MockResultSetMetaData.java --- package com.mockobjects.sql; import com.mockobjects.*; import java.sql.*; import java.sql.SQLException; import java.util.Vector; public class MockResultSetMetaData extends MockObject implements ResultSetMetaData { private ReturnObjectList myNames = new ReturnObjectList("column names"); private int myColumnCount; public void setupGetColumnCount(int aColumnCount){ myColumnCount = aColumnCount; } /** * @see ResultSetMetaData#getColumnCount() */ public int getColumnCount() throws SQLException { return myColumnCount; } /** * @see ResultSetMetaData#isAutoIncrement(int) */ public boolean isAutoIncrement(int arg0) throws SQLException { notImplemented(); return false; } /** * @see ResultSetMetaData#isCaseSensitive(int) */ public boolean isCaseSensitive(int arg0) throws SQLException { notImplemented(); return false; } /** * @see ResultSetMetaData#isSearchable(int) */ public boolean isSearchable(int arg0) throws SQLException { notImplemented(); return false; } /** * @see ResultSetMetaData#isCurrency(int) */ public boolean isCurrency(int arg0) throws SQLException { notImplemented(); return false; } /** * @see ResultSetMetaData#isNullable(int) */ public int isNullable(int arg0) throws SQLException { notImplemented(); return 0; } /** * @see ResultSetMetaData#isSigned(int) */ public boolean isSigned(int arg0) throws SQLException { notImplemented(); return false; } /** * @see ResultSetMetaData#getColumnDisplaySize(int) */ public int getColumnDisplaySize(int arg0) throws SQLException { notImplemented(); return 0; } /** * @see ResultSetMetaData#getColumnLabel(int) */ public String getColumnLabel(int arg0) throws SQLException { notImplemented(); return null; } public void setupAddColumnNames(String[] allNames) { if (allNames != null) { for (int i = 0; i < allNames.length; i++) { setupAddColumnName(allNames[i]); } } } public void setupAddColumnName(String aName){ this.myNames.addObjectToReturn(aName); } /** * @see ResultSetMetaData#getColumnName(int) */ public String getColumnName(int aColumnIndex) throws SQLException { return (String)myNames.nextReturnObject(); } /** * @see ResultSetMetaData#getSchemaName(int) */ public String getSchemaName(int arg0) throws SQLException { notImplemented(); return null; } /** * @see ResultSetMetaData#getPrecision(int) */ public int getPrecision(int arg0) throws SQLException { notImplemented(); return 0; } /** * @see ResultSetMetaData#getScale(int) */ public int getScale(int arg0) throws SQLException { notImplemented(); return 0; } /** * @see ResultSetMetaData#getTableName(int) */ public String getTableName(int arg0) throws SQLException { notImplemented(); return null; } /** * @see ResultSetMetaData#getCatalogName(int) */ public String getCatalogName(int arg0) throws SQLException { notImplemented(); return null; } /** * @see ResultSetMetaData#getColumnType(int) */ public int getColumnType(int arg0) throws SQLException { notImplemented(); return 0; } /** * @see ResultSetMetaData#getColumnTypeName(int) */ public String getColumnTypeName(int arg0) throws SQLException { notImplemented(); return null; } /** * @see ResultSetMetaData#isReadOnly(int) */ public boolean isReadOnly(int arg0) throws SQLException { notImplemented(); return false; } /** * @see ResultSetMetaData#isWritable(int) */ public boolean isWritable(int arg0) throws SQLException { notImplemented(); return false; } /** * @see ResultSetMetaData#isDefinitelyWritable(int) */ public boolean isDefinitelyWritable(int arg0) throws SQLException { notImplemented(); return false; } /** * @see ResultSetMetaData#getColumnClassName(int) */ public String getColumnClassName(int arg0) throws SQLException { notImplemented(); return null; } } --- NEW FILE: MockSingleRowResultSet.java --- package com.mockobjects.sql; public class MockSingleRowResultSet extends CommonMockSingleRowResultSet { } |
From: Jeff M. <cus...@us...> - 2002-06-28 17:35:41
|
Update of /cvsroot/mockobjects/mockobjects-java/src/j2ee/common/com/mockobjects/jms In directory usw-pr-cvs1:/tmp/cvs-serv21660/src/j2ee/common/com/mockobjects/jms Modified Files: MockConnection.java Log Message: Added abstraction layer to sql mocks to allow build against jdk1.4 Index: MockConnection.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/j2ee/common/com/mockobjects/jms/MockConnection.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- MockConnection.java 23 Feb 2002 18:50:35 -0000 1.2 +++ MockConnection.java 28 Jun 2002 17:35:39 -0000 1.3 @@ -9,9 +9,9 @@ public class MockConnection extends MockObject implements Connection { - protected ExpectationCounter myCloseCalls = new ExpectationCounter("MockConnection.close"); - protected ExpectationCounter myStartCalls = new ExpectationCounter("MockConnection.start"); - protected ExpectationCounter myStopCalls = new ExpectationCounter("MockConnection.stop"); + protected ExpectationCounter myCloseCalls = new ExpectationCounter("CommonMockConnection.close"); + protected ExpectationCounter myStartCalls = new ExpectationCounter("CommonMockConnection.start"); + protected ExpectationCounter myStopCalls = new ExpectationCounter("CommonMockConnection.stop"); private JMSException myException; |
From: Jeff M. <cus...@us...> - 2002-06-28 17:30:39
|
Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/1.4/com/mockobjects/sql In directory usw-pr-cvs1:/tmp/cvs-serv20301/sql Log Message: Directory /cvsroot/mockobjects/mockobjects-java/src/jdk/1.4/com/mockobjects/sql added to the repository |
From: Jeff M. <cus...@us...> - 2002-06-28 17:23:42
|
Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/1.3/com/mockobjects/sql In directory usw-pr-cvs1:/tmp/cvs-serv18339/src/jdk/1.3/com/mockobjects/sql Log Message: Directory /cvsroot/mockobjects/mockobjects-java/src/jdk/1.3/com/mockobjects/sql added to the repository |