adds support for null suppression
[squelch.git] / src / test / java / net / jaekl / squelch / stmt / DescribeTest.java
index 607a80dfc6e5deef1c3b3d9a7b1bd4deb849c63b..0407040d1b57dcebc6e0084c29c1c43cb12feb49 100644 (file)
@@ -50,6 +50,7 @@ public class DescribeTest {
        public void testDescribeAll_noTables() throws IOException, SQLException 
        {
                DatabaseMetaDataMock dbmdm = new DatabaseMetaDataMock();
+               DbDriverMock driver = new DbDriverMock();
                Describe describe = new Describe();
                
                try (
@@ -57,7 +58,7 @@ public class DescribeTest {
                                PrintWriter pw = new PrintWriter(new OutputStreamWriter(baos, StandardCharsets.UTF_8));
                        )
                {
-                       describe.describeAll(pw, dbmdm);
+                       describe.describeAll(driver, pw, dbmdm);
                        pw.close();
                        baos.close();
                        String actual = baos.toString();
@@ -71,6 +72,7 @@ public class DescribeTest {
                throws IOException, SQLException
        {
                DatabaseMetaDataMock dbmdm = new DatabaseMetaDataMock();
+               DbDriverMock driver = new DbDriverMock();
                Describe describe = new Describe();
                
                try (
@@ -78,7 +80,7 @@ public class DescribeTest {
                                PrintWriter pw = new PrintWriter(new OutputStreamWriter(baos, StandardCharsets.UTF_8));
                        )
                {
-                       describe.describeTable(pw, dbmdm, "%");
+                       describe.describeTable(driver, pw, dbmdm, "%");
                        pw.close();
                        baos.close();
                        String actual = baos.toString();
@@ -214,6 +216,7 @@ public class DescribeTest {
                throws IOException, SQLException
        {
                DatabaseMetaDataMock dbmdm = construct_runs_dbmdm();
+               DbDriverMock driver = new DbDriverMock();
                Describe describe = new Describe();
                
                try (
@@ -221,7 +224,7 @@ public class DescribeTest {
                                PrintWriter pw = new PrintWriter(new OutputStreamWriter(baos, StandardCharsets.UTF_8));
                        )
                {
-                       describe.describeTable(pw, dbmdm, "runs");
+                       describe.describeTable(driver, pw, dbmdm, "runs");
                        pw.close();
                        baos.close();
                        String actual = baos.toString();