You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by ud...@apache.org on 2018/09/07 00:34:24 UTC
[geode] branch feature/GEODE-5705 updated: GEODE-5705: Fix test to
not test Illegal DSCodes
This is an automated email from the ASF dual-hosted git repository.
udo pushed a commit to branch feature/GEODE-5705
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/feature/GEODE-5705 by this push:
new 4b41453 GEODE-5705: Fix test to not test Illegal DSCodes
4b41453 is described below
commit 4b41453b46dd1218675ec22eaf643cea2f59a8cb
Author: Udo Kohlmeyer <uk...@pivotal.io>
AuthorDate: Thu Sep 6 17:34:13 2018 -0700
GEODE-5705: Fix test to not test Illegal DSCodes
---
geode-core/src/test/java/org/apache/geode/internal/DSCODETest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/geode-core/src/test/java/org/apache/geode/internal/DSCODETest.java b/geode-core/src/test/java/org/apache/geode/internal/DSCODETest.java
index 0b74835..d84b1ce 100644
--- a/geode-core/src/test/java/org/apache/geode/internal/DSCODETest.java
+++ b/geode-core/src/test/java/org/apache/geode/internal/DSCODETest.java
@@ -42,7 +42,7 @@ public class DSCODETest {
@Test
public void testGetEnumFromByte() {
- Arrays.stream(DSCODE.values())
+ Arrays.stream(DSCODE.values()).filter(dscode -> dscode != DSCODE.RESERVED_FOR_FUTURE_USE && dscode != DSCODE.ILLEGAL)
.forEach(dscode -> Assert.assertEquals(dscode, DscodeHelper.toDSCODE(dscode.toByte())));
}
}