일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- resource
- lsof
- VirtualBox
- IntelliJ
- 단축키
- Source
- maVen
- ssh
- netsh
- vscode
- bash
- Quartz
- tomcat
- Eclipse
- Mac
- web.xml
- port
- 네트워크
- context
- xargs
- 줄바꿈 문자
- JavaScript
- find
- grep
- Windows 10
- profile
- import
- plugin
- GIT
- Windows
- 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);} }