Exemplo n.º 1
0
 /** A unit test for JUnit */
 public void testBuildDdl() {
   try {
     String ddl[] = builder.buildDdl(validElements);
     String query0 =
         "Insert into TestTable ( FirstField, SecondField ) values ( 1, 'testing string' )";
     assertEquals("Query0 didn't match", query0, ddl[0]);
   } catch (MraldException e) {
     e.fillInStackTrace();
   }
 }
Exemplo n.º 2
0
  /** A unit test for JUnit */
  public void testRemoveInvalidElements() {
    try {

      builder.removeInvalidElements(insertElements);
      assertEquals(
          "It appears the invalid InsertElement was not extracted", 3, insertElements.size());
    } catch (MraldException e) {
      e.fillInStackTrace();
    }
  }