+ @Test
+ public void testExec_displayAll() throws IOException, SQLException
+ {
+ String[] cmds = { "\\pset", "\\pset ", "\\pset ",
+ "\\PsET", "\\PsET ", "\\PSET", "\\PSET " };
+
+ for (String cmd : cmds) {
+ DbDriverMock driver = new DbDriverMock();
+
+ driver.set(DbDriver.SUPPRESS_NULLS, true);
+ String output = doExec(driver, cmd);
+ assertTrue(output.contains("suppress_nulls: true\n"));
+
+ driver.set(DbDriver.SUPPRESS_NULLS, false);
+ output = doExec(driver, cmd);
+ assertTrue(output.contains("suppress_nulls: false\n"));
+ }
+ }
+