#1427 - RemoteTransactionEvent process dependent tables

This commit is contained in:
rob bygrave
2018-06-19 00:50:14 +12:00
parent 3a64cf6952
commit 43e95d81f6
12 changed files with 56 additions and 19 deletions
@@ -4,11 +4,14 @@ import io.ebean.cache.ServerCacheFactory;
import io.ebean.cache.ServerCacheOptions;
import io.ebean.cache.ServerCacheType;
import io.ebean.config.ServerConfig;
import io.ebeaninternal.server.core.ClockService;
import io.ebeaninternal.server.transaction.TableModState;
import org.tests.model.basic.Contact;
import org.tests.model.basic.Customer;
import org.junit.Test;
import java.time.Clock;
import static org.assertj.core.api.Assertions.assertThat;
@@ -22,7 +25,7 @@ public class DefaultCacheHolderTest {
private CacheManagerOptions options() {
return new CacheManagerOptions(null, new ServerConfig(), true)
.with(defaultOptions, defaultOptions)
.with(cacheFactory, new TableModState());
.with(cacheFactory, new TableModState(new ClockService(Clock.systemUTC())));
}
@@ -1,7 +1,9 @@
package io.ebeaninternal.server.transaction;
import io.ebeaninternal.server.core.ClockService;
import org.junit.Test;
import java.time.Clock;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
@@ -10,7 +12,7 @@ import static org.junit.Assert.*;
public class TableModStateTest {
private TableModState tableModState = new TableModState();
private TableModState tableModState = new TableModState(new ClockService(Clock.systemUTC()));
@Test
public void isValid() {