@Test public void testGetParentLoggerThrowsException() throws ClassNotFoundException, SQLException { Driver driver = DriverManager.getDriver("sniffy:jdbc:h2:mem:"); try { driver.getParentLogger(); fail("getParentLogger() should have thrown an exception"); } catch (SQLFeatureNotSupportedException e) { assertNotNull(e); } }
public Logger getParentLogger() { String message = "getParentLogger() method is not implemented in Sniffy"; if (!ExceptionUtil.throwException("java.sql.SQLFeatureNotSupportedException", message)) { throw new UnsupportedOperationException(message); } return null; }
SniffyDriver implements Driver, Constants { public Logger getParentLogger() { String message = "getParentLogger() method is not implemented in Sniffy"; if (!ExceptionUtil.throwException("java.sql.SQLFeatureNotSupportedException", message)) { throw new UnsupportedOperationException(message); } return null; } }
SniffyDriver implements Driver, Constants { public Logger getParentLogger() { String message = "getParentLogger() method is not implemented in Sniffy"; if (!ExceptionUtil.throwException("java.sql.SQLFeatureNotSupportedException", message)) { throw new UnsupportedOperationException(message); } return null; }  }
SniffyDriver implements Driver, Constants { public Logger getParentLogger() { String message = "getParentLogger() method is not implemented in Sniffy"; if (!ExceptionUtil.throwException("java.sql.SQLFeatureNotSupportedException", message)) { throw new UnsupportedOperationException(message); } return null; }  Connection connect(String url, Properties info); boolean acceptsURL(String url); DriverPropertyInfo[] getPropertyInfo(String url, Properties info); int getMajorVersion(); int getMinorVersion(); boolean jdbcCompliant(); Logger getParentLogger(); }
SniffyDriver implements Driver, Constants { public Logger getParentLogger() { String message = "getParentLogger() method is not implemented in Sniffy"; if (!ExceptionUtil.throwException("java.sql.SQLFeatureNotSupportedException", message)) { throw new UnsupportedOperationException(message); } return null; }  Connection connect(String url, Properties info); boolean acceptsURL(String url); DriverPropertyInfo[] getPropertyInfo(String url, Properties info); int getMajorVersion(); int getMinorVersion(); boolean jdbcCompliant(); Logger getParentLogger();  }