From 07d8bab53e080d20aeeb85c7e71ac4712dc02497 Mon Sep 17 00:00:00 2001 From: Tomas Cere Date: Tue, 31 May 2016 12:33:21 +0200 Subject: [PATCH] Add logger implementation to netconf-impl test scope Also rethrow exceptions on failures in ConcurrentClientsTest to make issues more apparent. Change-Id: I3e907568c6a384f9512a81c05ae798e11972f607 Signed-off-by: Tomas Cere --- netconf/netconf-impl/pom.xml | 5 +++++ .../org/opendaylight/netconf/impl/ConcurrentClientsTest.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/netconf/netconf-impl/pom.xml b/netconf/netconf-impl/pom.xml index 2f18c3e9d1..00f9712956 100644 --- a/netconf/netconf-impl/pom.xml +++ b/netconf/netconf-impl/pom.xml @@ -92,6 +92,11 @@ org.slf4j slf4j-api + + org.slf4j + slf4j-simple + test + ${project.groupId} netconf-client diff --git a/netconf/netconf-impl/src/test/java/org/opendaylight/netconf/impl/ConcurrentClientsTest.java b/netconf/netconf-impl/src/test/java/org/opendaylight/netconf/impl/ConcurrentClientsTest.java index 420a8f5d59..089fd78751 100644 --- a/netconf/netconf-impl/src/test/java/org/opendaylight/netconf/impl/ConcurrentClientsTest.java +++ b/netconf/netconf-impl/src/test/java/org/opendaylight/netconf/impl/ConcurrentClientsTest.java @@ -210,7 +210,7 @@ public class ConcurrentClientsTest { throw new IllegalStateException(e); } catch (ExecutionException e) { LOG.error("Thread for testing client failed", e); - fail("Client failed: " + e.getMessage()); + throw e; } } -- 2.36.6