2019-10-14から1日間の記事一覧
本家はこちらReflectionTestUtilsを使用する fieldの場合 ReflectionTestUtils.setField を使う public Sample SampleRepositoryImpl{ private String parameter; } @Runwith(SpringRunner.class) class SampleRepositoryImplTest(){ @InjectMocks private S…
本家はこちらReflectionTestUtilsを使用する fieldの場合 ReflectionTestUtils.setField を使う public Sample SampleRepositoryImpl{ private String parameter; } @Runwith(SpringRunner.class) class SampleRepositoryImplTest(){ @InjectMocks private S…