Exemplo n.º 1
0
 public void testCreateWithList() throws Exception {
   ArrayList<String> columnList = new ArrayList<String>();
   columnList.add("column1");
   columnList.add("column2");
   columnList.add("column3");
   Clause select = new SelectClause(columnList);
   assertEquals("select", select.getType());
   assertEquals("column1, column2, column3", select.getBody());
   assertEquals("SELECT column1, column2, column3", select.getClause());
 }
Exemplo n.º 2
0
 public void testCreateWithString() throws Exception {
   Clause select = new SelectClause("column1");
   assertEquals("select", select.getType());
   assertEquals("column1", select.getBody());
   assertEquals("SELECT column1", select.getClause());
 }