Author: thomas.heute(a)jboss.com
Date: 2009-11-20 10:37:10 -0500 (Fri, 20 Nov 2009)
New Revision: 732
Modified:
components/pc/trunk/test/src/test/java/org/gatein/pc/test/portlet/jsr168/api/portletcontext/ServerInfoTestCase.java
Log:
GTNPC-12: PortalContext.VERSION is incorrect
Test wasn't passing
Modified:
components/pc/trunk/test/src/test/java/org/gatein/pc/test/portlet/jsr168/api/portletcontext/ServerInfoTestCase.java
===================================================================
---
components/pc/trunk/test/src/test/java/org/gatein/pc/test/portlet/jsr168/api/portletcontext/ServerInfoTestCase.java 2009-11-20
13:04:13 UTC (rev 731)
+++
components/pc/trunk/test/src/test/java/org/gatein/pc/test/portlet/jsr168/api/portletcontext/ServerInfoTestCase.java 2009-11-20
15:37:10 UTC (rev 732)
@@ -47,7 +47,7 @@
{
/** . */
- private static final String VERSION_REGEX =
"JBossPortletContainer/[0-9]+\\.[0-9]+(|\\.SNAPSHOT)";
+ private static final String VERSION_REGEX =
"GateInPortletContainer/[0-9]+\\.[0-9]+(|\\.CR[0-9]{2})(|\\.SNAPSHOT)(|\\.ALPHA[0-9]{2})(|\\.BETA[0-9]{2})(|\\.SP[0-9]{2})(|\\.CP[0-9]{2})";
/** . */
private static final Pattern VERSION_PATTERN = Pattern.compile(VERSION_REGEX,
Pattern.CASE_INSENSITIVE);
Show replies by date