Package src

Examples of src.FilaInscricaoMigration


* TODO Montar um cenario de testes
*/

public class FilaInscricaoMigrationTest extends TestCase {
  public void testGetResultSet() throws Exception {
    Migrator migration = new FilaInscricaoMigration(Context
        .getSourceConnection(), Context.getDestinationConnection(),
        new Long(41), new Long(15));
    ResultSet rs = migration.getResultSet();

    rs.next();
    assertEquals(6, rs.getMetaData().getColumnCount());
  }
View Full Code Here


    rs.next();
    assertEquals(6, rs.getMetaData().getColumnCount());
  }

  public void testExecute() throws Exception {
    Migrator migration = new FilaInscricaoMigration(Context
        .getSourceConnection(), Context.getDestinationConnection(),
        new Long(41), new Long(15));
    ResultSet rs = migration.getResultSet();
    rs.next();

    migration.execute(rs);

    Statement stm = (Statement) Context.getDestinationConnection()
        .createStatement();
    ResultSet rs2 = (ResultSet) stm
        .executeQuery("SELECT id FROM FILAINSCRICAO WHERE id = "
View Full Code Here

TOP

Related Classes of src.FilaInscricaoMigration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.