일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- port
- Mac
- tomcat
- find
- maVen
- 단축키
- copy-dependencies
- xargs
- bash
- import
- Windows 10
- web.xml
- JavaScript
- Quartz
- 공통표준용어
- 네트워크
- Source
- VirtualBox
- DB 도메인
- lsof
- GIT
- IntelliJ
- grep
- ssh
- context
- Eclipse
- resource
- Windows
- netsh
- profile
- Today
- Total
목록Dev/junit (26)
develog
// junit5 import static org.junit.jupiter.api.Assertions.*; // hamcrest import static org.hamcrest.Matchers.*; import static org.hamcrest.MatcherAssert.*; // assertj import static org.assertj.core.api.Assertions.*;
pom.xml org.springframework spring-test 4.3.30.RELEASE test junit junit 4.13.2 test org.assertj assertj-core 3.19.0 test org.mockito mockito-core 3.8.0 test
@ContextConfiguration(classes = {}) 를 사용 TestBase.java import org.apache.ibatis.mapping.BoundSql; import org.apache.ibatis.mapping.MappedStatement; import org.apache.ibatis.session.Configuration; import org.apache.ibatis.session.SqlSession; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationContext; import..
@ContextConfiguration(locations = {}) 를 사용 TestBase.java import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationContext; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.c..
import java.sql.Connection;import java.sql.PreparedStatement; import javax.sql.DataSource; import org.junit.Test;import org.junit.runner.RunWith;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.beans.factory.annotation.Qualifier;import org.springframework.jdbc.datasource.DataSourceUtils;import org.springframework.test.annotation.Rollback;import org.springf..
@RunWith(ExtSpringJUnit4ClassRunner.class)@ContextConfiguration(locations = { "classpath:test/config/beans.xml" })public class TestQuartz {@Autowiredprivate ApplicationContext context;@Testpublic void test1() throws Exception {System.out.println(context);} }