Sonar: method naming
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user