You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by up...@apache.org on 2016/02/19 19:37:15 UTC
[38/63] [abbrv] incubator-geode git commit: Automatically converting
calls of vm.invoke to lambdas
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/69024aa9/gemfire-core/src/test/java/com/gemstone/gemfire/internal/cache/partitioned/fixed/FixedPartitioningTestBase.java
----------------------------------------------------------------------
diff --git a/gemfire-core/src/test/java/com/gemstone/gemfire/internal/cache/partitioned/fixed/FixedPartitioningTestBase.java b/gemfire-core/src/test/java/com/gemstone/gemfire/internal/cache/partitioned/fixed/FixedPartitioningTestBase.java
index 95ea49f..b1a2895 100644
--- a/gemfire-core/src/test/java/com/gemstone/gemfire/internal/cache/partitioned/fixed/FixedPartitioningTestBase.java
+++ b/gemfire-core/src/test/java/com/gemstone/gemfire/internal/cache/partitioned/fixed/FixedPartitioningTestBase.java
@@ -1321,10 +1321,10 @@ public class FixedPartitioningTestBase extends DistributedTestCase {
protected final void preTearDown() throws Exception {
try {
closeCache();
- member1.invoke(FixedPartitioningTestBase.class, "closeCache");
- member2.invoke(FixedPartitioningTestBase.class, "closeCache");
- member3.invoke(FixedPartitioningTestBase.class, "closeCache");
- member4.invoke(FixedPartitioningTestBase.class, "closeCache");
+ member1.invoke(() -> FixedPartitioningTestBase.closeCache());
+ member2.invoke(() -> FixedPartitioningTestBase.closeCache());
+ member3.invoke(() -> FixedPartitioningTestBase.closeCache());
+ member4.invoke(() -> FixedPartitioningTestBase.closeCache());
}
finally {
// locally destroy all root regions and close the cache
@@ -1334,7 +1334,7 @@ public class FixedPartitioningTestBase extends DistributedTestCase {
Host host = Host.getHost(h);
for (int v = 0; v < host.getVMCount(); v++) {
VM vm = host.getVM(v);
- vm.invoke(FixedPartitioningTestBase.class, "remoteTearDown");
+ vm.invoke(() -> FixedPartitioningTestBase.remoteTearDown());
}
}
}