Skip to content

Commit

Permalink
Cleaned imports (#449)
Browse files Browse the repository at this point in the history
* Import cleanup

* Replaced junit.framework with org.junit packages - framework is ‘internal’
  • Loading branch information
garethahealy authored Jul 6, 2017
1 parent 485aff9 commit 77ee866
Show file tree
Hide file tree
Showing 50 changed files with 29 additions and 57 deletions.
1 change: 0 additions & 1 deletion core/src/main/java/org/dozer/DozerBeanMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
import org.dozer.util.DozerClassLoader;
import org.dozer.util.MappingValidator;
import org.dozer.util.RuntimeUtils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
1 change: 1 addition & 0 deletions core/src/main/java/org/dozer/DozerBeanMapperBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import java.util.Map;
import java.util.function.Supplier;
import java.util.stream.Collectors;

import org.dozer.builder.DestBeanBuilderCreator;
import org.dozer.classmap.ClassMapBuilder;
import org.dozer.classmap.MappingFileData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
*/
package org.dozer;

import org.dozer.util.DozerConstants;

/**
* Public Singleton wrapper for the DozerBeanMapper. Only supports a single mapping file named dozerBeanMapping.xml, so
* configuration is very limited. Instead of using the DozerBeanMapperSingletonWrapper, it is recommended that the
Expand Down
1 change: 1 addition & 0 deletions core/src/main/java/org/dozer/DozerModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import java.util.Collection;
import java.util.Collections;

import org.dozer.builder.BeanBuilderCreationStrategy;
import org.dozer.classmap.generator.BeanFieldsDetector;
import org.dozer.config.BeanContainer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
package org.dozer.classmap;

import org.apache.commons.lang3.StringUtils;

import org.dozer.config.BeanContainer;
import org.dozer.util.MappingUtils;

Expand Down
1 change: 0 additions & 1 deletion core/src/main/java/org/dozer/classmap/ClassMappings.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import java.util.concurrent.ConcurrentMap;

import org.apache.commons.lang3.StringUtils;

import org.dozer.config.BeanContainer;
import org.dozer.util.MappingUtils;

Expand Down
4 changes: 1 addition & 3 deletions core/src/main/java/org/dozer/classmap/DozerClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@
*/
package org.dozer.classmap;


import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import org.dozer.config.BeanContainer;
import org.dozer.util.MappingUtils;

Expand Down Expand Up @@ -148,4 +146,4 @@ public void setAccessible(Boolean accessible) {
public String toString() {
return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

import org.apache.commons.beanutils.Converter;
import org.apache.commons.lang3.StringUtils;

import org.dozer.config.BeanContainer;
import org.dozer.util.MappingUtils;
import org.dozer.util.ReflectionUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import org.apache.commons.beanutils.converters.DoubleConverter;
import org.apache.commons.beanutils.converters.FloatConverter;
import org.apache.commons.lang3.ClassUtils;

import org.dozer.config.BeanContainer;
import org.dozer.util.MappingUtils;

Expand Down
1 change: 0 additions & 1 deletion core/src/main/java/org/dozer/fieldmap/HintContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import org.dozer.config.BeanContainer;
import org.dozer.util.MappingUtils;

Expand Down
1 change: 0 additions & 1 deletion core/src/main/java/org/dozer/loader/xml/XMLParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import org.dozer.loader.DozerBuilder;
import org.dozer.loader.MappingsSource;
import org.dozer.propertydescriptor.PropertyDescriptorFactory;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

import org.dozer.MappingException;
import org.dozer.config.BeanContainer;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import java.lang.reflect.Field;
import java.lang.reflect.Type;

import org.dozer.factory.DestBeanCreator;
import org.dozer.fieldmap.FieldMap;
import org.dozer.fieldmap.HintContainer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import java.lang.reflect.Method;

import org.apache.commons.beanutils.PropertyUtils;

import org.dozer.config.BeanContainer;
import org.dozer.factory.DestBeanCreator;
import org.dozer.fieldmap.HintContainer;
Expand Down
1 change: 1 addition & 0 deletions core/src/main/java/org/dozer/util/ReflectionUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import java.util.Collection;
import java.util.List;
import java.util.StringTokenizer;

import org.apache.commons.beanutils.PropertyUtils;
import org.apache.commons.lang3.ClassUtils;
import org.apache.commons.lang3.StringUtils;
Expand Down
1 change: 0 additions & 1 deletion core/src/test/java/org/dozer/DozerBeanMapperTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import java.util.concurrent.atomic.AtomicInteger;

import org.apache.commons.beanutils.PropertyUtils;

import org.dozer.builder.DestBeanBuilderCreator;
import org.dozer.classmap.ClassMapBuilder;
import org.dozer.classmap.generator.BeanMappingGenerator;
Expand Down
2 changes: 1 addition & 1 deletion core/src/test/java/org/dozer/DozerInitializerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
import org.dozer.stats.StatisticsManagerImpl;
import org.dozer.util.DefaultClassLoader;
import org.dozer.util.DozerConstants;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import org.dozer.AbstractDozerTest;
import org.dozer.MappingException;
import org.dozer.stats.StatisticsManager;

import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
Expand Down
1 change: 0 additions & 1 deletion core/src/test/java/org/dozer/cache/DozerCacheTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import org.dozer.AbstractDozerTest;
import org.dozer.stats.StatisticsManager;

import org.junit.Rule;
import org.junit.Test;
import org.mockito.Mock;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import org.dozer.AbstractDozerTest;
import org.dozer.config.BeanContainer;

import org.junit.Before;
import org.junit.Test;

Expand Down
1 change: 0 additions & 1 deletion core/src/test/java/org/dozer/classmap/ClassMapTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import org.dozer.fieldmap.FieldMap;
import org.dozer.fieldmap.GenericFieldMap;
import org.dozer.propertydescriptor.PropertyDescriptorFactory;

import org.junit.Before;
import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.dozer.AbstractDozerTest;
import org.dozer.MappingException;
import org.dozer.config.BeanContainer;

import org.junit.Before;
import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
*/
package org.dozer.classmap.generator;

import static junit.framework.TestCase.assertFalse;
import static junit.framework.TestCase.assertTrue;


import org.dozer.config.BeanContainer;
import org.dozer.functional_tests.runner.ProxyDataObjectInstantiator;
import org.junit.Test;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

/**
* @author Dmitry Spikhalskiy
* @since 27.11.12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.dozer.cache.CacheKeyFactory;
import org.dozer.cache.DozerCache;
import org.dozer.stats.StatisticsManager;

import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@

import org.dozer.AbstractDozerTest;
import org.dozer.config.BeanContainer;

import org.junit.Assert;
import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import org.dozer.AbstractDozerTest;
import org.dozer.MappingException;
import org.dozer.config.BeanContainer;

import org.junit.Before;
import org.junit.Test;

Expand Down
1 change: 0 additions & 1 deletion core/src/test/java/org/dozer/fieldmap/FieldMapTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import org.dozer.config.BeanContainer;
import org.dozer.factory.DestBeanCreator;
import org.dozer.propertydescriptor.PropertyDescriptorFactory;

import org.junit.Before;
import org.junit.Test;

Expand Down
1 change: 0 additions & 1 deletion core/src/test/java/org/dozer/fieldmap/MapFieldMapTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import org.dozer.config.BeanContainer;
import org.dozer.factory.DestBeanCreator;
import org.dozer.propertydescriptor.PropertyDescriptorFactory;

import org.junit.Test;

import static org.mockito.Mockito.mock;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import org.dozer.functional_tests.runner.Proxied;
import org.dozer.functional_tests.support.TestDataFactory;
import org.dozer.util.DozerConstants;

import org.junit.Before;
import org.junit.runner.RunWith;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@

import javax.xml.datatype.XMLGregorianCalendar;

import static junit.framework.Assert.assertNotNull;
import static junit.framework.Assert.assertNotSame;

import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl;

import org.dozer.DozerBeanMapperBuilder;
Expand All @@ -32,8 +29,8 @@
import org.junit.Test;

import static org.junit.Assert.assertEquals;


import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNotSame;

/**
* @author Dmitry Buzdin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
import java.util.List;
import java.util.Map;

import static junit.framework.Assert.assertTrue;

import org.dozer.DozerBeanMapperBuilder;
import org.dozer.DozerConverter;
import org.dozer.Mapper;
Expand All @@ -30,6 +28,7 @@

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

/**
* @author dmitry.buzdin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
package org.dozer.functional_tests;

import static junit.framework.Assert.fail;

import org.dozer.MappingException;
import org.hamcrest.Matchers;
Expand All @@ -25,6 +24,8 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import static org.junit.Assert.fail;

public class InvalidMapping_WithExceptionsLoggedTest extends AbstractFunctionalTest {

@Rule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
package org.dozer.functional_tests;

import static junit.framework.Assert.assertTrue;

import org.dozer.vo.jaxb.employee.EmployeeType;
import org.junit.Before;
Expand All @@ -25,6 +24,7 @@

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

public class JAXBBeansMapping_WithExceptionLoggedTest extends AbstractFunctionalTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@

import java.util.ArrayList;

import static junit.framework.Assert.assertTrue;

import org.junit.Test;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

/**
* @author dmitry.buzdin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
import static junit.framework.Assert.assertNotNull;
import org.dozer.functional_tests.runner.ProxyDataObjectInstantiator;

import org.dozer.functional_tests.runner.ProxyDataObjectInstantiator;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

/**
* @author dmitry.buzdin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.dozer.loader.api.BeanMappingBuilder;
import org.junit.Assert;
import org.junit.Test;

import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.when;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
import java.util.Map;
import java.util.TreeMap;

import static junit.framework.Assert.assertNotSame;

import org.dozer.DozerBeanMapperBuilder;
import org.dozer.Mapper;
import org.dozer.classmap.RelationshipType;
Expand All @@ -36,6 +34,7 @@

import static org.dozer.loader.api.FieldsMappingOptions.collectionStrategy;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotSame;

/**
* @author Dmitry Buzdin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import java.util.HashSet;
import java.util.Set;

import org.dozer.DozerBeanMapperBuilder;
import org.dozer.DozerConverter;
import org.dozer.Mapper;
Expand Down
Loading

0 comments on commit 77ee866

Please sign in to comment.