Package org.apache.directory.studio.maven.plugins

Examples of org.apache.directory.studio.maven.plugins.StudioCleanMojo


        // safety
        FileUtils.copyDirectory( new File( getBasedir(), "src/test/resources/unit/basic-clean-test" ), new File(
            getBasedir(), "target/test-classes/unit/basic-clean-test" ), null, "**/.svn,**/.svn/**" );

        StudioCleanMojo mojo = ( StudioCleanMojo ) lookupMojo( "clean", pluginPom );
        assertNotNull( mojo );

        mojo.execute();

        assertFalse( "File maven-eclipse.xml exists", checkExists( getBasedir() + "/target/test-classes/unit/"
            + "basic-clean-test/maven-eclipse.xml" ) );
        assertFalse( "File .externalToolBuilder exists", checkExists( getBasedir() + "/target/test-classes/unit/"
            + "basic-clean-test/.externalToolBuilders" ) );
View Full Code Here


     * @throws Exception
     */
    public void testBasicCleanException() throws Exception
    {
        String pluginPom = getBasedir() + "/src/test/resources/unit/basic-clean-test/plugin-exception-pom.xml";
        StudioCleanMojo mojo = ( StudioCleanMojo ) lookupMojo( "clean", pluginPom );
        assertNotNull( mojo );

        try
        {
            mojo.execute();
        }
        catch ( Exception e )
        {
            fail( "Exception thrown: " + e.toString() );
        }
View Full Code Here

TOP

Related Classes of org.apache.directory.studio.maven.plugins.StudioCleanMojo

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.