Package org.apache.maven.it

Examples of org.apache.maven.it.Verifier


    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.assertTrue( "tar assembly should  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 = new HashSet<String>();
       
View Full Code Here

    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

        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 SurefireLauncher getSubProjectLauncher( String subProject )
        throws VerificationException
    {
        final File subFile = surefireVerifier.getSubFile( subProject );
        return new SurefireLauncher( new Verifier( subFile.getAbsolutePath() ) );
    }
View Full Code Here

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

    {
        final File unpackLocation = unpack( "junit-pathWithUmlaut" ).getUnpackLocation();
        File dest = new File( unpackLocation.getParentFile().getPath(), "/junit-pathWith\u00DCmlaut" );
        FileUtils.deleteDirectory( dest );
        unpackLocation.renameTo( dest );
        return new SurefireLauncher( new Verifier( dest.getAbsolutePath() ) );
    }
View Full Code Here

    }

    private static Verifier createVerifier( Class testClass, String resourceName )
        throws IOException, VerificationException
    {
        return new Verifier( simpleExtractResources( testClass, resourceName ).getAbsolutePath() );
    }
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.