package de.philipphager.disclosure.database.app.mapper;

import de.philipphager.disclosure.database.app.model.App;
import de.philipphager.disclosure.database.mocks.MockApp;
import de.philipphager.disclosure.database.mocks.MockPackageInfo;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.runners.MockitoJUnitRunner;

import static org.assertj.core.api.Assertions.assertThat;

@RunWith(MockitoJUnitRunner.class) public class ToInfoMapperShould {
  @InjectMocks protected ToInfoMapper toInfoMapper;

  @Test public void mapApplicationInfoToAppInfo() {
    App.Info app = toInfoMapper.map(MockPackageInfo.TEST);

    assertThat(app).isEqualTo(MockApp.TEST_INFO);
  }
}

@@ -106,16 +106,20 @@
 odel.App
+Info
 ;%0Aimport
@@ -612,17 +612,16 @@
 %0A    App
-.
 Info app

Remove reference to App.Info