#103 Formatting, added a todo

This commit is contained in:
Gunnar Morling 2014-02-22 10:43:46 +01:00
parent 8fe7a846c8
commit 8c8f27ca6b
7 changed files with 5 additions and 8 deletions

View File

@ -23,7 +23,6 @@ import java.util.Collection;
import java.util.List; import java.util.List;
import java.util.SortedSet; import java.util.SortedSet;
import java.util.TreeSet; import java.util.TreeSet;
import javax.annotation.Generated; import javax.annotation.Generated;
import javax.lang.model.element.ElementKind; import javax.lang.model.element.ElementKind;
import javax.lang.model.element.TypeElement; import javax.lang.model.element.TypeElement;

View File

@ -19,7 +19,6 @@
package org.mapstruct.ap.model.common; package org.mapstruct.ap.model.common;
import java.util.Set; import java.util.Set;
import javax.lang.model.element.Modifier; import javax.lang.model.element.Modifier;
/** /**

View File

@ -22,7 +22,6 @@ import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import javax.lang.model.element.ExecutableElement; import javax.lang.model.element.ExecutableElement;
import javax.lang.model.element.Modifier; import javax.lang.model.element.Modifier;

View File

@ -33,10 +33,11 @@ import org.testng.annotations.Test;
* *
* @author Andreas Gudian * @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 { public class AccessibilityTest extends MapperTestBase {
@Test @Test
@IssueKey( "103" ) @IssueKey("103")
public void testGeneratedModifiersFromAbstractClassAreCorrect() throws Exception { public void testGeneratedModifiersFromAbstractClassAreCorrect() throws Exception {
Class<?> defaultFromAbstract = loadForMapper( DefaultSourceTargetMapperAbstr.class ); Class<?> defaultFromAbstract = loadForMapper( DefaultSourceTargetMapperAbstr.class );
@ -48,7 +49,7 @@ public class AccessibilityTest extends MapperTestBase {
} }
@Test @Test
@IssueKey( "103" ) @IssueKey("103")
public void testGeneratedModifiersFromInterfaceAreCorrect() throws Exception { public void testGeneratedModifiersFromInterfaceAreCorrect() throws Exception {
Class<?> defaultFromIfc = loadForMapper( DefaultSourceTargetMapperIfc.class ); Class<?> defaultFromIfc = loadForMapper( DefaultSourceTargetMapperIfc.class );

View File

@ -22,7 +22,6 @@ import org.mapstruct.Mapper;
/** /**
* @author Andreas Gudian * @author Andreas Gudian
*
*/ */
@Mapper @Mapper
abstract class DefaultSourceTargetMapperAbstr { abstract class DefaultSourceTargetMapperAbstr {

View File

@ -22,7 +22,6 @@ import org.mapstruct.Mapper;
/** /**
* @author Andreas Gudian * @author Andreas Gudian
*
*/ */
@Mapper @Mapper
interface DefaultSourceTargetMapperIfc { interface DefaultSourceTargetMapperIfc {

View File

@ -105,6 +105,7 @@ public abstract class MapperTestBase {
createOutputDirs(); createOutputDirs();
// TODO #140 Is there a better way to do this?
if ( !enhancedClassloader ) { if ( !enhancedClassloader ) {
// we need to make sure that the the generated classes are loaded by the same classloader as the test has // 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. // been loaded already. Otherwise some tests won't work.