JUnit
-
spring project 시작 전 junit test 설정/jdbc 연결 테스트 코드Spring 2022. 6. 26. 18:30
junit junit 4.12 test 1.8 4.1.7.RELEASE 1.6.10 1.6.6 jUnit을 이용한 JDBC 연결 코드는 src/test/java/MySqlConnectionTest로 작성 package com.jae.web; import java.sql.Connection; import java.sql.DriverManager; import org.junit.Test; public class MySqlConnectionTest { private static final String DRIVER = "com.mysql.jdbc.Driver"; private static final String URL = "jdbc:mysql://localhost:3306/book_ex"; private sta..