diff --git a/src/test/java/com/omertron/themoviedbapi/AbstractTests.java b/src/test/java/com/omertron/themoviedbapi/AbstractTests.java index 52fdffb46..e78f34bbc 100644 --- a/src/test/java/com/omertron/themoviedbapi/AbstractTests.java +++ b/src/test/java/com/omertron/themoviedbapi/AbstractTests.java @@ -40,6 +40,12 @@ import static org.junit.Assert.fail; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.yamj.api.common.http.SimpleHttpClientBuilder; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.fail; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.fail; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.fail; public class AbstractTests { @@ -67,7 +73,7 @@ public class AbstractTests { * @throws MovieDbException */ protected static final void doConfiguration() throws MovieDbException { - TestLogger.Configure(); + TestLogger.configure(); httpClient = new SimpleHttpClientBuilder().build(); httpTools = new HttpTools(httpClient); diff --git a/src/test/java/com/omertron/themoviedbapi/CompareTest.java b/src/test/java/com/omertron/themoviedbapi/CompareTest.java index d4a7662a9..d18d35cac 100644 --- a/src/test/java/com/omertron/themoviedbapi/CompareTest.java +++ b/src/test/java/com/omertron/themoviedbapi/CompareTest.java @@ -26,6 +26,9 @@ import org.junit.BeforeClass; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.assertTrue; /** * @@ -49,7 +52,7 @@ public class CompareTest { @BeforeClass public static void setUpClass() { - TestLogger.Configure(); + TestLogger.configure(); // Set the default comparison movie moviedb = new MovieInfo(); diff --git a/src/test/java/com/omertron/themoviedbapi/TestLogger.java b/src/test/java/com/omertron/themoviedbapi/TestLogger.java index 35d18e279..33cedb7aa 100644 --- a/src/test/java/com/omertron/themoviedbapi/TestLogger.java +++ b/src/test/java/com/omertron/themoviedbapi/TestLogger.java @@ -43,12 +43,12 @@ public class TestLogger { } /** - * Configure the logger with a simple in-memory file for the required log level + * configure the logger with a simple in-memory file for the required log level * * @param level The logging level required * @return True if successful */ - public static boolean Configure(String level) { + public static boolean configure(String level) { StringBuilder config = new StringBuilder("handlers = java.util.logging.ConsoleHandler\n"); config.append(".level = ").append(level).append(CRLF); config.append("java.util.logging.ConsoleHandler.level = ").append(level).append(CRLF); @@ -73,8 +73,8 @@ public class TestLogger { * * @return True if successful */ - public static boolean Configure() { - return Configure("ALL"); + public static boolean configure() { + return TestLogger.configure("ALL"); } /** diff --git a/src/test/java/com/omertron/themoviedbapi/tools/ApiUrlTest.java b/src/test/java/com/omertron/themoviedbapi/tools/ApiUrlTest.java index eb82c0a4b..4a8cb7d00 100644 --- a/src/test/java/com/omertron/themoviedbapi/tools/ApiUrlTest.java +++ b/src/test/java/com/omertron/themoviedbapi/tools/ApiUrlTest.java @@ -29,6 +29,9 @@ import org.junit.BeforeClass; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertEquals; /** * Test case for ApiUrl @@ -46,7 +49,7 @@ public class ApiUrlTest { @BeforeClass public static void setUpClass() { - TestLogger.Configure(); + TestLogger.configure(); } @AfterClass