mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#103 Formatting, added a todo
This commit is contained in:
parent
8fe7a846c8
commit
8c8f27ca6b
@ -23,7 +23,6 @@ import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.SortedSet;
|
||||
import java.util.TreeSet;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
import javax.lang.model.element.ElementKind;
|
||||
import javax.lang.model.element.TypeElement;
|
||||
|
@ -19,7 +19,6 @@
|
||||
package org.mapstruct.ap.model.common;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.lang.model.element.Modifier;
|
||||
|
||||
/**
|
||||
|
@ -22,7 +22,6 @@ import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.lang.model.element.ExecutableElement;
|
||||
import javax.lang.model.element.Modifier;
|
||||
|
||||
|
@ -33,10 +33,11 @@ import org.testng.annotations.Test;
|
||||
*
|
||||
* @author Andreas Gudian
|
||||
*/
|
||||
@WithClasses( { Source.class, Target.class, DefaultSourceTargetMapperAbstr.class, DefaultSourceTargetMapperIfc.class } )
|
||||
@WithClasses({ Source.class, Target.class, DefaultSourceTargetMapperAbstr.class, DefaultSourceTargetMapperIfc.class })
|
||||
public class AccessibilityTest extends MapperTestBase {
|
||||
|
||||
@Test
|
||||
@IssueKey( "103" )
|
||||
@IssueKey("103")
|
||||
public void testGeneratedModifiersFromAbstractClassAreCorrect() throws Exception {
|
||||
Class<?> defaultFromAbstract = loadForMapper( DefaultSourceTargetMapperAbstr.class );
|
||||
|
||||
@ -48,7 +49,7 @@ public class AccessibilityTest extends MapperTestBase {
|
||||
}
|
||||
|
||||
@Test
|
||||
@IssueKey( "103" )
|
||||
@IssueKey("103")
|
||||
public void testGeneratedModifiersFromInterfaceAreCorrect() throws Exception {
|
||||
Class<?> defaultFromIfc = loadForMapper( DefaultSourceTargetMapperIfc.class );
|
||||
|
||||
|
@ -22,7 +22,6 @@ import org.mapstruct.Mapper;
|
||||
|
||||
/**
|
||||
* @author Andreas Gudian
|
||||
*
|
||||
*/
|
||||
@Mapper
|
||||
abstract class DefaultSourceTargetMapperAbstr {
|
||||
|
@ -22,7 +22,6 @@ import org.mapstruct.Mapper;
|
||||
|
||||
/**
|
||||
* @author Andreas Gudian
|
||||
*
|
||||
*/
|
||||
@Mapper
|
||||
interface DefaultSourceTargetMapperIfc {
|
||||
|
@ -105,6 +105,7 @@ public abstract class MapperTestBase {
|
||||
|
||||
createOutputDirs();
|
||||
|
||||
// TODO #140 Is there a better way to do this?
|
||||
if ( !enhancedClassloader ) {
|
||||
// we need to make sure that the the generated classes are loaded by the same classloader as the test has
|
||||
// been loaded already. Otherwise some tests won't work.
|
||||
|
Loading…
x
Reference in New Issue
Block a user