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);
}
Aggregations