public void testInsert2() throws SQLException {
  DatabaseCreator.fillParentTable(conn);
  DatabaseCreator.fillFKStrictTable(conn);
  DatabaseCreator.fillFKCascadeTable(conn);
  try {
    statement.execute("INSERT INTO " + DatabaseCreator.FKSTRICT_TABLE + " VALUES(4, 4, 'testInsert')");
  }
 catch (  SQLException ex) {
  }
  try {
    statement.execute("INSERT INTO " + DatabaseCreator.FKCASCADE_TABLE + " VALUES(4, 4, 'testInsert')");
  }
 catch (  SQLException ex) {
  }
}

public void testInsert2 ( ) throws SQLException { DatabaseCreator . fillParentTable ( conn ) ; DatabaseCreator . fillFKStrictTable ( conn ) ; DatabaseCreator . fillFKCascadeTable ( conn ) ; try { statement . execute ( "INSERT INTO " + DatabaseCreator . FKSTRICT_TABLE + " VALUES(4, 4, 'testInsert')" ) ; } catch ( SQLException ex ) { } try { statement . execute ( "INSERT INTO " + DatabaseCreator . FKCASCADE_TABLE + " VALUES(4, 4, 'testInsert')" ) ; } catch ( SQLException ex ) { } }
insertfunctionalitytest # testinsert2 ( ) . attempts to insert row into table with integrity checking when row has incorrect foreign key value - expecting sqlexception
