Skip to content

Commit

Permalink
添加 Junit4 测试基类及错误页面,便于调试
Browse files Browse the repository at this point in the history
  • Loading branch information
Fireply committed May 16, 2016
1 parent 574e2ee commit 51260fd
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
14 changes: 14 additions & 0 deletions WebRoot/WEB-INF/error/error.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="cn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
error/error.jsp
</body>
</html>
18 changes: 18 additions & 0 deletions src/test/java/org/fireply/enter/test/BaseSpringJunit4Test.java
Original file line number Diff line number Diff line change
@@ -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 {

}

0 comments on commit 51260fd

Please sign in to comment.