Package net.raymanoz.domain

Examples of net.raymanoz.domain.SchemaVersionImpl


      PreparedStatement getPatchStatement = scriptHistoryTableStatement(GET_PATCH_SQL);
      getPatchStatement.setLong(1, ver);
      getPatchStatement.setString(2, ScriptStatus.SKIPPED.getKey());
      getPatchStatement.setString(3, ScriptStatus.COMPLETED.getKey());
      Long patch = aslong(getFirstAsLong(getPatchStatement));
      SchemaVersion version = new SchemaVersionImpl(ver, patch);
      return version;
    } catch (SQLException e) {
      throw new RuntimeException(e);
    }
  }
View Full Code Here


  @Test
  public void testNoActivityValidateNoOtherLaterActivity() throws SQLException{
    MockQry qry = new MockQry(String.format(GET_LATER_ACTIVITY_SQL, EXPECTED_PATCH_HISTORY_TABLE));
    qry.queryScriptStatusRecord();
    repos.validateNoOtherLaterActivity(new SchemaVersionImpl(2L,4L));
    qry.checkScriptStatusRecordCalls(2L, 5L, 0);
  }
View Full Code Here

    qry.queryScriptStatusRecord(
      new ScriptStatusRecord(2L, 5L, "A Script", "A User", "A Status"),   
      new ScriptStatusRecord(2L, 6L, "Another Script", "Another User", "Another Status")   
    );
    try{
      repos.validateNoOtherLaterActivity(new SchemaVersionImpl(2L,4L));
      assertEquals("Should throw Exception", true, false);
    }
    catch (RuntimeException e){
      String expected =
          "Activity for DB Ver 2 Patch 5 or later found on DB\n" +
View Full Code Here

TOP

Related Classes of net.raymanoz.domain.SchemaVersionImpl

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.