Author: chris.laprun(a)jboss.com
Date: 2008-02-27 15:42:50 -0500 (Wed, 27 Feb 2008)
New Revision: 10138
Added:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/unit/TestConstants.java
Modified:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/test/portlet/jsr168/api/portletcontext/VersionTestCase.java
Log:
- Renamed TestContants to TestConstants.
Modified:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/test/portlet/jsr168/api/portletcontext/VersionTestCase.java
===================================================================
---
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/test/portlet/jsr168/api/portletcontext/VersionTestCase.java 2008-02-27
16:39:53 UTC (rev 10137)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/test/portlet/jsr168/api/portletcontext/VersionTestCase.java 2008-02-27
20:42:50 UTC (rev 10138)
@@ -22,18 +22,16 @@
******************************************************************************/
package org.jboss.portal.test.portlet.jsr168.api.portletcontext;
+import org.jboss.portal.test.portlet.framework.UTP1;
import org.jboss.portal.unit.PortletTestCase;
import org.jboss.portal.unit.PortletTestContext;
-import org.jboss.portal.unit.TestContants;
-import org.jboss.portal.unit.base.AbstractUniversalTestPortlet;
+import org.jboss.portal.unit.TestConstants;
import org.jboss.portal.unit.actions.PortletRenderTestAction;
-import org.jboss.portal.test.portlet.framework.UTP1;
import org.jboss.portal.unit.annotations.TestCase;
-import org.jboss.portal.unit.TestContants;
-import org.jboss.portal.unit.PortletTestCase;
+import org.jboss.portal.unit.base.AbstractUniversalTestPortlet;
+import static org.jboss.unit.api.Assert.assertEquals;
import org.jboss.unit.driver.DriverResponse;
import org.jboss.unit.driver.response.EndTestResponse;
-import static org.jboss.unit.api.Assert.assertEquals;
import javax.portlet.Portlet;
import javax.portlet.RenderRequest;
@@ -54,8 +52,8 @@
{
AbstractUniversalTestPortlet aport = (AbstractUniversalTestPortlet)portlet;
- assertEquals(TestContants.MINOR_VERSION,
aport.getPortletContext().getMinorVersion());
- assertEquals(TestContants.MAJOR_VERSION,
aport.getPortletContext().getMajorVersion());
+ assertEquals(TestConstants.MINOR_VERSION,
aport.getPortletContext().getMinorVersion());
+ assertEquals(TestConstants.MAJOR_VERSION,
aport.getPortletContext().getMajorVersion());
return new EndTestResponse();
}
});
Copied:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/unit/TestConstants.java (from
rev 10137,
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/unit/TestContants.java)
===================================================================
--- modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/unit/TestConstants.java
(rev 0)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/unit/TestConstants.java 2008-02-27
20:42:50 UTC (rev 10138)
@@ -0,0 +1,43 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2006, Red Hat Middleware, LLC, and individual *
+ * contributors as indicated by the @authors tag. See the *
+ * copyright.txt in the distribution for a full listing of *
+ * individual contributors. *
+ * *
+ * This is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU Lesser General Public License as *
+ * published by the Free Software Foundation; either version 2.1 of *
+ * the License, or (at your option) any later version. *
+ * *
+ * This software is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this software; if not, write to the Free *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
+ ******************************************************************************/
+package org.jboss.portal.unit;
+
+/**
+ * Constants for test asserts
+ *
+ * @author <a href="mailto:boleslaw.dawidowicz@jboss.org">Boleslaw
Dawidowicz</a>
+ * @version $Revision: 5510 $
+ */
+public final class TestConstants
+{
+
+ /** String from <code>PortletContext.getServerInfo()</code/>. */
+ public static final String SERVER_INVO = "JBossPortal/1.0";
+
+ /** int for <code>PortletContext.getMinorVersion()</code/>. */
+ public static final int MINOR_VERSION = 0;
+
+ /** int for <code>PortletContext.getMajorVersion()</code/>. */
+ public static final int MAJOR_VERSION = 2;
+
+}
Property changes on:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/unit/TestConstants.java
___________________________________________________________________
Name: svn:executable
+