Skip to content

Commit

Permalink
[MNG-7715] Update to resolver 1.9.6 (#1025)
Browse files Browse the repository at this point in the history
Update and apply some adjustments to UTs as
error message did change.

---

https://issues.apache.org/jira/browse/MNG-7715
  • Loading branch information
cstamas authored and michael-o committed Mar 9, 2023
1 parent 86d5eab commit 2370909
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
* under the License.
*/

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.startsWith;
import static org.junit.Assert.assertThat;

import java.io.File;
import java.util.Collections;
Expand Down Expand Up @@ -69,7 +70,7 @@ public void testResolveParentThrowsUnresolvableModelExceptionWhenNotFound() thro
catch ( final UnresolvableModelException e )
{
assertNotNull( e.getMessage() );
assertThat( e.getMessage(), startsWith( "Could not find artifact org.apache:apache:pom:0 in central" ) );
assertThat( e.getMessage(), containsString( "Could not find artifact org.apache:apache:pom:0 in central" ) );
}
}

Expand Down Expand Up @@ -150,7 +151,7 @@ public void testResolveDependencyThrowsUnresolvableModelExceptionWhenNotFound()
catch ( final UnresolvableModelException e )
{
assertNotNull( e.getMessage() );
assertThat( e.getMessage(), startsWith( "Could not find artifact org.apache:apache:pom:0 in central" ) );
assertThat( e.getMessage(), containsString( "Could not find artifact org.apache:apache:pom:0 in central" ) );
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void testResolveParentThrowsUnresolvableModelExceptionWhenNotFound() thro
catch ( final UnresolvableModelException e )
{
assertNotNull( e.getMessage() );
assertTrue( e.getMessage().startsWith( "Could not find artifact ut.simple:artifact:pom:0 in repo" ) );
assertTrue( e.getMessage().contains( "Could not find artifact ut.simple:artifact:pom:0 in repo" ) );
}
}

Expand Down Expand Up @@ -144,7 +144,7 @@ public void testResolveDependencyThrowsUnresolvableModelExceptionWhenNotFound()
catch ( final UnresolvableModelException e )
{
assertNotNull( e.getMessage() );
assertTrue( e.getMessage().startsWith( "Could not find artifact ut.simple:artifact:pom:0 in repo" ) );
assertTrue( e.getMessage().contains( "Could not find artifact ut.simple:artifact:pom:0 in repo" ) );
}
}

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ under the License.
<cipherVersion>2.0</cipherVersion>
<modelloVersion>1.11</modelloVersion>
<jxpathVersion>1.3</jxpathVersion>
<resolverVersion>1.9.2</resolverVersion>
<resolverVersion>1.9.6</resolverVersion>
<slf4jVersion>1.7.36</slf4jVersion>
<xmlunitVersion>2.2.1</xmlunitVersion>
<powermockVersion>1.7.4</powermockVersion>
Expand Down

0 comments on commit 2370909

Please sign in to comment.