diff --git a/src/test/java/com/bandwidth/iris/sdk/BaseModelTests.java b/src/test/java/com/bandwidth/iris/sdk/BaseModelTests.java index 0bd3d92..6454f1c 100644 --- a/src/test/java/com/bandwidth/iris/sdk/BaseModelTests.java +++ b/src/test/java/com/bandwidth/iris/sdk/BaseModelTests.java @@ -1,12 +1,6 @@ package com.bandwidth.iris.sdk; import com.github.tomakehurst.wiremock.junit.WireMockRule; -import org.apache.commons.configuration.ConfigurationException; -import org.apache.log4j.ConsoleAppender; -import org.apache.log4j.Level; -import org.apache.log4j.Logger; -import org.apache.log4j.PatternLayout; -import org.junit.Before; import org.junit.Rule; import org.junit.rules.ExpectedException; @@ -22,15 +16,6 @@ protected IrisClient getDefaultClient() { return new IrisClient("http://localhost:8090", "accountId", "username", "password", "v1.0"); } - @Before - public void setUp() throws ConfigurationException { - org.apache.log4j.BasicConfigurator.configure(); - Logger.getRootLogger().setLevel(Level.DEBUG); - ConsoleAppender a = (ConsoleAppender) Logger.getRootLogger().getAllAppenders().nextElement(); - a.setLayout(new PatternLayout("%d{ABSOLUTE} %5p %c{1}:%L - [%t] %m%n")); - - } - public void setMessage(String s) { this.message = s; } diff --git a/src/test/java/com/bandwidth/iris/sdk/utils/XmlUtilsTest.java b/src/test/java/com/bandwidth/iris/sdk/utils/XmlUtilsTest.java index a77c419..886dbf5 100644 --- a/src/test/java/com/bandwidth/iris/sdk/utils/XmlUtilsTest.java +++ b/src/test/java/com/bandwidth/iris/sdk/utils/XmlUtilsTest.java @@ -1,26 +1,12 @@ package com.bandwidth.iris.sdk.utils; import com.bandwidth.iris.sdk.model.*; -import org.apache.commons.configuration.ConfigurationException; -import org.apache.log4j.ConsoleAppender; -import org.apache.log4j.Level; -import org.apache.log4j.Logger; -import org.apache.log4j.PatternLayout; -import org.junit.Before; import org.junit.Test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; public class XmlUtilsTest { - @Before - public void setUp() throws ConfigurationException { - org.apache.log4j.BasicConfigurator.configure(); - Logger.getRootLogger().setLevel(Level.DEBUG); - ConsoleAppender a = (ConsoleAppender) Logger.getRootLogger().getAllAppenders().nextElement(); - a.setLayout(new PatternLayout("%d{ABSOLUTE} %5p %c{1}:%L - [%t] %m%n")); - - } @Test public void testSerializeExistingTelephoneNumberOrderToXml() throws Exception {