geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aging...@apache.org
Subject geode git commit: Applying spotless on tests added for GEODE-1672
Date Wed, 01 Feb 2017 22:00:48 GMT
Repository: geode
Updated Branches:
  refs/heads/develop 2ee1ecd2b -> e482b693c


Applying spotless on tests added for GEODE-1672


Project: http://git-wip-us.apache.org/repos/asf/geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode/commit/e482b693
Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/e482b693
Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/e482b693

Branch: refs/heads/develop
Commit: e482b693cfe2c827c9db8ae0ae77d25331c5a779
Parents: 2ee1ecd
Author: Anil <agingade@pivotal.io>
Authored: Wed Feb 1 13:59:34 2017 -0800
Committer: Anil <agingade@pivotal.io>
Committed: Wed Feb 1 14:00:30 2017 -0800

----------------------------------------------------------------------
 .../internal/cache/DiskLruRegRecoveryJUnitTest.java      |  9 +++++----
 .../cache/PersistentPartitionedRegionJUnitTest.java      | 11 +++++++----
 2 files changed, 12 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/e482b693/geode-core/src/test/java/org/apache/geode/internal/cache/DiskLruRegRecoveryJUnitTest.java
----------------------------------------------------------------------
diff --git a/geode-core/src/test/java/org/apache/geode/internal/cache/DiskLruRegRecoveryJUnitTest.java
b/geode-core/src/test/java/org/apache/geode/internal/cache/DiskLruRegRecoveryJUnitTest.java
index 0bf3b38..bf5a71a 100644
--- a/geode-core/src/test/java/org/apache/geode/internal/cache/DiskLruRegRecoveryJUnitTest.java
+++ b/geode-core/src/test/java/org/apache/geode/internal/cache/DiskLruRegRecoveryJUnitTest.java
@@ -124,7 +124,8 @@ public class DiskLruRegRecoveryJUnitTest extends DiskRegionTestingBase
{
     }
 
     int valuesInVm = getValuesInVM(region, load);
-    assertEquals("Values for lru regions should not be recovered from Disk.", expectedValues,
valuesInVm);
+    assertEquals("Values for lru regions should not be recovered from Disk.", expectedValues,
+        valuesInVm);
 
     if (nonLruRegion != null) {
       valuesInVm = getValuesInVM(nonLruRegion, load);
@@ -211,7 +212,7 @@ public class DiskLruRegRecoveryJUnitTest extends DiskRegionTestingBase
{
       } else {
         System.clearProperty(DiskStoreImpl.RECOVER_VALUE_PROPERTY_NAME);
       }
-      
+
       if (lruOldValue != null) {
         System.setProperty(DiskStoreImpl.RECOVER_LRU_VALUES_PROPERTY_NAME, lruOldValue);
       } else {
@@ -221,7 +222,7 @@ public class DiskLruRegRecoveryJUnitTest extends DiskRegionTestingBase
{
   }
 
   @Test
-  public void testValuesAreRecoveredForLruRegionWithReocoverValueAndRecoverLruPropertySetWithRegionClose()
{    
+  public void testValuesAreRecoveredForLruRegionWithReocoverValueAndRecoverLruPropertySetWithRegionClose()
{
     String oldValue = System.getProperty(DiskStoreImpl.RECOVER_VALUE_PROPERTY_NAME);
     System.setProperty(DiskStoreImpl.RECOVER_VALUE_PROPERTY_NAME, "true");
 
@@ -236,7 +237,7 @@ public class DiskLruRegRecoveryJUnitTest extends DiskRegionTestingBase
{
       } else {
         System.clearProperty(DiskStoreImpl.RECOVER_VALUE_PROPERTY_NAME);
       }
-      
+
       if (lruOldValue != null) {
         System.setProperty(DiskStoreImpl.RECOVER_LRU_VALUES_PROPERTY_NAME, lruOldValue);
       } else {

http://git-wip-us.apache.org/repos/asf/geode/blob/e482b693/geode-core/src/test/java/org/apache/geode/internal/cache/PersistentPartitionedRegionJUnitTest.java
----------------------------------------------------------------------
diff --git a/geode-core/src/test/java/org/apache/geode/internal/cache/PersistentPartitionedRegionJUnitTest.java
b/geode-core/src/test/java/org/apache/geode/internal/cache/PersistentPartitionedRegionJUnitTest.java
index a72b069..478f5e3 100644
--- a/geode-core/src/test/java/org/apache/geode/internal/cache/PersistentPartitionedRegionJUnitTest.java
+++ b/geode-core/src/test/java/org/apache/geode/internal/cache/PersistentPartitionedRegionJUnitTest.java
@@ -235,7 +235,7 @@ public class PersistentPartitionedRegionJUnitTest {
       } else {
         System.clearProperty(DiskStoreImpl.RECOVER_VALUE_PROPERTY_NAME);
       }
-      
+
       if (lruOldValue != null) {
         System.setProperty(DiskStoreImpl.RECOVER_LRU_VALUES_PROPERTY_NAME, lruOldValue);
       } else {
@@ -254,7 +254,8 @@ public class PersistentPartitionedRegionJUnitTest {
     createLRURegionAndValidateRecovery(true, false, 10, 0);
   }
 
-  private void createLRURegionAndValidateRecovery(boolean isRegionClose, boolean heapLru,
int size, int expectedInMemory) {
+  private void createLRURegionAndValidateRecovery(boolean isRegionClose, boolean heapLru,
int size,
+      int expectedInMemory) {
     PartitionedRegion region;
     boolean entryLru = !heapLru;
     region = (PartitionedRegion) createRegion(-1, heapLru, entryLru);
@@ -286,10 +287,12 @@ public class PersistentPartitionedRegionJUnitTest {
     }
 
     int valuesInVm = getValuesInVM(region, size);
-    assertEquals("Values for lru regions should not be recovered from Disk.", expectedInMemory,
valuesInVm);
+    assertEquals("Values for lru regions should not be recovered from Disk.", expectedInMemory,
+        valuesInVm);
 
     BucketRegion bucket = region.getBucketRegion("A");
-    assertEquals((size - expectedInMemory), bucket.getDiskRegion().getStats().getNumOverflowOnDisk());
+    assertEquals((size - expectedInMemory),
+        bucket.getDiskRegion().getStats().getNumOverflowOnDisk());
     assertEquals(expectedInMemory, bucket.getDiskRegion().getStats().getNumEntriesInVM());
 
     // Load values into memory using get.


Mime
View raw message