mirror of https://github.com/apache/lucene.git
SOLR-9966: Do test-ignore properly
This commit is contained in:
parent
a88e6e5634
commit
7e30fe1471
|
@ -485,8 +485,7 @@ public class TestJdbcDataSource extends AbstractDataImportHandlerTestCase {
|
|||
|
||||
@Test
|
||||
public void testRetrieveFromDriverManager() throws Exception {
|
||||
// in JDK9, Class.forName will throw exception for mock classes
|
||||
if (Constants.JRE_IS_MINIMUM_JAVA9) return;
|
||||
assumeFalse("In Java 9, Class.forName() does not work for mock classes", Constants.JRE_IS_MINIMUM_JAVA9);
|
||||
DriverManager.registerDriver(driver);
|
||||
try {
|
||||
when(driver.connect(notNull(),notNull())).thenReturn(connection);
|
||||
|
|
Loading…
Reference in New Issue