[jboss-cvs] jboss-portal/portlet/src/main/org/jboss/portal/test/portlet/state ...
Julien Viet
julien at jboss.com
Mon Jul 31 15:29:56 EDT 2006
User: julien
Date: 06/07/31 15:29:56
Modified: portlet/src/main/org/jboss/portal/test/portlet/state
StatefulPortletInvokerTestCase.java
Log:
- moved the portal api in the api module in order to have a standalone jar
- JBPORTAL-631 : Try to move org.jboss.portlet package to the api module
- IPC support in 2.4 (only for local portlets)
Revision Changes Path
1.2 +18 -4 jboss-portal/portlet/src/main/org/jboss/portal/test/portlet/state/StatefulPortletInvokerTestCase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: StatefulPortletInvokerTestCase.java
===================================================================
RCS file: /cvsroot/jboss/jboss-portal/portlet/src/main/org/jboss/portal/test/portlet/state/StatefulPortletInvokerTestCase.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- StatefulPortletInvokerTestCase.java 30 Jul 2006 12:36:24 -0000 1.1
+++ StatefulPortletInvokerTestCase.java 31 Jul 2006 19:29:56 -0000 1.2
@@ -37,7 +37,7 @@
/**
* @author <a href="mailto:julien at jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public class StatefulPortletInvokerTestCase extends TestCase
{
@@ -183,13 +183,27 @@
public void testGetNonExistingPOP() throws Exception
{
String popId = invoker.wrapPOPId("NonExistingPortletId");
- assertNull(invoker.getPortlet(popId));
+ try
+ {
+ invoker.getPortlet(popId);
+ fail("was expecting a NoSuchPortletException");
+ }
+ catch (NoSuchPortletException expected)
+ {
+ }
}
public void testGetNonExistingCCP() throws Exception
{
String ccpId = invoker.wrapCCPId("1");
- assertNull(invoker.getPortlet(ccpId));
+ try
+ {
+ invoker.getPortlet(ccpId);
+ fail("was expecting a NoSuchPortletException");
+ }
+ catch (NoSuchPortletException expected)
+ {
+ }
}
public void testGetInvalidPOP() throws Exception
@@ -198,7 +212,7 @@
String popId = invoker.wrapPOPId("InvalidPortletId");
try
{
- assertNull(invoker.getPortlet(popId));
+ invoker.getPortlet(popId);
fail("was expecting an InvalidPortletIdException");
}
catch (InvalidPortletIdException expected)
@@ -211,7 +225,7 @@
String ccpId = invoker.wrapCCPId("InvalidPortletId");
try
{
- assertNull(invoker.getPortlet(ccpId));
+ invoker.getPortlet(ccpId);
fail("was expecting an InvalidPortletIdException");
}
catch (InvalidPortletIdException expected)
More information about the jboss-cvs-commits
mailing list