import junit.framework.Assert;
+import net.jaekl.squelch.db.DbDriverMock;
import net.jaekl.squelch.sql.Column;
import net.jaekl.squelch.sql.Row;
@Test
public void test_printTable_empTable() throws IOException, SQLException
{
+ DbDriverMock driver = new DbDriverMock();
TabularMock tabular = createEmpTable();
try (
PrintWriter pw = new PrintWriter(new OutputStreamWriter(baos, StandardCharsets.UTF_8));
)
{
- tabular.printTable(pw, "No rows returned.");
+ tabular.printTable(driver, pw, "No rows returned.");
pw.close();
baos.close();
String actual = baos.toString();