mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#361 Using more descriptive test name
This commit is contained in:
parent
403995af9a
commit
63ca67786d
@ -29,11 +29,18 @@ import org.mapstruct.ap.test.nullvaluemapping.source.Car;
|
|||||||
import org.mapstruct.ap.test.nullvaluemapping.source.Driver;
|
import org.mapstruct.ap.test.nullvaluemapping.source.Driver;
|
||||||
import org.mapstruct.ap.test.nullvaluemapping.target.CarDto;
|
import org.mapstruct.ap.test.nullvaluemapping.target.CarDto;
|
||||||
import org.mapstruct.ap.test.nullvaluemapping.target.DriverAndCarDto;
|
import org.mapstruct.ap.test.nullvaluemapping.target.DriverAndCarDto;
|
||||||
|
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 static org.fest.assertions.Assertions.assertThat;
|
import static org.fest.assertions.Assertions.assertThat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tests for the strategies for mapping {@code null} values, given via {@code NullValueMapping} etc.
|
||||||
|
*
|
||||||
|
* @author Sjaak Derksen
|
||||||
|
*/
|
||||||
|
@IssueKey( "295" )
|
||||||
@WithClasses({
|
@WithClasses({
|
||||||
Car.class,
|
Car.class,
|
||||||
Driver.class,
|
Driver.class,
|
||||||
@ -45,7 +52,7 @@ import static org.fest.assertions.Assertions.assertThat;
|
|||||||
CarMapperSettingOnConfig.class
|
CarMapperSettingOnConfig.class
|
||||||
})
|
})
|
||||||
@RunWith(AnnotationProcessorTestRunner.class)
|
@RunWith(AnnotationProcessorTestRunner.class)
|
||||||
public class CarMapperTest {
|
public class NullValueMappingTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void shouldProvideMapperInstance() throws Exception {
|
public void shouldProvideMapperInstance() throws Exception {
|
Loading…
x
Reference in New Issue
Block a user