Skip to content

Commit 63b7623

Browse files
authored
Merge pull request #41 from Bandwidth/task/remove-log4j-usage
DX-2328 Remove remaining references to log4j
2 parents 5ac096f + b179319 commit 63b7623

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

src/test/java/com/bandwidth/iris/sdk/BaseModelTests.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
package com.bandwidth.iris.sdk;
22

33
import com.github.tomakehurst.wiremock.junit.WireMockRule;
4-
import org.apache.commons.configuration.ConfigurationException;
5-
import org.apache.log4j.ConsoleAppender;
6-
import org.apache.log4j.Level;
7-
import org.apache.log4j.Logger;
8-
import org.apache.log4j.PatternLayout;
9-
import org.junit.Before;
104
import org.junit.Rule;
115
import org.junit.rules.ExpectedException;
126

@@ -22,15 +16,6 @@ protected IrisClient getDefaultClient() {
2216
return new IrisClient("http://localhost:8090", "accountId", "username", "password", "v1.0");
2317
}
2418

25-
@Before
26-
public void setUp() throws ConfigurationException {
27-
org.apache.log4j.BasicConfigurator.configure();
28-
Logger.getRootLogger().setLevel(Level.DEBUG);
29-
ConsoleAppender a = (ConsoleAppender) Logger.getRootLogger().getAllAppenders().nextElement();
30-
a.setLayout(new PatternLayout("%d{ABSOLUTE} %5p %c{1}:%L - [%t] %m%n"));
31-
32-
}
33-
3419
public void setMessage(String s) {
3520
this.message = s;
3621
}

src/test/java/com/bandwidth/iris/sdk/utils/XmlUtilsTest.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,12 @@
11
package com.bandwidth.iris.sdk.utils;
22

33
import com.bandwidth.iris.sdk.model.*;
4-
import org.apache.commons.configuration.ConfigurationException;
5-
import org.apache.log4j.ConsoleAppender;
6-
import org.apache.log4j.Level;
7-
import org.apache.log4j.Logger;
8-
import org.apache.log4j.PatternLayout;
9-
import org.junit.Before;
104
import org.junit.Test;
115

126
import static org.junit.Assert.assertEquals;
137
import static org.junit.Assert.assertNotNull;
148

159
public class XmlUtilsTest {
16-
@Before
17-
public void setUp() throws ConfigurationException {
18-
org.apache.log4j.BasicConfigurator.configure();
19-
Logger.getRootLogger().setLevel(Level.DEBUG);
20-
ConsoleAppender a = (ConsoleAppender) Logger.getRootLogger().getAllAppenders().nextElement();
21-
a.setLayout(new PatternLayout("%d{ABSOLUTE} %5p %c{1}:%L - [%t] %m%n"));
22-
23-
}
2410

2511
@Test
2612
public void testSerializeExistingTelephoneNumberOrderToXml() throws Exception {

0 commit comments

Comments
 (0)