mirror of https://github.com/apache/maven.git
updated unit test
This commit is contained in:
parent
61f1d01ba8
commit
0252eb2a1f
|
@ -24,7 +24,7 @@ import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
|
||||||
import org.apache.maven.toolchain.java.JavaToolchainImpl;
|
import org.apache.maven.toolchain.java.DefaultJavaToolChain;
|
||||||
import org.apache.maven.toolchain.model.PersistedToolchains;
|
import org.apache.maven.toolchain.model.PersistedToolchains;
|
||||||
import org.apache.maven.toolchain.model.ToolchainModel;
|
import org.apache.maven.toolchain.model.ToolchainModel;
|
||||||
import org.apache.maven.toolchain.model.io.xpp3.MavenToolchainsXpp3Reader;
|
import org.apache.maven.toolchain.model.io.xpp3.MavenToolchainsXpp3Reader;
|
||||||
|
@ -48,8 +48,8 @@ public class DefaultToolchainTest
|
||||||
PersistedToolchains jdks = reader.read( jdksIS );
|
PersistedToolchains jdks = reader.read( jdksIS );
|
||||||
PersistedToolchains jdksExtra = reader.read( jdksExtraIS );
|
PersistedToolchains jdksExtra = reader.read( jdksExtraIS );
|
||||||
|
|
||||||
JavaToolchainImpl tc1 = new JavaToolchainImpl( jdks.getToolchains().get( 0 ), null );
|
DefaultJavaToolChain tc1 = new DefaultJavaToolChain( jdks.getToolchains().get( 0 ), null );
|
||||||
JavaToolchainImpl tc2 = new JavaToolchainImpl( jdksExtra.getToolchains().get( 0 ), null );
|
DefaultJavaToolChain tc2 = new DefaultJavaToolChain( jdksExtra.getToolchains().get( 0 ), null );
|
||||||
|
|
||||||
assertTrue( tc1.equals( tc1 ) );
|
assertTrue( tc1.equals( tc1 ) );
|
||||||
assertFalse( tc1.equals( tc2 ) );
|
assertFalse( tc1.equals( tc2 ) );
|
||||||
|
|
Loading…
Reference in New Issue