@PrepareForTest(value=org.apache.maven.plugin.surefire.AbstractSurefireMojo.class) @PowerMockIgnore(value={"org.jacoco.agent.rt.*","com.vladium.emma.rt.*"}) public class AbstractSurefireMojoToolchainsTest extends Object
AbstractSurefireMojo
. jdkToolchain parameterModifier and Type | Class and Description |
---|---|
static class |
AbstractSurefireMojoToolchainsTest.MockToolchainManager
Mocks a ToolchainManager
|
static class |
AbstractSurefireMojoToolchainsTest.MockToolchainManagerMaven32
Mocks an older version that does not implement getToolchains()
returns provided toolchain
|
Modifier and Type | Field and Description |
---|---|
org.junit.rules.ExpectedException |
e |
Constructor and Description |
---|
AbstractSurefireMojoToolchainsTest() |
Modifier and Type | Method and Description |
---|---|
void |
shouldCallMaven33xMethodWhenSpecSet()
Ensure that we use the toolchain found by getToolchainMaven33x()
when the jdkToolchain parameter is set.
|
void |
shouldChangeJavaHomeFromJvm()
Ensures that the environmentVariables map for launching a test jvm
contains a jvm parameter-driven entry when jvm is set.
|
void |
shouldChangeJavaHomeFromToolchain()
Ensures that the environmentVariables map for launching a test jvm
contains a Toolchain-driven entry when toolchain is set.
|
void |
shouldFailWithWrongJvmExecPath() |
void |
shouldFallthroughToBuildContextWhenNoSpecSet()
Ensure that we use the toolchain from build context when
no jdkToolchain map is configured in mojo parameters.
|
void |
shouldGetMaven33xToolchain() |
void |
shouldNotChangeJavaHomeFromJvmIfAlreadySet()
Ensures that users can manually configure a value for JAVA_HOME
and we will not override it
|
void |
shouldNotChangeJavaHomeFromToolchainIfAlreadySet() |
void |
shouldReturnNoToolchainInMaven32() |
void |
shouldThrowMaven33xToolchain() |
void |
withoutJvmAndToolchain() |
public void shouldCallMaven33xMethodWhenSpecSet() throws Exception
Exception
public void shouldFallthroughToBuildContextWhenNoSpecSet() throws Exception
Exception
public void shouldReturnNoToolchainInMaven32() throws Exception
Exception
public void shouldThrowMaven33xToolchain() throws Exception
Exception
public void shouldGetMaven33xToolchain() throws Exception
Exception
public void shouldChangeJavaHomeFromToolchain() throws Exception
Exception
public void shouldNotChangeJavaHomeFromToolchainIfAlreadySet() throws Exception
Exception
public void shouldChangeJavaHomeFromJvm() throws Exception
Exception
public void shouldNotChangeJavaHomeFromJvmIfAlreadySet() throws Exception
Exception
Copyright © 2004–2020 The Apache Software Foundation. All rights reserved.