Menu

#99 Add java.sql missing methods to test suite - Java7

v1.0 (example)
closed-fixed
None
5
2015-05-01
2013-10-16
gil
No

hi
create a patch for added some missing java7 method

--- test/au/com/bytecode/opencsv/MockResultSet.java 2011-04-15 06:00:33.000000000 +0200
+++ test/au/com/bytecode/opencsv/MockResultSet.java-gil 2013-10-16 15:52:49.322505042 +0200
@@ -764,4 +764,69 @@
public boolean isWrapperFor(Class<?> aClass) throws SQLException {
return false; //To change body of implemented methods use File | Settings | File Templates.
}
+
+ public boolean isCloseOnCompletion() throws SQLException {
+ return false; //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public void closeOnCompletion() throws SQLException {
+ //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public <T> T getObject(String columnLabel, Class<T> arg0) throws SQLException {
+ return null; //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public <T> T getObject(int columnIndex, Class<T> arg0) throws SQLException {
+ return null; //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException {
+ //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException {
+ //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public SQLXML getSQLXML(String columnLabel) throws SQLException {
+ return null; //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public SQLXML getSQLXML(int columnIndex) throws SQLException {
+ return null; //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public NClob getNClob(String columnLabel) throws SQLException {
+ return null; //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public NClob getNClob(int columnIndex) throws SQLException {
+ return null; //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public void updateRowId(String columnLabel, RowId x) throws SQLException {
+ //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public void updateRowId(int columnIndex, RowId x) throws SQLException {
+ //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public RowId getRowId(String columnLabel) throws SQLException {
+ return null; //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public RowId getRowId(int columnIndex) throws SQLException {
+ return null; //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public void updateNClob(String columnLabel, NClob nClob) throws SQLException {
+ //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public void updateNClob(int columnIndex, NClob nClob) throws SQLException {
+ //To change body of implemented methods use File | Settings | File Templates.
+ }
+
}

regards

Discussion

  • Scott Conway

    Scott Conway - 2015-03-18
    • assigned_to: Scott Conway
     
  • Scott Conway

    Scott Conway - 2015-05-01

    Changed code to use MockResultSetBuilder and removed MockResultSet. This way should work with any version of Java.

     
  • Scott Conway

    Scott Conway - 2015-05-01
    • status: open --> closed-fixed
     

Log in to post a comment.