mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
#2100 - Refactor move io.ebean.dbmigration.DbMigration [generation] from ebean-api to ebean-ddlgen module
This commit is contained in:
1 parent
f394e7f39b
commit
04a651c40d
3 files changed
No files matched your search
@@ -1,35 +0,0 @@
|
||||
package io.ebean.dbmigration;
|
||||
|
||||
import io.ebean.annotation.Platform;
|
||||
import io.ebeaninternal.api.DbOffline;
|
||||
import org.junit.Test;
|
||||
|
||||
public class DbMigrationSqlServerTest {
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
public void need_explicitPlatform() {
|
||||
|
||||
try {
|
||||
DbMigration dbMigration = DbMigration.create();
|
||||
dbMigration.setPlatform(Platform.SQLSERVER);
|
||||
} finally {
|
||||
DbOffline.reset();
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void explicit_16_isGood() {
|
||||
|
||||
DbMigration dbMigration = DbMigration.create();
|
||||
dbMigration.setPlatform(Platform.SQLSERVER16);
|
||||
DbOffline.reset();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void explicit_17_isGood() {
|
||||
|
||||
DbMigration dbMigration = DbMigration.create();
|
||||
dbMigration.setPlatform(Platform.SQLSERVER17);
|
||||
DbOffline.reset();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user