Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension of AbstractMojoTestCase from maven testing harness: injecting projects w/o creating stubs #656

Merged
merged 1 commit into from
Aug 27, 2022

Conversation

andrzejj0
Copy link
Contributor

Simple extension of AbstractMojoTestCase, adding the possibility of injecting a project without having to create project stubs.

Example usage:

    @Test
    public void testVersionlessDependency() throws Exception
    {
        SetMojo myMojo = createMojo( "set", "src/test/resources/org/codehaus/mojo/set/versionless-01/pom.xml" );
        assertNotNull( myMojo );
        myMojo.execute();
    }

…a possibility of injecting a project without having to create project stubs.
@slawekjaranowski
Copy link
Member

@ajarmoniuk Thanks again.
If you wish you can add yourself to contributors list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants