You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by rv...@apache.org on 2013/06/06 00:56:31 UTC
svn commit: r1490060 -
/jena/Experimental/jena-jdbc/jena-jdbc-core/src/test/java/org/apache/jena/jdbc/connections/AbstractJenaConnectionTests.java
Author: rvesse
Date: Wed Jun 5 22:56:31 2013
New Revision: 1490060
URL: http://svn.apache.org/r1490060
Log:
Finish fleshing out tests for connections
Modified:
jena/Experimental/jena-jdbc/jena-jdbc-core/src/test/java/org/apache/jena/jdbc/connections/AbstractJenaConnectionTests.java
Modified: jena/Experimental/jena-jdbc/jena-jdbc-core/src/test/java/org/apache/jena/jdbc/connections/AbstractJenaConnectionTests.java
URL: http://svn.apache.org/viewvc/jena/Experimental/jena-jdbc/jena-jdbc-core/src/test/java/org/apache/jena/jdbc/connections/AbstractJenaConnectionTests.java?rev=1490060&r1=1490059&r2=1490060&view=diff
==============================================================================
--- jena/Experimental/jena-jdbc/jena-jdbc-core/src/test/java/org/apache/jena/jdbc/connections/AbstractJenaConnectionTests.java (original)
+++ jena/Experimental/jena-jdbc/jena-jdbc-core/src/test/java/org/apache/jena/jdbc/connections/AbstractJenaConnectionTests.java Wed Jun 5 22:56:31 2013
@@ -2291,4 +2291,94 @@ public abstract class AbstractJenaConnec
conn.close();
}
}
+
+ /**
+ * Tests error cases for unsupported create operations
+ * @throws SQLException
+ */
+ @Test(expected = SQLFeatureNotSupportedException.class)
+ public void connection_bad_create_01() throws SQLException {
+ JenaConnection conn = this.getConnection();
+
+ try {
+ conn.createArrayOf("test", new Object[0]);
+ } finally {
+ conn.close();
+ }
+ }
+
+ /**
+ * Tests error cases for unsupported create operations
+ * @throws SQLException
+ */
+ @Test(expected = SQLFeatureNotSupportedException.class)
+ public void connection_bad_create_02() throws SQLException {
+ JenaConnection conn = this.getConnection();
+
+ try {
+ conn.createBlob();
+ } finally {
+ conn.close();
+ }
+ }
+
+ /**
+ * Tests error cases for unsupported create operations
+ * @throws SQLException
+ */
+ @Test(expected = SQLFeatureNotSupportedException.class)
+ public void connection_bad_create_03() throws SQLException {
+ JenaConnection conn = this.getConnection();
+
+ try {
+ conn.createClob();
+ } finally {
+ conn.close();
+ }
+ }
+
+ /**
+ * Tests error cases for unsupported create operations
+ * @throws SQLException
+ */
+ @Test(expected = SQLFeatureNotSupportedException.class)
+ public void connection_bad_create_04() throws SQLException {
+ JenaConnection conn = this.getConnection();
+
+ try {
+ conn.createNClob();
+ } finally {
+ conn.close();
+ }
+ }
+
+ /**
+ * Tests error cases for unsupported create operations
+ * @throws SQLException
+ */
+ @Test(expected = SQLFeatureNotSupportedException.class)
+ public void connection_bad_create_05() throws SQLException {
+ JenaConnection conn = this.getConnection();
+
+ try {
+ conn.createSQLXML();
+ } finally {
+ conn.close();
+ }
+ }
+
+ /**
+ * Tests error cases for unsupported create operations
+ * @throws SQLException
+ */
+ @Test(expected = SQLFeatureNotSupportedException.class)
+ public void connection_bad_create_06() throws SQLException {
+ JenaConnection conn = this.getConnection();
+
+ try {
+ conn.createStruct("test", new Object[0]);
+ } finally {
+ conn.close();
+ }
+ }
}