SOLR-9966: Do test-ignore properly

This commit is contained in:
Uwe Schindler 2017-02-19 12:20:56 +01:00
parent a88e6e5634
commit 7e30fe1471
1 changed files with 1 additions and 2 deletions

View File

@ -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);