cleanup and upgrade3pps:
selenium 2.20->2.21, H2 1.3.164->1.3.166, Hibernate 4.1.1.Final->4.12, PoweMock 1.4.11->1.4.12
This commit is contained in:
-6
@@ -6,7 +6,6 @@ import java.net.URL;
|
||||
import java.sql.Driver;
|
||||
|
||||
import org.eclipse.jetty.server.Server;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Ignore;
|
||||
import org.openqa.selenium.By;
|
||||
@@ -63,11 +62,6 @@ public class BaseFunctionalTestCase {
|
||||
loginAsAdminIfNecessary();
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void afeterClass() throws Exception {
|
||||
//quitSelenium();
|
||||
}
|
||||
|
||||
/**
|
||||
* 启动Jetty服务器, 仅启动一次.
|
||||
*/
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
|
||||
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
|
||||
<id>standalone</id>
|
||||
<formats>
|
||||
<format>war</format>
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
@echo off
|
||||
echo [INFO] Packaging a executable war.
|
||||
|
||||
cd %~dp0
|
||||
cd ..
|
||||
|
||||
set MAVEN_OPTS=%MAVEN_OPTS%
|
||||
call mvn clean package -Pstandalone
|
||||
|
||||
echo [INFO] Executable war had been packaged as target/showcase-4.x.x.standalone.war
|
||||
|
||||
|
||||
cd bin
|
||||
pause
|
||||
@@ -582,8 +582,6 @@
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<appendAssemblyId>true</appendAssemblyId>
|
||||
<useProjectArtifact>false</useProjectArtifact>
|
||||
<descriptors>
|
||||
<descriptor>assembly-standalone.xml</descriptor>
|
||||
</descriptors>
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
<a href="${ctx}/story/web/">Web演示</a>
|
||||
<a href="${ctx}/story/webservice/">WebService演示</a>
|
||||
<a href="${ctx}/story/jmx/">JMX演示</a>
|
||||
<a href="${ctx}/story/executablewar/">可运行war包演示</a>
|
||||
<a href="${ctx}/story/utilizes/">Utilizes演示</a>
|
||||
<shiro:guest>
|
||||
<a href="${ctx}/login">登录</a>
|
||||
|
||||
@@ -9,14 +9,17 @@
|
||||
|
||||
<h3>技术说明:</h3>
|
||||
<ul>
|
||||
<li>演示Memcached的使用</li>
|
||||
<li>演示Spring与Ehcache的集成</li>
|
||||
<li>演示基于Guava的单JVM内的,简单Cache</li>
|
||||
<li>演示基于Ehcache的JVM内的,可集群共享的,功能丰富的Cache</li>
|
||||
<li>演示基于Memcached的中央式cache,使用Spymemcached客户端</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<h3>用户故事:</h3>
|
||||
<ul>
|
||||
<li>在AccountManager.java中演示了对Memcached的使用</li>
|
||||
<li>GuavaCacheDemo.java演示了Guava Cache的使用</li>
|
||||
<li>EhcacheDemo.java演示了Ehcache与Spring的集成</li>
|
||||
<li>在AccountManager.java中演示了对Memcached的使用</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,21 @@
|
||||
<%@ page contentType="text/html;charset=UTF-8"%>
|
||||
<html>
|
||||
<head>
|
||||
<title>可执行War演示</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h2>可运行War演示</h2>
|
||||
|
||||
<h3>技术说明:</h3>
|
||||
<ul>
|
||||
<li>可运行war使用嵌入式的Jetty,在简便的容器外运行web应用</li>
|
||||
</ul>
|
||||
|
||||
<h3>用户故事:</h3>
|
||||
<ul>
|
||||
<li>在showcase中打包可运行war包的命令:mvn clean package -Pstandalone</li>
|
||||
<li>运行war包的命令: java -jar showcase-4.x.x.standalone.war</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user