ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs SQLExecTest.java
Date Mon, 21 Jan 2002 17:09:23 GMT
bodewig     02/01/21 09:09:23

  Modified:    src/testcases/org/apache/tools/ant/taskdefs SQLExecTest.java
  Log:
  Make JDK 1.4 happier
  
  Revision  Changes    Path
  1.3       +7 -7      jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/SQLExecTest.java
  
  Index: SQLExecTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/SQLExecTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SQLExecTest.java	22 Dec 2001 00:10:48 -0000	1.2
  +++ SQLExecTest.java	21 Jan 2002 17:09:23 -0000	1.3
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -103,26 +103,26 @@
      // simple test to ensure that the caching does work...
       public void testDriverCaching(){
          SQLExec sql = createTask(getProperties(NULL));
  -        assert(!SQLExec.getLoaderMap().containsKey(NULL_DRIVER));
  +        assertTrue(!SQLExec.getLoaderMap().containsKey(NULL_DRIVER));
           try {
               sql.execute();
           } catch (BuildException e){
  -            assert(e.getException().getMessage().indexOf("No suitable Driver") != -1);
  +            assertTrue(e.getException().getMessage().indexOf("No suitable Driver") != -1);
           }
  -        assert(SQLExec.getLoaderMap().containsKey(NULL_DRIVER));
  +        assertTrue(SQLExec.getLoaderMap().containsKey(NULL_DRIVER));
           assertSame(sql.getLoader(), SQLExec.getLoaderMap().get(NULL_DRIVER));
           ClassLoader loader1 = sql.getLoader();
   
           // 2nd run..
           sql = createTask(getProperties(NULL));
           // the driver must still be cached.
  -        assert(sql.getLoaderMap().containsKey(NULL_DRIVER));
  +        assertTrue(sql.getLoaderMap().containsKey(NULL_DRIVER));
           try {
               sql.execute();
           } catch (BuildException e){
  -            assert(e.getException().getMessage().indexOf("No suitable Driver") != -1);
  +            assertTrue(e.getException().getMessage().indexOf("No suitable Driver") != -1);
           }
  -        assert(sql.getLoaderMap().containsKey(NULL_DRIVER));
  +        assertTrue(sql.getLoaderMap().containsKey(NULL_DRIVER));
           assertSame(sql.getLoader(), sql.getLoaderMap().get(NULL_DRIVER));
           assertSame(loader1, sql.getLoader());
       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message