Update of /cvsroot/xdoclet/xdoclet2/src/test/java/xdoclet
In directory sc8-pr-cvs1:/tmp/cvs-serv8847/src/test/java/xdoclet

Modified Files:
        PackageSubstitutionTest.java 
Log Message:
One more test.

Index: PackageSubstitutionTest.java
===================================================================
RCS file: 
/cvsroot/xdoclet/xdoclet2/src/test/java/xdoclet/PackageSubstitutionTest.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** PackageSubstitutionTest.java        7 Mar 2003 09:14:51 -0000       1.5
--- PackageSubstitutionTest.java        8 Mar 2003 09:27:57 -0000       1.6
***************
*** 9,13 ****
  
  /**
!  * Test for PackageSubstitution.
   *
   * @author <a href="mailto:aslak.hellesoy at bekk.no">Aslak Helles&oslash;y</a>
--- 9,13 ----
  
  /**
!  * Test for [EMAIL PROTECTED] PackageSubstitution}.
   *
   * @author <a href="mailto:aslak.hellesoy at bekk.no">Aslak Helles&oslash;y</a>
***************
*** 28,34 ****
          try {
              sub.getSubstitutedPackageName("bing.foo.bar.bong");
!             fail("from not set, so no pattern is compiled, a nullpointer is thrown");
          }
          catch (IllegalStateException ex) {
              // good
          }
--- 28,42 ----
          try {
              sub.getSubstitutedPackageName("bing.foo.bar.bong");
!             fail("from not set, so no pattern is compiled, a NullPointerException is 
thrown");
          }
          catch (IllegalStateException ex) {
+             // good
+         }
+ 
+         try {
+             sub.setFrom(null);
+             fail("sub.setFrom(null) does not throw IllegalArgumentException");
+         }
+         catch (IllegalArgumentException ex) {
              // good
          }



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to