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 ProjectTest.java
Date Mon, 20 Jan 2003 12:29:43 GMT
bodewig     2003/01/20 04:29:43

  Modified:    src/testcases/org/apache/tools/ant Tag: ANT_15_BRANCH
                        ProjectTest.java
  Log:
  add tests for contains checks on task definition table
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.13.2.1  +9 -1      jakarta-ant/src/testcases/org/apache/tools/ant/ProjectTest.java
  
  Index: ProjectTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/testcases/org/apache/tools/ant/ProjectTest.java,v
  retrieving revision 1.13
  retrieving revision 1.13.2.1
  diff -u -r1.13 -r1.13.2.1
  --- ProjectTest.java	23 Apr 2002 10:30:12 -0000	1.13
  +++ ProjectTest.java	20 Jan 2003 12:29:42 -0000	1.13.2.1
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2000-2002 The Apache Software Foundation.  All rights
  + * Copyright (c) 2000-2003 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -230,6 +230,14 @@
           InputHandler pfih = new PropertyFileInputHandler();
           p.setInputHandler(pfih);
           assertSame(pfih, p.getInputHandler());
  +    }
  +
  +    public void testTaskDefinitionContainsKey() {
  +        assertTrue(p.getTaskDefinitions().containsKey("echo"));
  +    }
  +
  +    public void testTaskDefinitionContains() {
  +        assertTrue(p.getTaskDefinitions().contains(org.apache.tools.ant.taskdefs.Echo.class));
       }
   
       private class DummyTaskPrivate extends Task {
  
  
  

--
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