-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust native image test to combine container start and executing tes…
…t-native-image executable
- Loading branch information
Showing
2 changed files
with
24 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,29 @@ | ||
package org.example; | ||
|
||
import io.ebean.migration.*; | ||
import io.ebean.migration.MigrationConfig; | ||
import io.ebean.migration.MigrationRunner; | ||
|
||
import java.io.InputStream; | ||
import java.util.List; | ||
import java.util.Properties; | ||
import java.net.URL; | ||
|
||
public class Main { | ||
|
||
public static void main(String[] args) { | ||
// InputStream is = Main.class.getResourceAsStream("/dbmigration/postgres/idx_postgres.migrations"); | ||
// System.out.println("GOT is: " + is); | ||
public static void main(String[] args) { | ||
URL url = Main.class.getResource("/dbmigration/postgres/idx_postgres.migrations"); | ||
System.out.println("Found idx_postgres.migrations: " + url); | ||
|
||
MigrationConfig config = new MigrationConfig(); | ||
config.setDbUsername("mig"); | ||
config.setDbPassword("test"); | ||
config.setDbUrl("jdbc:postgresql://localhost:6432/mig"); | ||
config.setBasePlatform("postgres"); | ||
config.setPlatform("postgres"); | ||
config.setMigrationPath("dbmigration"); | ||
MigrationConfig config = new MigrationConfig(); | ||
config.setDbUsername("mig"); | ||
config.setDbPassword("test"); | ||
config.setDbUrl("jdbc:postgresql://localhost:6432/mig"); | ||
config.setBasePlatform("postgres"); | ||
config.setPlatform("postgres"); | ||
config.setMigrationPath("dbmigration"); | ||
|
||
MigrationRunner runner = new MigrationRunner(config); | ||
runner.run(); | ||
MigrationRunner runner = new MigrationRunner(config); | ||
runner.run(); | ||
|
||
//System.out.println("state: " + runner.checkState()); | ||
System.out.println("DONE"); | ||
} | ||
//System.out.println("state: " + runner.checkState()); | ||
System.out.println("DONE"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters