Change the default value for register interest receive values to true, matching the GemFire/Geode default.

Resolves gh-21.
This commit is contained in:
John Blum
2018-12-14 02:55:41 -08:00
parent 8b8723f87c
commit 7a448183c0
2 changed files with 3 additions and 3 deletions

View File

@@ -107,7 +107,7 @@ public abstract class AbstractGemFireOperationsSessionRepository
private static final boolean DEFAULT_REGISTER_INTEREST_ENABLED = false;
private static final boolean DEFAULT_REGISTER_INTEREST_DURABILITY = false;
private static final boolean DEFAULT_REGISTER_INTEREST_RECEIVE_VALUES = false;
private static final boolean DEFAULT_REGISTER_INTEREST_RECEIVE_VALUES = true;
private static final AtomicBoolean usingDataSerialization = new AtomicBoolean(false);

View File

@@ -635,7 +635,7 @@ public class AbstractGemFireOperationsSessionRepositoryTests {
verify(this.sessionRepository, times(1)).registerInterest(eq("1"));
verify(this.sessionRepository, times(1)).isRegisterInterestEnabled();
verify(this.mockRegion, times(1))
.registerInterest(eq("1"), eq(InterestResultPolicy.NONE), eq(false), eq(false));
.registerInterest(eq("1"), eq(InterestResultPolicy.NONE), eq(false), eq(true));
}
@Test
@@ -676,7 +676,7 @@ public class AbstractGemFireOperationsSessionRepositoryTests {
verify(this.sessionRepository, times(2)).registerInterest(eq("1"));
verify(this.sessionRepository, times(2)).isRegisterInterestEnabled();
verify(this.mockRegion, times(1))
.registerInterest(eq("1"), eq(InterestResultPolicy.NONE), eq(false), eq(false));
.registerInterest(eq("1"), eq(InterestResultPolicy.NONE), eq(false), eq(true));
}
@Test