From 51260fd514f9ecf0754c9dda3d9caeadfb93b7f3 Mon Sep 17 00:00:00 2001 From: Fireply Date: Mon, 16 May 2016 23:53:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Junit4=20=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E5=9F=BA=E7=B1=BB=E5=8F=8A=E9=94=99=E8=AF=AF=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=EF=BC=8C=E4=BE=BF=E4=BA=8E=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebRoot/WEB-INF/error/error.jsp | 14 ++++++++++++++ .../enter/test/BaseSpringJunit4Test.java | 18 ++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 WebRoot/WEB-INF/error/error.jsp create mode 100644 src/test/java/org/fireply/enter/test/BaseSpringJunit4Test.java diff --git a/WebRoot/WEB-INF/error/error.jsp b/WebRoot/WEB-INF/error/error.jsp new file mode 100644 index 0000000..893cf34 --- /dev/null +++ b/WebRoot/WEB-INF/error/error.jsp @@ -0,0 +1,14 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + + + + Insert title here + + + error/error.jsp + + \ No newline at end of file diff --git a/src/test/java/org/fireply/enter/test/BaseSpringJunit4Test.java b/src/test/java/org/fireply/enter/test/BaseSpringJunit4Test.java new file mode 100644 index 0000000..1afed5f --- /dev/null +++ b/src/test/java/org/fireply/enter/test/BaseSpringJunit4Test.java @@ -0,0 +1,18 @@ +package org.fireply.enter.test; + +import org.junit.runner.RunWith; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; + +/** + * Spring 与 Junit 测试基类,指定 Spring 配置文件路径及 Junit4 测试运行器 + * @author Fireply + * @version 1.00 + * @date 2016年5月13日 下午7:23:16 + * + */ +@RunWith(SpringJUnit4ClassRunner.class) +@ContextConfiguration(locations = "classpath*:applicationContext.xml") +public abstract class BaseSpringJunit4Test { + +}