Search in sources :

Example 1 with Item

use of org.mapstruct.ap.test.bugs._1596.domain.Item in project mapstruct by mapstruct.

the class Issue1801Test method shouldIncludeBuildeType.

@ProcessorTest
public void shouldIncludeBuildeType() {
    ItemDTO item = ImmutableItemDTO.builder().id("test").build();
    Item target = ItemMapper.INSTANCE.map(item);
    assertThat(target).isNotNull();
    assertThat(target.getId()).isEqualTo("test");
}
Also used : Item(org.mapstruct.ap.test.bugs._1801.domain.Item) ImmutableItem(org.mapstruct.ap.test.bugs._1801.domain.ImmutableItem) ItemDTO(org.mapstruct.ap.test.bugs._1801.dto.ItemDTO) ImmutableItemDTO(org.mapstruct.ap.test.bugs._1801.dto.ImmutableItemDTO) ProcessorTest(org.mapstruct.ap.testutil.ProcessorTest)

Example 2 with Item

use of org.mapstruct.ap.test.bugs._1596.domain.Item in project mapstruct by mapstruct.

the class Issue1596Test method shouldIncludeBuildType.

@ProcessorTest
public void shouldIncludeBuildType() {
    ItemDTO item = ImmutableItemDTO.builder().id("test").build();
    Item target = ItemMapper.INSTANCE.map(item);
    assertThat(target).isNotNull();
    assertThat(target.getId()).isEqualTo("test");
}
Also used : Item(org.mapstruct.ap.test.bugs._1596.domain.Item) ImmutableItem(org.mapstruct.ap.test.bugs._1596.domain.ImmutableItem) ImmutableItemDTO(org.mapstruct.ap.test.bugs._1596.dto.ImmutableItemDTO) ItemDTO(org.mapstruct.ap.test.bugs._1596.dto.ItemDTO) ProcessorTest(org.mapstruct.ap.testutil.ProcessorTest)

Aggregations

ProcessorTest (org.mapstruct.ap.testutil.ProcessorTest)2 ImmutableItem (org.mapstruct.ap.test.bugs._1596.domain.ImmutableItem)1 Item (org.mapstruct.ap.test.bugs._1596.domain.Item)1 ImmutableItemDTO (org.mapstruct.ap.test.bugs._1596.dto.ImmutableItemDTO)1 ItemDTO (org.mapstruct.ap.test.bugs._1596.dto.ItemDTO)1 ImmutableItem (org.mapstruct.ap.test.bugs._1801.domain.ImmutableItem)1 Item (org.mapstruct.ap.test.bugs._1801.domain.Item)1 ImmutableItemDTO (org.mapstruct.ap.test.bugs._1801.dto.ImmutableItemDTO)1 ItemDTO (org.mapstruct.ap.test.bugs._1801.dto.ItemDTO)1