You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by ji...@apache.org on 2016/06/28 19:04:56 UTC
incubator-geode git commit: GEODE-1551: add ignoredExcpetions for
CommandOverHttpDUnitTest
Repository: incubator-geode
Updated Branches:
refs/heads/develop 49d144bb2 -> e43ef7661
GEODE-1551: add ignoredExcpetions for CommandOverHttpDUnitTest
Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/e43ef766
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/e43ef766
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/e43ef766
Branch: refs/heads/develop
Commit: e43ef7661871f3dd07366fe1815b26d391414710
Parents: 49d144b
Author: Jinmei Liao <ji...@pivotal.io>
Authored: Tue Jun 28 11:09:11 2016 -0700
Committer: Jinmei Liao <ji...@pivotal.io>
Committed: Tue Jun 28 11:09:11 2016 -0700
----------------------------------------------------------------------
.../cli/commands/CliCommandTestBase.java | 35 +++++++++++---------
1 file changed, 20 insertions(+), 15 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/e43ef766/geode-core/src/test/java/com/gemstone/gemfire/management/internal/cli/commands/CliCommandTestBase.java
----------------------------------------------------------------------
diff --git a/geode-core/src/test/java/com/gemstone/gemfire/management/internal/cli/commands/CliCommandTestBase.java b/geode-core/src/test/java/com/gemstone/gemfire/management/internal/cli/commands/CliCommandTestBase.java
index ab2ce62..75d88aa 100644
--- a/geode-core/src/test/java/com/gemstone/gemfire/management/internal/cli/commands/CliCommandTestBase.java
+++ b/geode-core/src/test/java/com/gemstone/gemfire/management/internal/cli/commands/CliCommandTestBase.java
@@ -16,6 +16,22 @@
*/
package com.gemstone.gemfire.management.internal.cli.commands;
+import static com.gemstone.gemfire.distributed.ConfigurationProperties.*;
+import static com.gemstone.gemfire.test.dunit.Assert.*;
+import static com.gemstone.gemfire.test.dunit.LogWriterUtils.*;
+
+import java.io.IOException;
+import java.io.PrintStream;
+import java.net.InetAddress;
+import java.net.UnknownHostException;
+import java.util.Map;
+import java.util.Properties;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+import org.junit.Rule;
+import org.junit.rules.TemporaryFolder;
+
import com.gemstone.gemfire.cache.Cache;
import com.gemstone.gemfire.internal.AvailablePortHelper;
import com.gemstone.gemfire.management.ManagementService;
@@ -28,22 +44,8 @@ import com.gemstone.gemfire.management.internal.cli.shell.Gfsh;
import com.gemstone.gemfire.management.internal.cli.util.CommandStringBuilder;
import com.gemstone.gemfire.management.internal.security.JSONAuthorization;
import com.gemstone.gemfire.test.dunit.Host;
+import com.gemstone.gemfire.test.dunit.IgnoredException;
import com.gemstone.gemfire.test.dunit.cache.internal.JUnit4CacheTestCase;
-import org.junit.Rule;
-import org.junit.rules.TemporaryFolder;
-
-import java.io.IOException;
-import java.io.PrintStream;
-import java.net.InetAddress;
-import java.net.UnknownHostException;
-import java.util.Map;
-import java.util.Properties;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-import static com.gemstone.gemfire.test.dunit.Assert.*;
-import static com.gemstone.gemfire.test.dunit.LogWriterUtils.getLogWriter;
-import static com.gemstone.gemfire.distributed.ConfigurationProperties.*;
/**
* Base class for all the CLI/gfsh command dunit tests.
@@ -155,6 +157,9 @@ public abstract class CliCommandTestBase extends JUnit4CacheTestCase {
JSONAuthorization.setUpWithJsonFile(jsonFile);
}
+ IgnoredException.addIgnoredException("org.eclipse.jetty.io.EofException");
+ IgnoredException.addIgnoredException("java.nio.channels.ClosedChannelException");
+
results[0] = jmxHost;
results[1] = jmxPort;
results[2] = httpPort;