Skip to content

Commit

Permalink
Remove remaining references to log4j
Browse files Browse the repository at this point in the history
  • Loading branch information
hamermike committed Dec 10, 2021
1 parent 5ac096f commit b179319
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
15 changes: 0 additions & 15 deletions src/test/java/com/bandwidth/iris/sdk/BaseModelTests.java
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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;
}
Expand Down
14 changes: 0 additions & 14 deletions src/test/java/com/bandwidth/iris/sdk/utils/XmlUtilsTest.java
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit b179319

Please sign in to comment.