Standardize import order and add maven plugin to check
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
This commit is contained in:
+2
-2
@@ -19,11 +19,11 @@
|
||||
*/
|
||||
package org.libresonic.player.controller;
|
||||
|
||||
import java.awt.Dimension;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import org.libresonic.player.util.Pair;
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
/**
|
||||
* @author Sindre Mehus
|
||||
* @version $Id: StreamControllerTestCase.java 3307 2013-01-04 13:48:49Z sindre_mehus $
|
||||
|
||||
+2
-2
@@ -19,10 +19,10 @@
|
||||
*/
|
||||
package org.libresonic.player.controller;
|
||||
|
||||
import java.awt.Dimension;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
/**
|
||||
* @author Sindre Mehus
|
||||
* @version $Id$
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package org.libresonic.player.dao;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
import junit.framework.TestCase;
|
||||
import liquibase.exception.LiquibaseException;
|
||||
import org.libresonic.player.TestCaseUtils;
|
||||
@@ -10,9 +9,10 @@ import org.libresonic.player.util.FileUtil;
|
||||
import org.libresonic.player.util.Util;
|
||||
import org.springframework.core.io.DefaultResourceLoader;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
|
||||
import org.springframework.jdbc.datasource.DriverManagerDataSource;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -19,14 +19,14 @@
|
||||
*/
|
||||
package org.libresonic.player.domain;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import org.libresonic.player.domain.PlayQueue.SortOrder;
|
||||
import org.libresonic.player.domain.PlayQueue.Status;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* Unit test of {@link PlayQueue}.
|
||||
*
|
||||
|
||||
+2
-2
@@ -19,14 +19,14 @@
|
||||
|
||||
package org.libresonic.player.domain;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import java.text.Collator;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class SortableArtistTestCase extends TestCase {
|
||||
|
||||
private Collator collator;
|
||||
|
||||
+1
@@ -20,6 +20,7 @@
|
||||
package org.libresonic.player.domain;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import static org.libresonic.player.domain.TranscodeScheme.*;
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,7 +24,7 @@ package org.libresonic.player.domain;
|
||||
* @author Sindre Mehus
|
||||
*/
|
||||
|
||||
import junit.framework.*;
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class VersionTestCase extends TestCase {
|
||||
|
||||
|
||||
+1
-5
@@ -22,11 +22,7 @@ package org.libresonic.player.io;
|
||||
import junit.framework.TestCase;
|
||||
import org.libresonic.player.util.HttpRange;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.io.*;
|
||||
|
||||
/**
|
||||
* @author Sindre Mehus
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
*/
|
||||
package org.libresonic.player.service;
|
||||
|
||||
import junit.framework.*;
|
||||
import junit.framework.TestCase;
|
||||
/**
|
||||
* Unit test of {@link SecurityService}.
|
||||
*
|
||||
|
||||
+4
-5
@@ -19,14 +19,13 @@
|
||||
*/
|
||||
package org.libresonic.player.service;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.Locale;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import org.libresonic.player.TestCaseUtils;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Arrays;
|
||||
import java.util.Locale;
|
||||
|
||||
/**
|
||||
* Unit test of {@link SettingsService}.
|
||||
*
|
||||
|
||||
+2
-2
@@ -19,11 +19,11 @@
|
||||
*/
|
||||
package org.libresonic.player.service.metadata;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import org.libresonic.player.domain.MediaFile;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
* Unit test of {@link MetaDataParser}.
|
||||
*
|
||||
|
||||
@@ -2,13 +2,7 @@ package org.libresonic.player.util;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.io.*;
|
||||
import java.net.JarURLConnection;
|
||||
import java.net.URL;
|
||||
import java.net.URLConnection;
|
||||
|
||||
@@ -19,13 +19,13 @@
|
||||
*/
|
||||
package org.libresonic.player.util;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import org.libresonic.player.domain.UrlRedirectType;
|
||||
|
||||
import java.net.MalformedURLException;
|
||||
import java.util.Arrays;
|
||||
import java.util.Locale;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import org.libresonic.player.domain.UrlRedirectType;
|
||||
|
||||
/**
|
||||
* Unit test of {@link StringUtil}.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user