@@ -0,0 +1,1693 @@
+package by.bsuir.mpp.computershop;%0A%0Aimport by.bsuir.mpp.computershop.config.PrimaryConfiguration;%0Aimport by.bsuir.mpp.computershop.dto.full.AssemblyComponentFullDto;%0Aimport by.bsuir.mpp.computershop.entity.Assembly;%0Aimport by.bsuir.mpp.computershop.entity.AssemblyComponent;%0Aimport ma.glasnost.orika.MapperFacade;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.context.SpringBootTest;%0Aimport org.springframework.test.context.ContextConfiguration;%0Aimport org.springframework.test.context.junit4.SpringRunner;%0A%0Aimport java.util.Random;%0A%0A@RunWith(SpringRunner.class)%0A@ContextConfiguration(classes = %7BPrimaryConfiguration.class%7D)%0A@SpringBootTest%0Apublic class MapperTests %7B%0A%0A    private final Random rnd = new Random();%0A%0A    @Autowired%0A    private MapperFacade mapper;%0A%0A    @Test%0A    public void contextLoads() %7B%0A    %7D%0A%0A    @Test%0A    public void assemblyComponentMappingTest() %7B%0A        Assembly asm = new Assembly();%0A        asm.setId(getNextId());%0A%0A        AssemblyComponent expected = new AssemblyComponent();%0A        expected.setAssembly(asm);%0A%0A        AssemblyComponentFullDto intermediate = mapper.map(expected, AssemblyComponentFullDto.class);%0A        Assert.assertEquals(expected.getAssembly().getId(), intermediate.getAssemblyId());%0A%0A        AssemblyComponent result = mapper.map(intermediate, AssemblyComponent.class);%0A        Assert.assertEquals(expected.getId(), result.getId());%0A        Assert.assertEquals(expected.getAssembly().getId(), result.getAssembly().getId());%0A    %7D%0A%0A    private Long getNextId() %7B%0A        return rnd.nextLong() + 1;%0A    %7D%0A%7D%0A

Add basic MapperTest