Logo Search packages:      
Sourcecode: gant version File versions

void org::codehaus::gant::ant::tests::Gant_Test::testUnknownTarget (  )  [inline]

Test the behaviour of a missing target in the Ant XML file.

Definition at line 72 of file Gant_Test.java.

                                    {
    try { project.executeTarget ( "blahBlahBlahBlah" ) ; }
    catch ( final BuildException be ) {
      assertEquals ( "Target \"blahBlahBlahBlah\" does not exist in the project \"Gant Ant Task Test\". " , be.getMessage ( ) ) ;
      return ;
    }
    fail ( "Should have got a BuildException." ) ;
  }


Generated by  Doxygen 1.6.0   Back to index