Search in sources :

Example 1 with ToolchainManager

use of org.apache.maven.toolchain.ToolchainManager in project tycho by eclipse.

the class TestMojoToolchainTests method setUp.

@Override
public void setUp() throws Exception {
    toolchainManager = mock(ToolchainManager.class);
    session = mock(MavenSession.class);
    breeToolchain = mock(DefaultJavaToolChain.class);
    systemToolchain = mock(Toolchain.class);
    toolchainProvider = mock(ToolchainProvider.class);
    project = new MavenProject();
    testMojo = new TestMojo();
    setParameter(testMojo, "useJDK", JDKUsage.SYSTEM);
    setParameter(testMojo, "toolchainManager", toolchainManager);
    setParameter(testMojo, "toolchainProvider", toolchainProvider);
    setParameter(testMojo, "project", project);
    setParameter(testMojo, "session", session);
}
Also used : ToolchainManager(org.apache.maven.toolchain.ToolchainManager) Toolchain(org.apache.maven.toolchain.Toolchain) MavenSession(org.apache.maven.execution.MavenSession) MavenProject(org.apache.maven.project.MavenProject) DefaultJavaToolChain(org.apache.maven.toolchain.java.DefaultJavaToolChain) ToolchainProvider(org.eclipse.tycho.core.maven.ToolchainProvider)

Aggregations

MavenSession (org.apache.maven.execution.MavenSession)1 MavenProject (org.apache.maven.project.MavenProject)1 Toolchain (org.apache.maven.toolchain.Toolchain)1 ToolchainManager (org.apache.maven.toolchain.ToolchainManager)1 DefaultJavaToolChain (org.apache.maven.toolchain.java.DefaultJavaToolChain)1 ToolchainProvider (org.eclipse.tycho.core.maven.ToolchainProvider)1