Skip to content

[MRESOLVER-715] Bump org.apache.maven:maven-parent from 42 to 44 #711

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import org.junit.Test;

import static org.junit.Assert.*;
import static org.junit.Assert.assertNotNull;

public class AbstractForwardingRepositorySystemSessionTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import org.junit.Test;

import static org.junit.Assert.*;
import static org.junit.Assert.assertNotNull;

/**
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@

import org.junit.Test;

import static org.junit.Assert.*;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;

public class DefaultRepositoryCacheTest {

Expand All @@ -40,12 +41,12 @@ private void put(Object key, Object value) {
}

@Test(expected = RuntimeException.class)
public void testGet_NullKey() {
public void testGetNullKey() {
get(null);
}

@Test(expected = RuntimeException.class)
public void testPut_NullKey() {
public void testPutNullKey() {
put(null, "data");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@

import org.junit.Test;

import static org.junit.Assert.*;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;

public class DefaultSessionDataTest {

Expand All @@ -47,12 +50,12 @@ private Object computeIfAbsent(Object key, Supplier<Object> supplier) {
}

@Test(expected = RuntimeException.class)
public void testGet_NullKey() {
public void testGetNullKey() {
get(null);
}

@Test(expected = RuntimeException.class)
public void testSet_NullKey() {
public void testSetNullKey() {
set(null, "data");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,33 +96,33 @@ private RemoteRepository newRepo() {
}

@Test
public void testArtifactDescriptorException_Serializable() {
public void testArtifactDescriptorExceptionSerializable() {
ArtifactDescriptorRequest request = new ArtifactDescriptorRequest();
request.setArtifact(newArtifact()).addRepository(newRepo()).setTrace(newTrace());
ArtifactDescriptorResult result = new ArtifactDescriptorResult(request);
assertSerializable(new ArtifactDescriptorException(result));
}

@Test
public void testArtifactResolutionException_Serializable() {
public void testArtifactResolutionExceptionSerializable() {
ArtifactRequest request = new ArtifactRequest();
request.setArtifact(newArtifact()).addRepository(newRepo()).setTrace(newTrace());
ArtifactResult result = new ArtifactResult(request);
assertSerializable(new ArtifactResolutionException(Arrays.asList(result)));
}

@Test
public void testArtifactTransferException_Serializable() {
public void testArtifactTransferExceptionSerializable() {
assertSerializable(new ArtifactTransferException(newArtifact(), newRepo(), "error"));
}

@Test
public void testArtifactNotFoundException_Serializable() {
public void testArtifactNotFoundExceptionSerializable() {
assertSerializable(new ArtifactNotFoundException(newArtifact(), newRepo(), "error"));
}

@Test
public void testDependencyCollectionException_Serializable() {
public void testDependencyCollectionExceptionSerializable() {
CollectRequest request = new CollectRequest();
request.addDependency(new Dependency(newArtifact(), "compile"));
request.addRepository(newRepo());
Expand All @@ -132,7 +132,7 @@ public void testDependencyCollectionException_Serializable() {
}

@Test
public void testDependencyResolutionException_Serializable() {
public void testDependencyResolutionExceptionSerializable() {
CollectRequest request = new CollectRequest();
request.addDependency(new Dependency(newArtifact(), "compile"));
request.addRepository(newRepo());
Expand All @@ -145,56 +145,56 @@ public void testDependencyResolutionException_Serializable() {
}

@Test
public void testMetadataTransferException_Serializable() {
public void testMetadataTransferExceptionSerializable() {
assertSerializable(new MetadataTransferException(newMetadata(), newRepo(), "error"));
}

@Test
public void testMetadataNotFoundException_Serializable() {
public void testMetadataNotFoundExceptionSerializable() {
assertSerializable(new MetadataNotFoundException(newMetadata(), newRepo(), "error"));
}

@Test
public void testNoLocalRepositoryManagerException_Serializable() {
public void testNoLocalRepositoryManagerExceptionSerializable() {
assertSerializable(new NoLocalRepositoryManagerException(new LocalRepository("/tmp")));
}

@Test
public void testNoRepositoryConnectorException_Serializable() {
public void testNoRepositoryConnectorExceptionSerializable() {
assertSerializable(new NoRepositoryConnectorException(newRepo()));
}

@Test
public void testNoRepositoryLayoutException_Serializable() {
public void testNoRepositoryLayoutExceptionSerializable() {
assertSerializable(new NoRepositoryLayoutException(newRepo()));
}

@Test
public void testNoTransporterException_Serializable() {
public void testNoTransporterExceptionSerializable() {
assertSerializable(new NoTransporterException(newRepo()));
}

@Test
public void testRepositoryOfflineException_Serializable() {
public void testRepositoryOfflineExceptionSerializable() {
assertSerializable(new RepositoryOfflineException(newRepo()));
}

@Test
public void testUnsolvableVersionConflictException_Serializable() {
public void testUnsolvableVersionConflictExceptionSerializable() {
DependencyNode node = new DefaultDependencyNode(new Dependency(newArtifact(), "test"));
assertSerializable(new UnsolvableVersionConflictException(Collections.singleton(Arrays.asList(node))));
}

@Test
public void testVersionResolutionException_Serializable() {
public void testVersionResolutionExceptionSerializable() {
VersionRequest request = new VersionRequest();
request.setArtifact(newArtifact()).addRepository(newRepo()).setTrace(newTrace());
VersionResult result = new VersionResult(request);
assertSerializable(new VersionResolutionException(result));
}

@Test
public void testVersionRangeResolutionException_Serializable() {
public void testVersionRangeResolutionExceptionSerializable() {
VersionRangeRequest request = new VersionRangeRequest();
request.setArtifact(newArtifact()).addRepository(newRepo()).setTrace(newTrace());
VersionRangeResult result = new VersionRangeResult(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@

import org.junit.Test;

import static org.junit.Assert.*;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertSame;

/**
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@

import org.junit.Test;

import static org.junit.Assert.*;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotSame;
import static org.junit.Assert.assertTrue;

/**
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
import org.eclipse.aether.artifact.DefaultArtifact;
import org.junit.Test;

import static org.junit.Assert.*;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotSame;
import static org.junit.Assert.assertSame;

/**
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@
import org.eclipse.aether.RepositorySystemSession;
import org.junit.Test;

import static org.junit.Assert.*;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.fail;

public class AuthenticationContextTest {

Expand Down Expand Up @@ -74,7 +79,7 @@ public void testForRepository() {
}

@Test
public void testForRepository_NoAuth() {
public void testForRepositoryNoAuth() {
RepositorySystemSession session = newSession();
RemoteRepository repo = newRepo(null, newProxy(newAuth()));
AuthenticationContext context = AuthenticationContext.forRepository(session, repo);
Expand All @@ -96,7 +101,7 @@ public void testForProxy() {
}

@Test
public void testForProxy_NoProxy() {
public void testForProxyNoProxy() {
RepositorySystemSession session = newSession();
Proxy proxy = null;
RemoteRepository repo = newRepo(newAuth(), proxy);
Expand All @@ -105,7 +110,7 @@ public void testForProxy_NoProxy() {
}

@Test
public void testForProxy_NoProxyAuth() {
public void testForProxyNoProxyAuth() {
RepositorySystemSession session = newSession();
Proxy proxy = newProxy(null);
RemoteRepository repo = newRepo(newAuth(), proxy);
Expand All @@ -114,7 +119,7 @@ public void testForProxy_NoProxyAuth() {
}

@Test
public void testGet_StringVsChars() {
public void testGetStringVsChars() {
AuthenticationContext context = AuthenticationContext.forRepository(newSession(), newRepo(newAuth(), null));
context.put("key", new char[] {'v', 'a', 'l', '1'});
assertEquals("val1", context.get("key"));
Expand All @@ -123,7 +128,7 @@ public void testGet_StringVsChars() {
}

@Test
public void testGet_StringVsFile() {
public void testGetStringVsFile() {
AuthenticationContext context = AuthenticationContext.forRepository(newSession(), newRepo(newAuth(), null));
context.put("key", "val1");
assertEquals(new File("val1"), context.get("key", File.class));
Expand All @@ -132,7 +137,7 @@ public void testGet_StringVsFile() {
}

@Test
public void testPut_EraseCharArrays() {
public void testPutEraseCharArrays() {
AuthenticationContext context = AuthenticationContext.forRepository(newSession(), newRepo(newAuth(), null));
char[] secret = {'v', 'a', 'l', 'u', 'e'};
context.put("key", secret);
Expand All @@ -141,7 +146,7 @@ public void testPut_EraseCharArrays() {
}

@Test
public void testClose_EraseCharArrays() {
public void testCloseEraseCharArrays() {
AuthenticationContext.close(null);

AuthenticationContext context = AuthenticationContext.forRepository(newSession(), newRepo(newAuth(), null));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@
import org.eclipse.aether.RepositorySystemSession;
import org.junit.Test;

import static org.junit.Assert.*;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

public class AuthenticationDigestTest {

Expand Down Expand Up @@ -77,7 +82,7 @@ public void digest(AuthenticationDigest digest) {
}

@Test
public void testForRepository_NoAuth() {
public void testForRepositoryNoAuth() {
RemoteRepository repo = newRepo(null, null);

String digest = AuthenticationDigest.forRepository(newSession(), repo);
Expand Down Expand Up @@ -118,15 +123,15 @@ public void digest(AuthenticationDigest digest) {
}

@Test
public void testForProxy_NoProxy() {
public void testForProxyNoProxy() {
RemoteRepository repo = newRepo(null, null);

String digest = AuthenticationDigest.forProxy(newSession(), repo);
assertEquals("", digest);
}

@Test
public void testForProxy_NoProxyAuth() {
public void testForProxyNoProxyAuth() {
RemoteRepository repo = newRepo(null, newProxy(null));

String digest = AuthenticationDigest.forProxy(newSession(), repo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.*;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertSame;

public class RemoteRepositoryBuilderTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import org.junit.Test;

import static org.junit.Assert.*;
import static org.junit.Assert.assertEquals;

/**
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import org.junit.Test;

import static org.junit.Assert.*;
import static org.junit.Assert.assertNotNull;

/**
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
import org.eclipse.aether.RepositorySystemSession;
import org.junit.Test;

import static org.junit.Assert.*;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

/**
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
import static org.eclipse.aether.connector.basic.TestChecksumAlgorithmSelector.SHA1;
import static org.eclipse.aether.connector.basic.TestChecksumAlgorithmSelector.SHA256;
import static org.eclipse.aether.connector.basic.TestChecksumAlgorithmSelector.SHA512;
import static org.junit.Assert.*;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

public class ChecksumCalculatorTest {

Expand Down
Loading