maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Porter <br...@apache.org>
Subject John - please validate Re: cvs commit: maven-components/maven-core/src/test/java/org/apache/maven/project DefaultProjectDefaultsInjectorTest.java
Date Thu, 03 Feb 2005 09:12:39 GMT
John,

Can you validate this? The test was failing for me and I didn't see ISE 
thrown in that code.

In fact, I can't find anything validating the values within a POM, only 
the XML format.

- Brett

brett@apache.org wrote:

>brett       2005/02/03 01:10:02
>
>  +//        try
>  +//        {
>  +        new DefaultProjectDefaultsInjector().injectDefaults( project );
>  +        Dependency dependency = (Dependency) project.getDependencies().get( 0 );
>  +        assertNull( "check version is null", dependency.getVersion() );
>  +//            fail("Should fail to validate dependency without a version.");
>  +//        }
>  +//        catch ( IllegalStateException e )
>  +//        {
>  +//            // should throw when it detects a missing version in the test dependency.
>  +//        }
>       }
>   
>   }
>  
>  
>  
>
>
>  
>


Mime
View raw message