Displaying differences for changeset
 
display as  

test/TestDriver.java

@@ -48,6 +48,7 @@
     private static final double MAX_AREA_DELTA = 0.01;
 
     public TestDriver() throws ClassNotFoundException, SQLException {
+        System.out.println("Setting all logging to be only level: WARNING or higher");
         Logger log = LogManager.getLogManager().getLogger("");
         for (Handler h : log.getHandlers()) {
             h.setLevel(Level.WARNING);
@@ -56,6 +57,7 @@
 
     @Test
     public void testResultSetIteration() {
+        System.out.println("Testing that we can iterate over a ResultSet and that it contains what we expect it to.");
         String query = "SELECT top 100 legend.areasymbol, mapunit.musym, mapunit.mukey, mapunit.muname, muacres, brockdepmin FROM mapunit "
                 + " INNER JOIN legend ON mapunit.lkey=legend.lkey  "
                 + " INNER JOIN muaggatt ON mapunit.mukey=muaggatt.mukey  WHERE "
@@ -85,6 +87,8 @@
 
     @Test
     public void testBadColumnName() {
+        System.out.println("Testing that ResultSet throws appropriate SQL Exception on missing column name");
+
         String query = "SELECT top 1 legend.areasymbol, mapunit.musym, mapunit.mukey, mapunit.muname, muacres, brockdepmin FROM mapunit "
                 + "INNER JOIN legend ON mapunit.lkey=legend.lkey  "
                 + "INNER JOIN muaggatt ON mapunit.mukey=muaggatt.mukey  WHERE "
@@ -108,12 +112,12 @@
             }
             Assert.assertFalse(count > 0, "This SQL statement should have thrown an SQL Exception, but did not.");  //We should have recived an SQLException.
         } catch (SQLException ex) {
-            Logger.getLogger(TestDriver.class.getName()).log(Level.SEVERE, ex.getMessage());
+            System.out.println("Column, 'area', not found in the ResultSet, as expected.  Test PASS");
             Assert.assertTrue(true);
         }
     }
 
-    @Test(threadPoolSize = 10, invocationCount = MAX_RANDOM_MAPUNITS, timeOut = 30000)
+    @Test(threadPoolSize = 10, invocationCount = MAX_RANDOM_MAPUNITS, timeOut = 0)
     public void testComplexIntersectionQuery() throws InterruptedException {
         String bufferWKT;