assertEquals(PRIORITY_DATE_TIME_MET_KEY, clientSetComplexQuery.getQueryFilter().getPriorityMetKey());
assertEquals(VERSION_CONV, clientSetComplexQuery.getQueryFilter().getConverter());
}
public void testClientTransTrueAndFlatProductAndNoOutputFormat() throws CmdLineActionException, IOException {
ActionMessagePrinter printer = new ActionMessagePrinter();
MockSqlQueryCliAction cliAction = new MockSqlQueryCliAction();
cliAction.setQuery(QUERY);
cliAction.setSortBy(SORT_BY);
cliAction.setDelimiter(DELIMITER);
cliAction.setFilterAlgor(FILTER_ALGOR);
cliAction.setStartDateTimeMetKey(START_DATE_TIME_MET_KEY);
cliAction.setEndDateTimeMetKey(END_DATE_TIME_MET_KEY);
cliAction.setPriorityMetKey(PRIORITY_DATE_TIME_MET_KEY);
cliAction.setVersionConverter(VERSION_CONV);
cliAction.execute(printer);
assertEquals(2, printer.getPrintedMessages().size());
String msg = printer.getPrintedMessages().get(0);
assertTrue(msg.contains("data.dat"));
assertTrue(msg.contains("Bob,Billy"));
assertEquals(",", msg.replace("data.dat","").replace("Bob,Billy",""));
assertEquals("\n", printer.getPrintedMessages().get(1));
assertEquals(SORT_BY, clientSetComplexQuery.getSortByMetKey());
assertNull(clientSetComplexQuery.getToStringResultFormat());
assertNull(clientSetComplexQuery.getReducedProductTypeNames());
assertNull(clientSetComplexQuery.getReducedMetadata());
assertEquals(FILTER_ALGOR, clientSetComplexQuery.getQueryFilter().getFilterAlgor());