Spring Boot/Doma/ユニットテスト

Spring Boot/Doma/ユニットテスト

テストの方法

とりあえずコレで駆動できるかテストする

@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment=WebEnvironment.NONE)
@ActiveProfiles("test")
public class HogeDaoTest {
    @Autowired
    private HogeDao hogeDao;
 
    @Test
    public void test() {
        fail("Not yet implemented");
    }
}
java/spring/spring_boot/doma/unittest/start.txt · 最終更新: 2018-12-03 18:59 by ore