Package org.sonar.core.persistence.dialect

Examples of org.sonar.core.persistence.dialect.MySql


    migrator = new DatabaseMigrator(dbClient, migrations, serverUpgradeStatus, null);
  }

  @Test
  public void should_support_only_creation_of_h2_database() throws Exception {
    when(dbClient.database().getDialect()).thenReturn(new MySql());

    assertThat(migrator.createDatabase()).isFalse();
    verify(dbClient, never()).openSession(anyBoolean());
  }
View Full Code Here


    // TODO test log
  }

  @Test
  public void do_not_fail_if_mysql() throws Exception {
    Database db = mockDb(new MySql(), "5.7");
    new DatabaseChecker(db).start();
    // no error
  }
View Full Code Here

TOP

Related Classes of org.sonar.core.persistence.dialect.MySql

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.