summaryrefslogtreecommitdiffstats
path: root/orchestrator/src
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorn.christian@seime.no>2020-01-08 14:22:31 +0100
committerGitHub <noreply@github.com>2020-01-08 14:22:31 +0100
commita10c54b1a05326021c37d428a0e03117ef765380 (patch)
treefddfc08168d84b3c6615bb3285d7bcf65e9f7c3e /orchestrator/src
parentbd1868da7bcfc5d24216596ebb3c7a8fb27f6fb8 (diff)
Revert "Revert "Bjorncs/apache commons libraries cleanup""
Diffstat (limited to 'orchestrator/src')
-rw-r--r--orchestrator/src/test/java/com/yahoo/vespa/orchestrator/status/ZookeeperStatusServiceTest.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/orchestrator/src/test/java/com/yahoo/vespa/orchestrator/status/ZookeeperStatusServiceTest.java b/orchestrator/src/test/java/com/yahoo/vespa/orchestrator/status/ZookeeperStatusServiceTest.java
index 707c81b92a5..4191636e7fe 100644
--- a/orchestrator/src/test/java/com/yahoo/vespa/orchestrator/status/ZookeeperStatusServiceTest.java
+++ b/orchestrator/src/test/java/com/yahoo/vespa/orchestrator/status/ZookeeperStatusServiceTest.java
@@ -1,6 +1,7 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.orchestrator.status;
+import com.yahoo.exception.ExceptionUtils;
import com.yahoo.jdisc.Metric;
import com.yahoo.jdisc.Timer;
import com.yahoo.jdisc.test.TestTimer;
@@ -9,7 +10,7 @@ import com.yahoo.vespa.applicationmodel.ApplicationInstanceReference;
import com.yahoo.vespa.curator.Curator;
import com.yahoo.vespa.orchestrator.OrchestratorContext;
import com.yahoo.vespa.orchestrator.TestIds;
-import org.apache.commons.lang.exception.ExceptionUtils;
+import com.yahoo.yolean.Exceptions;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.test.KillSession;
import org.apache.curator.test.TestingServer;
@@ -219,8 +220,8 @@ public class ZookeeperStatusServiceTest {
getException(item).ifPresent( throwable ->
mismatchDescription
.appendText("Got exception: ")
- .appendText(ExceptionUtils.getMessage(throwable))
- .appendText(ExceptionUtils.getFullStackTrace(throwable)));
+ .appendText(Exceptions.toMessageString(throwable))
+ .appendText(ExceptionUtils.getStackTraceRecursivelyAsString(throwable)));
}
};
}