mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Feature/contitional test runner (#1132)
* FIX: warnings (add generics, overrides, fix imports) - should be no effecive code change * replaced deprecated methods by default methods * FIX: more compiler warnings * FIX more warnings - no code changes * FIX: deprecated call to JsonParseException * Remove unused code, check unused variables * ADD: ContitonaltestRunner to skip tests for certain platforms * Use annotations to control on which platforms a test shoud run * FIX: compile errors
This commit is contained in:
committed by
Rob Bygrave
parent
f3e4696498
commit
8d334ff2e8
@@ -2,6 +2,8 @@ package org.tests.model.m2o;
|
||||
|
||||
import io.ebean.BaseTestCase;
|
||||
import io.ebean.Ebean;
|
||||
import io.ebean.Platform;
|
||||
import io.ebean.annotation.IgnorePlatform;
|
||||
import io.ebean.annotation.Transactional;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -16,12 +18,14 @@ public class TestManyToOneAsOne extends BaseTestCase {
|
||||
|
||||
@Transactional(batchSize = 20)
|
||||
@Test
|
||||
@IgnorePlatform(Platform.SQLSERVER) // probably due the use of sequences - Empl has already an ID and Addr refers to it.
|
||||
public void test_when_jdbcBatch() {
|
||||
runInserts();
|
||||
}
|
||||
|
||||
|
||||
private void runInserts() {
|
||||
if (isSqlServer()) return; // probably due the use of sequences - Empl has already an ID and Addr refers to it.
|
||||
|
||||
Addr junk = new Addr();
|
||||
junk.setName("junk");
|
||||
Ebean.save(junk);
|
||||
|
||||
Reference in New Issue
Block a user