make it work with java 7
@@ -523,7 +523,8 @@ public class ConnectionDriverTest extends AbstractTest {
*/
@Test
public void testThreadInterruptedStatus() throws InterruptedException {
- Runnable runnable = () -> {
+ Runnable runnable = new Runnable() {
+ public void run() {
SQLServerDataSource ds = new SQLServerDataSource();
ds.setURL(connectionString);
@@ -536,6 +537,7 @@ public class ConnectionDriverTest extends AbstractTest {
catch (SQLException e) {
isInterrupted = Thread.currentThread().isInterrupted();
}
+ }
};
ExecutorService executor = Executors.newFixedThreadPool(1);
