message: test: add test for getSchema
  includes general improvements to java test "framework"
diff: @@ -21,6 +21,7 @@ import java.sql.Time;
  import java.sql.Timestamp;
  import java.sql.Types;
  import java.sql.SQLWarning;
  +import java.time.Duration;
  import java.util.Properties;
  import java.util.TimeZone;
  import java.time.LocalDateTime;
  @@ -2159,14 +2160,36 @@ public class TestDuckDBJDBC {
  conn.close();
  }
  +
  + public static void test_get_schema() throws Exception {
  + DuckDBConnection conn = (DuckDBConnection) DriverManager.getConnection("jdbc:duckdb:");
  +
  + assertEquals(conn.getSchema(), "main");
  + }
  +
  +
  public static void main(String[] args) throws Exception {
  // Woo I can do reflection too, take this, JUnit!
  Method[] methods = TestDuckDBJDBC.class.getMethods();
  + boolean anyFailed = false;
  for (Method m : methods) {
  if (m.getName().startsWith("test_")) {
  m.invoke(null);
  + System.out.print(m.getName() + " ");
  +
  + LocalDateTime start = LocalDateTime.now();
  + try {
  + m.invoke(null);
  + System.out.println("success in " + Duration.between(start, LocalDateTime.now()).getSeconds() + " seconds");
  + } catch (Throwable t) {
  + System.out.println("failed with " + t);
  + t.printStackTrace(System.out);
  + anyFailed = true;
  + }
  }
  }
  System.out.println("OK");
  +
  + System.exit(anyFailed ? 1 : 0);
  }
  }
  