Add a unit test for MavenRepositorySystemUtils#newSession

This commit is contained in:
Guillaume Nodet 2021-09-21 16:22:01 +02:00
parent edbf133ab3
commit e30c1bf9fc
1 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,7 @@ package org.apache.maven.repository.internal;
*/
import org.eclipse.aether.RepositorySystem;
import org.eclipse.aether.RepositorySystemSession;
import org.eclipse.aether.impl.MetadataGeneratorFactory;
import org.eclipse.aether.spi.locator.ServiceLocator;
import org.junit.jupiter.api.Test;
@ -30,6 +31,13 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
public class MavenRepositorySystemUtilsTest
{
@Test
public void testNewSession()
{
RepositorySystemSession session = MavenRepositorySystemUtils.newSession();
assertNotNull( session );
}
@Test
public void testGetRepositorySystem()
{