mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#543 Adding assertion to test that the bound type is added to the import statements
This commit is contained in:
parent
82da71199d
commit
dfbe8767a5
@ -18,6 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.mapstruct.ap.test.bugs._543;
|
package org.mapstruct.ap.test.bugs._543;
|
||||||
|
|
||||||
|
import org.junit.Rule;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.mapstruct.ap.test.bugs._543.dto.Source;
|
import org.mapstruct.ap.test.bugs._543.dto.Source;
|
||||||
@ -25,6 +26,7 @@ import org.mapstruct.ap.test.bugs._543.dto.Target;
|
|||||||
import org.mapstruct.ap.testutil.IssueKey;
|
import org.mapstruct.ap.testutil.IssueKey;
|
||||||
import org.mapstruct.ap.testutil.WithClasses;
|
import org.mapstruct.ap.testutil.WithClasses;
|
||||||
import org.mapstruct.ap.testutil.runner.AnnotationProcessorTestRunner;
|
import org.mapstruct.ap.testutil.runner.AnnotationProcessorTestRunner;
|
||||||
|
import org.mapstruct.ap.testutil.runner.GeneratedSource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Filip Hrisafov
|
* @author Filip Hrisafov
|
||||||
@ -39,7 +41,11 @@ import org.mapstruct.ap.testutil.runner.AnnotationProcessorTestRunner;
|
|||||||
})
|
})
|
||||||
public class Issue543Test {
|
public class Issue543Test {
|
||||||
|
|
||||||
|
@Rule
|
||||||
|
public GeneratedSource generatedSource = new GeneratedSource();
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void shouldCompile() {
|
public void shouldCompile() {
|
||||||
|
generatedSource.forMapper( Issue543Mapper.class ).containsImportFor( Source.class );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user