taylor 2004/07/21 15:49:36
Modified: components/page-manager/src/test/org/apache/jetspeed/page
TestCastorXmlPageManager.java
Log:
test converted to using exceptions and not null
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
Revision Changes Path
1.7 +12 -3
jakarta-jetspeed-2/components/page-manager/src/test/org/apache/jetspeed/page/TestCastorXmlPageManager.java
Index: TestCastorXmlPageManager.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/components/page-manager/src/test/org/apache/jetspeed/page/TestCastorXmlPageManager.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- TestCastorXmlPageManager.java 21 Jul 2004 13:38:35 -0000 1.6
+++ TestCastorXmlPageManager.java 21 Jul 2004 22:49:35 -0000 1.7
@@ -299,8 +299,17 @@
assertNotNull(errmsg, null);
}
- page = pageManager.getPage(this.testId);
- assertNull(page);
+ boolean exceptionFound = false;
+ try
+ {
+ page = pageManager.getPage(this.testId);
+ }
+ catch (PageNotFoundException pnfe)
+ {
+ exceptionFound = true;
+ }
+ assertTrue(exceptionFound);
+
}
public void testFolders() throws Exception
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]