[jbpm-commits] JBoss JBPM SVN: r4467 - jbpm4/branches/email/modules/pvm/src/test/java/org/jbpm/pvm/internal/email/filter.
do-not-reply at jboss.org
do-not-reply at jboss.org
Mon Apr 6 20:29:17 EDT 2009
Author: bradsdavis
Date: 2009-04-06 20:29:17 -0400 (Mon, 06 Apr 2009)
New Revision: 4467
Modified:
jbpm4/branches/email/modules/pvm/src/test/java/org/jbpm/pvm/internal/email/filter/WildCardAddressFilterTest.java
Log:
Commented the testcase.
Modified: jbpm4/branches/email/modules/pvm/src/test/java/org/jbpm/pvm/internal/email/filter/WildCardAddressFilterTest.java
===================================================================
--- jbpm4/branches/email/modules/pvm/src/test/java/org/jbpm/pvm/internal/email/filter/WildCardAddressFilterTest.java 2009-04-07 00:25:25 UTC (rev 4466)
+++ jbpm4/branches/email/modules/pvm/src/test/java/org/jbpm/pvm/internal/email/filter/WildCardAddressFilterTest.java 2009-04-07 00:29:17 UTC (rev 4467)
@@ -9,6 +9,9 @@
public class WildCardAddressFilterTest extends TestCase{
+ /**
+ * Tests that the WildCardAddressFilter is-a AddressFilter implementation.
+ */
public void testInstantiationWildCards()
{
WildCardAddressFilter filter = new WildCardAddressFilter();
@@ -16,6 +19,9 @@
this.assertTrue(AddressFilter.class.isAssignableFrom(filter.getClass()));
}
+ /**
+ * When no filter is provided, all addresses should be contained in the filtered list.
+ */
public void testWildCardIncludesNoFilters() throws Exception
{
WildCardAddressFilter filter = new WildCardAddressFilter();
@@ -27,6 +33,10 @@
this.assertTrue(filteredAddresses.contains(new InternetAddress("test at jboss.org")));
}
+ /**
+ * If the includes is provided, no other addresses except those explicitly listed should
+ * be included in the filtered list.
+ */
public void testWildCardIncludes() throws Exception
{
WildCardAddressFilter filter = new WildCardAddressFilter();
@@ -44,6 +54,9 @@
this.assertTrue(!filteredAddresses.contains(new InternetAddress("test at amentra.com")));
}
+ /**
+ * The includes should always override the excludes.
+ */
public void testWildCardIncludesOverridesExcludes() throws Exception
{
WildCardAddressFilter filter = new WildCardAddressFilter();
@@ -67,6 +80,10 @@
this.assertTrue(!filteredAddresses.contains(new InternetAddress("test at amentra.com")));
}
+ /**
+ * When the excludes is specified but no includes, all addresses except those explicitly stated
+ * should be contained in the filtered set.
+ */
public void testWildCardExcludes() throws Exception
{
WildCardAddressFilter filter = new WildCardAddressFilter();
More information about the jbpm-commits
mailing list