From 4278099cea1f9b3c60f35c68bf13d6198b667f2b Mon Sep 17 00:00:00 2001 From: Andreea Dragoi Date: Wed, 27 Apr 2016 12:22:40 +0000 Subject: [PATCH] Merged 5.1.N (5.1.2) to 5.2.N (5.2.1) 125817 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2) 125673 abalmus: MNT-15421 : Intermittent failure SubsystemsTest.testAbstractPropertyBackedBean_performEarlyPropertyChecks_PortEarlyPropertyChecker - Fixed intermittently failing test git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@125859 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../subsystems/PortEarlyPropertyChecker.java | 9 +++++++-- source/test-resources/subsystem-test-context.xml | 14 ++++++++++++-- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/source/java/org/alfresco/repo/management/subsystems/PortEarlyPropertyChecker.java b/source/java/org/alfresco/repo/management/subsystems/PortEarlyPropertyChecker.java index 3515c68f0d..2ab0b4abf6 100644 --- a/source/java/org/alfresco/repo/management/subsystems/PortEarlyPropertyChecker.java +++ b/source/java/org/alfresco/repo/management/subsystems/PortEarlyPropertyChecker.java @@ -116,7 +116,7 @@ public class PortEarlyPropertyChecker implements SubsystemEarlyPropertyChecker { try { - PortUtil.checkPort(portNumber, host); + checkPort(portNumber, host); } catch (IOException ioe) { @@ -164,7 +164,7 @@ public class PortEarlyPropertyChecker implements SubsystemEarlyPropertyChecker { try { - PortUtil.checkPort(portNumber, host); + checkPort(portNumber, host); } catch (IOException ioe) { @@ -223,6 +223,11 @@ public class PortEarlyPropertyChecker implements SubsystemEarlyPropertyChecker } } + protected void checkPort(int portNumber, String host) throws IOException + { + PortUtil.checkPort(portNumber, host); + } + private String appendToErrorString(String stringToAppendTo, String separator, String valueToAppend) { if (!stringToAppendTo.equals("")) diff --git a/source/test-resources/subsystem-test-context.xml b/source/test-resources/subsystem-test-context.xml index 823ab03d50..64bd78ebc3 100644 --- a/source/test-resources/subsystem-test-context.xml +++ b/source/test-resources/subsystem-test-context.xml @@ -29,16 +29,22 @@ - + + + + - + + + + @@ -50,4 +56,8 @@ + + + + \ No newline at end of file