[jboss-cvs] jboss-seam/examples/blog/src/test ...
Norman Richards
norman.richards at jboss.com
Thu Feb 1 01:46:11 EST 2007
User: nrichards
Date: 07/02/01 01:46:11
Modified: examples/blog/src/test BlogTest.java
Log:
update tests to match current dataset
Revision Changes Path
1.16 +6 -2 jboss-seam/examples/blog/src/test/BlogTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BlogTest.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/blog/src/test/BlogTest.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- BlogTest.java 19 Jan 2007 00:47:29 -0000 1.15
+++ BlogTest.java 1 Feb 2007 06:46:11 -0000 1.16
@@ -102,7 +102,7 @@
@Override
protected void beforeRequest()
{
- setParameter("blogEntryId", "i18n");
+ setParameter("blogEntryId", "seamtext");
}
@Override
@@ -110,7 +110,11 @@
{
BlogEntry blogEntry = (BlogEntry) Contexts.getEventContext().get("blogEntry");
assert blogEntry!=null;
- assert blogEntry.getId().equals("i18n");
+ assert blogEntry.getId().equals("seamtext");
+
+ // make sure the entry is really there
+ assert blogEntry.getBody().length() > 0;
+ assert blogEntry.getTitle().equals("Introducing Seam Text");
}
}.run();
More information about the jboss-cvs-commits
mailing list