Package org.apache.maven.it

Examples of org.apache.maven.it.Verifier


    public OutputValidator getSubProjectValidator( String subProject )
        throws VerificationException
    {
        final File subFile = getValidator().getSubFile( subProject );
        return new OutputValidator( new Verifier( subFile.getAbsolutePath() ) );
    }
View Full Code Here


    {
        if ( verifier == null )
        {
            try
            {
                this.verifier = new Verifier( ensureUnpacked().getAbsolutePath() );
            }
            catch ( VerificationException e )
            {
                throw new RuntimeException( e );
            }
View Full Code Here

   
    public void test()
        throws IOException, URISyntaxException, VerificationException
    {
        File dir = TestUtils.getTestDir( "generate-from-bundle-with-type-and-classifier" );
        Verifier verifier = new Verifier( dir.getAbsolutePath() );
       
        verifier.executeGoal( "generate-resources" );
        verifier.verifyErrorFreeLog();
        verifier.resetStreams();
       
        File output = new File( dir, "target/maven-shared-archive-resources/DEPENDENCIES" );
        String content = FileUtils.fileRead( output );
       
        assertTrue( content.indexOf( "Built-In:" ) > -1 );
View Full Code Here

        final HttpParams params = httpClient.getParams();
        HttpConnectionParams.setConnectionTimeout( params, getTimeout() );
        HttpConnectionParams.setSoTimeout( params, getTimeout() );

        webappHome = ResourceExtractor.simpleExtractResources( getClass(), "/" + getWarArtifactId() );
        verifier = new Verifier( webappHome.getAbsolutePath() );

        boolean debugVerifier = Boolean.getBoolean( "verifier.maven.debug" );

        verifier.setMavenDebug( debugVerifier );
        verifier.setDebugJvm( Boolean.getBoolean( "verifier.debugJvm" ) );
View Full Code Here

    public void execute()
        throws VerificationException, IOException, URISyntaxException
    {
        File testDir = getTestDir( BASENAME );
       
        Verifier verifier = new Verifier( testDir.getAbsolutePath() );
       
        verifier.executeGoal( "package" );
       
        verifier.verifyErrorFreeLog();
        verifier.resetStreams();
       
        File assembly = new File( testDir, "target/" + BASENAME + "-" + VERSION + "-source-release.zip" );
       
        Set<String> required = Collections.emptySet();
       
View Full Code Here

    public void execute()
        throws VerificationException, IOException, URISyntaxException
    {
        File testDir = getTestDir( BASENAME );
       
        Verifier verifier = new Verifier( testDir.getAbsolutePath() );
       
        verifier.executeGoal( "package" );
       
        verifier.verifyErrorFreeLog();
        verifier.resetStreams();
       
        File assembly = new File( testDir, "target/" + BASENAME + "-" + VERSION + "-source-release.zip" );
       
        Set<String> required = new HashSet<String>();
       
View Full Code Here

    public void execute()
        throws VerificationException, IOException, URISyntaxException
    {
        File testDir = getTestDir( BASENAME );
       
        Verifier verifier = new Verifier( testDir.getAbsolutePath() );
       
        verifier.executeGoal( "package" );
       
        verifier.verifyErrorFreeLog();
        verifier.resetStreams();
       
        File assembly = new File( testDir, "target/" + BASENAME + "-" + VERSION + "-source-release.zip" );
       
        Set<String> required = new HashSet<String>();
       
View Full Code Here

    public void execute()
        throws VerificationException, IOException, URISyntaxException
    {
        File testDir = getTestDir( BASENAME );
       
        Verifier verifier = new Verifier( testDir.getAbsolutePath() );
       
        verifier.executeGoal( "package" );
       
        verifier.verifyErrorFreeLog();
        verifier.resetStreams();
       
        File assembly = new File( testDir, "target/" + BASENAME + "-" + VERSION + "-source-release.zip" );
       
        Set<String> required = new HashSet<String>();
       
View Full Code Here

    public void execute()
        throws VerificationException, IOException, URISyntaxException
    {
        File testDir = getTestDir( BASENAME );
       
        Verifier verifier = new Verifier( testDir.getAbsolutePath() );
       
        verifier.executeGoal( "package" );
       
        verifier.verifyErrorFreeLog();
        verifier.resetStreams();
       
       // make sure the tar did NOT get created by default
        File tarAssemblyFile = new File( testDir, "target/" + BASENAME + "-" + VERSION + "-source-release.tar.gz" );
        Assert.assertFalse( "tar assembly should not have been created", tarAssemblyFile.exists() );
       
View Full Code Here

    public void execute()
        throws VerificationException, IOException, URISyntaxException
    {
        File testDir = getTestDir( BASENAME );
       
        Verifier verifier = new Verifier( testDir.getAbsolutePath() );
       
        verifier.executeGoal( "package" );
       
        verifier.verifyErrorFreeLog();
        verifier.resetStreams();
       
        File assembly = new File( testDir, "target/" + BASENAME + "-" + VERSION + "-source-release.zip" );
       
        Set<String> required = Collections.emptySet();
       
View Full Code Here

TOP

Related Classes of org.apache.maven.it.Verifier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.