[jira] Closed: (NANO-64) CachingScriptClassLoader test methods "throws SyntaxException"

jira-yCVjj/[email protected] Mon, 29 Mar 2004 04:50:42 -0500 (EST)
Newsgroups gmane.comp.java.nanocontainer.devel
Message-ID <[email protected]>
Message:

   The following issue has been closed.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=NANO-64

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: NANO-64
    Summary: CachingScriptClassLoader test methods "throws SyntaxException"
       Type: Bug

     Status: Closed
   Priority: Minor
 Resolution: FIXED

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: NanoContainer
 Components: 
             nanoweb
   Fix Fors:
             1.0-beta-1

   Assignee: Aslak Hellesoy
   Reporter: Miguel A Paraz

    Created: Mon, 29 Mar 2004 3:57 AM
    Updated: Mon, 29 Mar 2004 4:50 AM

Description:
The tests "throws SyntaxException" when they should "throws ScriptException".

Index: CachingScriptClassLoaderTestCase.java
===================================================================
RCS file: /cvsroot/picocontainer/java/nanoweb/src/test/org/nanocontainer/nanoweb/CachingScriptClassLoaderTestCase.java,v
retrieving revision 1.2
diff -u -r1.2 CachingScriptClassLoaderTestCase.java
--- CachingScriptClassLoaderTestCase.java	28 Mar 2004 23:44:59 -0000	1.2
+++ CachingScriptClassLoaderTestCase.java	29 Mar 2004 05:56:38 -0000
@@ -16,7 +16,7 @@
  * @version $Revision: 1.2 $
  */
 public class CachingScriptClassLoaderTestCase extends TestCase {
-    public void testClassesAreCachedWhenTheUrlTimeStampIsNotMoreRecent() throws IOException, SyntaxException {
+    public void testClassesAreCachedWhenTheUrlTimeStampIsNotMoreRecent() throws IOException, ScriptException {
         CachingScriptClassLoader loader = new CachingScriptClassLoader();
 
         MockURLConnection urlConnection = new MockURLConnection();
@@ -28,7 +28,7 @@
         assertSame(clazz1, clazz2);
     }
 
-    public void testClassesAreReloadedWhenTheUrlTimeStampIsMoreRecent() throws IOException, SyntaxException {
+    public void testClassesAreReloadedWhenTheUrlTimeStampIsMoreRecent() throws IOException, ScriptException {
         CachingScriptClassLoader loader = new CachingScriptClassLoader();
 
         MockURLConnection urlConnection = new MockURLConnection();



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira