GEODE-3023: Rename DelaySocketCreator.java to DummySocketCreator.java

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

Branch: refs/heads/feature/GEODE-3023
Commit: 7b05e60620e6a65b98fa682c730bcb08d22eb111
Parents: eee1537
Author: Udo Kohlmeyer <[email protected]>
Authored: Fri Jun 9 13:11:46 2017 -0700
Committer: Udo Kohlmeyer <[email protected]>
Committed: Fri Jun 9 13:13:15 2017 -0700

----------------------------------------------------------------------
 .../tcpserver/TCPServerSSLJUnitTest.java        |  1 -
 .../geode/internal/net/DelaySocketCreator.java  | 45 --------------------
 .../geode/internal/net/DummySocketCreator.java  | 45 ++++++++++++++++++++
 3 files changed, 45 insertions(+), 46 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/7b05e606/geode-core/src/test/java/org/apache/geode/distributed/internal/tcpserver/TCPServerSSLJUnitTest.java
----------------------------------------------------------------------
diff --git 
a/geode-core/src/test/java/org/apache/geode/distributed/internal/tcpserver/TCPServerSSLJUnitTest.java
 
b/geode-core/src/test/java/org/apache/geode/distributed/internal/tcpserver/TCPServerSSLJUnitTest.java
index fbec1bc..73e6194 100644
--- 
a/geode-core/src/test/java/org/apache/geode/distributed/internal/tcpserver/TCPServerSSLJUnitTest.java
+++ 
b/geode-core/src/test/java/org/apache/geode/distributed/internal/tcpserver/TCPServerSSLJUnitTest.java
@@ -29,7 +29,6 @@ import 
org.apache.geode.distributed.internal.DistributionConfigImpl;
 import org.apache.geode.distributed.internal.PoolStatHelper;
 import org.apache.geode.internal.AvailablePort;
 import org.apache.geode.internal.admin.SSLConfig;
-import org.apache.geode.internal.net.DelaySocketCreator;
 import org.apache.geode.internal.net.DummySocketCreator;
 import org.apache.geode.internal.net.SSLConfigurationFactory;
 import org.apache.geode.internal.net.SocketCreator;

http://git-wip-us.apache.org/repos/asf/geode/blob/7b05e606/geode-core/src/test/java/org/apache/geode/internal/net/DelaySocketCreator.java
----------------------------------------------------------------------
diff --git 
a/geode-core/src/test/java/org/apache/geode/internal/net/DelaySocketCreator.java
 
b/geode-core/src/test/java/org/apache/geode/internal/net/DelaySocketCreator.java
deleted file mode 100644
index bfff90b..0000000
--- 
a/geode-core/src/test/java/org/apache/geode/internal/net/DelaySocketCreator.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more 
contributor license
- * agreements. See the NOTICE file distributed with this work for additional 
information regarding
- * copyright ownership. The ASF licenses this file to You under the Apache 
License, Version 2.0 (the
- * "License"); you may not use this file except in compliance with the 
License. You may obtain a
- * copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software 
distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 
KIND, either express
- * or implied. See the License for the specific language governing permissions 
and limitations under
- * the License.
- */
-package org.apache.geode.internal.net;
-
-import org.apache.geode.internal.admin.SSLConfig;
-
-import java.io.IOException;
-import java.net.Socket;
-import java.util.List;
-import javax.net.ssl.SSLException;
-
-public class DelaySocketCreator extends SocketCreator {
-
-  private List<Integer> socketSoTimeouts;
-
-  /**
-   * Constructs new SocketCreator instance.
-   */
-  public DelaySocketCreator(SSLConfig sslConfig, List<Integer> sockets) {
-    super(sslConfig);
-    this.socketSoTimeouts = sockets;
-  }
-
-  @Override
-  public void configureServerSSLSocket(Socket socket) throws IOException {
-    this.socketSoTimeouts.add(socket.getSoTimeout());
-    throw new SSLException("This is a test SSLException");
-  }
-
-  public List<Integer> getSocketSoTimeouts() {
-    return socketSoTimeouts;
-  }
-}

http://git-wip-us.apache.org/repos/asf/geode/blob/7b05e606/geode-core/src/test/java/org/apache/geode/internal/net/DummySocketCreator.java
----------------------------------------------------------------------
diff --git 
a/geode-core/src/test/java/org/apache/geode/internal/net/DummySocketCreator.java
 
b/geode-core/src/test/java/org/apache/geode/internal/net/DummySocketCreator.java
new file mode 100644
index 0000000..2c5ff92
--- /dev/null
+++ 
b/geode-core/src/test/java/org/apache/geode/internal/net/DummySocketCreator.java
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more 
contributor license
+ * agreements. See the NOTICE file distributed with this work for additional 
information regarding
+ * copyright ownership. The ASF licenses this file to You under the Apache 
License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the 
License. You may obtain a
+ * copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software 
distributed under the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 
KIND, either express
+ * or implied. See the License for the specific language governing permissions 
and limitations under
+ * the License.
+ */
+package org.apache.geode.internal.net;
+
+import org.apache.geode.internal.admin.SSLConfig;
+
+import java.io.IOException;
+import java.net.Socket;
+import java.util.List;
+import javax.net.ssl.SSLException;
+
+public class DummySocketCreator extends SocketCreator {
+
+  private List<Integer> socketSoTimeouts;
+
+  /**
+   * Constructs new SocketCreator instance.
+   */
+  public DummySocketCreator(SSLConfig sslConfig, List<Integer> sockets) {
+    super(sslConfig);
+    this.socketSoTimeouts = sockets;
+  }
+
+  @Override
+  public void configureServerSSLSocket(Socket socket) throws IOException {
+    this.socketSoTimeouts.add(socket.getSoTimeout());
+    throw new SSLException("This is a test SSLException");
+  }
+
+  public List<Integer> getSocketSoTimeouts() {
+    return socketSoTimeouts;
+  }
+}

Reply via email to