Examples of MavenProjectResourcesStub


Examples of org.apache.maven.plugin.ejb.stub.MavenProjectResourcesStub

    {

        final LinkedList exclusions = new LinkedList();
        exclusions.add( "org/sample/ejb/**" );

        final MavenProjectResourcesStub project = createTestProject( "client-excludes-emptypackage" );
        final EjbMojo mojo = lookupMojoWithSettings( project, new LinkedList(), exclusions, null );

        // put this on the target output dir
        project.addFile( "META-INF/ejb-jar.xml", MavenProjectResourcesStub.OUTPUT_FILE );
        project.addFile( "org/sample/ejb/AppOne.class", MavenProjectResourcesStub.OUTPUT_FILE );
        project.addFile( "org/sample/ejb2/AppTwo.class", MavenProjectResourcesStub.OUTPUT_FILE );

        // put this on the root dir
        project.addFile( "pom.xml", MavenProjectResourcesStub.ROOT_FILE );

        // start creating the environment
        project.setupBuildEnvironment();

        setVariableValueToObject( mojo, "generateClient", Boolean.TRUE );
        setVariableValueToObject( mojo, "ejbVersion", "2.1" );

        mojo.execute();
View Full Code Here

Examples of org.apache.maven.plugin.ejb.stub.MavenProjectResourcesStub

     * @throws Exception if any exception occurs
     */
    public void testEjbComplianceVersionTwoDotOneWithoutDescriptor()
        throws Exception
    {
        final MavenProjectResourcesStub project = createTestProject( "compliance-nodescriptor-2.1" );
        final EjbMojo mojo = lookupMojoWithDefaultSettings( project );

        // put this on the root dir
        project.addFile( "pom.xml", MavenProjectResourcesStub.ROOT_FILE );

        // start creating the environment
        project.setupBuildEnvironment();

        setVariableValueToObject( mojo, "generateClient", Boolean.FALSE );
        setVariableValueToObject( mojo, "ejbVersion", "2.1" );

        try
View Full Code Here

Examples of org.apache.maven.plugin.ejb.stub.MavenProjectResourcesStub

     */
    public void testEjbComplianceVersionThreeWithDescriptor()
        throws Exception
    {

        final MavenProjectResourcesStub project = createTestProject( "compliance-descriptor-3" );
        final EjbMojo mojo = lookupMojoWithDefaultSettings( project );

        // put this on the target dir
        project.addFile( "META-INF/ejb-jar.xml", MavenProjectResourcesStub.OUTPUT_FILE );

        // put this on the root dir
        project.addFile( "pom.xml", MavenProjectResourcesStub.ROOT_FILE );

        // start creating the environment
        project.setupBuildEnvironment();

        setVariableValueToObject( mojo, "generateClient", Boolean.FALSE );
        setVariableValueToObject( mojo, "ejbVersion", "3.0" );

        mojo.execute();
View Full Code Here

Examples of org.apache.maven.plugin.ejb.stub.MavenProjectResourcesStub

     * @throws Exception if any exception occurs
     */
    public void testEjbCompliance_3_0_WithoutDescriptor()
        throws Exception
    {
        final MavenProjectResourcesStub project = createTestProject( "compliance-nodescriptor-3" );
        final EjbMojo mojo = lookupMojoWithDefaultSettings( project );

        // put this on the root dir
        project.addFile( "pom.xml", MavenProjectResourcesStub.ROOT_FILE );

        // start creating the environment
        project.setupBuildEnvironment();

        setVariableValueToObject( mojo, "generateClient", Boolean.FALSE );
        setVariableValueToObject( mojo, "ejbVersion", "3.0" );

        mojo.execute();
View Full Code Here

Examples of org.apache.maven.plugin.ejb.stub.MavenProjectResourcesStub

    protected MavenProjectResourcesStub createTestProject( final String testName )
        throws Exception
    {
        // this will automatically create the isolated
        // test environment
        return new MavenProjectResourcesStub( testName );
    }
View Full Code Here

Examples of org.apache.maven.plugin.resources.remote.stub.MavenProjectResourcesStub


    public void testNoBundles()
        throws Exception
    {
        final MavenProjectResourcesStub project = createTestProject( "default-nobundles" );
        final ProcessRemoteResourcesMojo mojo = lookupProcessMojoWithDefaultSettings( project );

        setupDefaultProject( project );

        mojo.execute();
View Full Code Here

Examples of org.apache.maven.plugin.resources.remote.stub.MavenProjectResourcesStub

    }

    public void testSimpleBundles()
        throws Exception
    {
        final MavenProjectResourcesStub project = createTestProject( "default-simplebundles" );
        final ProcessRemoteResourcesMojo mojo = lookupProcessMojoWithSettings( project ,
                                                                        new String[] {
                                                                            "test:test:1.0"
                                                                        } );
View Full Code Here

Examples of org.apache.maven.plugin.resources.remote.stub.MavenProjectResourcesStub

    }

    public void testSimpleBundlesWithType()
        throws Exception
    {
        final MavenProjectResourcesStub project = createTestProject( "default-simplebundles" );
        final ProcessRemoteResourcesMojo mojo = lookupProcessMojoWithSettings( project ,
                                                                        new String[] {
                                                                            "test:test:1.0:war"
                                                                        } );
   
View Full Code Here

Examples of org.apache.maven.plugin.resources.remote.stub.MavenProjectResourcesStub

    }
   
    public void testSimpleBundlesWithClassifier()
        throws Exception
    {
        final MavenProjectResourcesStub project = createTestProject( "default-simplebundles" );
        final ProcessRemoteResourcesMojo mojo = lookupProcessMojoWithSettings( project ,
                                                                        new String[] {
                                                                            "test:test:1.0:jar:test"
                                                                        } );
   
View Full Code Here

Examples of org.apache.maven.plugin.resources.remote.stub.MavenProjectResourcesStub

    }
   
    public void testVelocityUTF8()
        throws Exception
    {
        final MavenProjectResourcesStub project = createTestProject( "default-utf8" );
        final ProcessRemoteResourcesMojo mojo = lookupProcessMojoWithSettings( project ,
                                                                        new String[] {
                                                                            "test:test:1.2"
                                                                        } );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.