Skip to content

Commit

Permalink
Display "Latest" Versions in Reports Summary
Browse files Browse the repository at this point in the history
  • Loading branch information
sultan authored and slachiewicz committed Dec 1, 2021
1 parent e6dcb4f commit 6e5f748
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/it/it-dependency-updates-report-001/verify.bsh
Expand Up @@ -11,7 +11,7 @@ try
.replaceAll( "&[^;]+;", " " )
.replaceAll( "\\s+", " " );

if ( result.indexOf( "localhost dummy-api 1.1 compile jar 1.1.0-2 1.1.1 1.2 2.0" ) < 0 )
if ( result.indexOf( "localhost dummy-api 1.1 compile jar 1.1.0-2 1.1.3 1.3 3.0" ) < 0 )
{
System.out.println( "Did not generate summary correctly" );
System.out.println( "Result = \"" + result +"\"" );
Expand Down
2 changes: 1 addition & 1 deletion src/it/it-dependency-updates-report-003/verify.bsh
Expand Up @@ -11,7 +11,7 @@ try
.replaceAll( "&[^;]+;", " " )
.replaceAll( "\\s+", " " );

if ( result.indexOf( "localhost dummy-api 1.1 compile jar 1.1.0-2 1.1.1 1.2 2.0" ) < 0 )
if ( result.indexOf( "localhost dummy-api 1.1 compile jar 1.1.0-2 1.1.3 1.3 3.0" ) < 0 )
{
System.out.println( "Did not pick up updated in dependencies section" );
System.out.println( "Result = \"" + result +"\"" );
Expand Down
4 changes: 2 additions & 2 deletions src/it/it-dependency-updates-report-004/verify.bsh
Expand Up @@ -11,13 +11,13 @@ try
.replaceAll( "&[^;]+;", " " )
.replaceAll( "\\s+", " " );

if ( !result.contains( "localhost dummy-api 1.1 jar 1.1.0-2 1.1.1 1.2 2.0" ) )
if ( !result.contains( "localhost dummy-api 1.1 jar 1.1.0-2 1.1.3 1.3 3.0" ) )
{
System.out.println( "Did not pick up updated in Dependency Management section" );
System.out.println( "Result = \"" + result +"\"" );
return false;
}
if ( !result.contains( "localhost dummy-impl 1.1 jar 1.2 2.0" ) )
if ( !result.contains( "localhost dummy-impl 1.1 jar 1.4 2.2" ) )
{
System.out.println( "Did not pick up updated in Dependency Management section" );
System.out.println( "Result = \"" + result +"\"" );
Expand Down
4 changes: 2 additions & 2 deletions src/it/it-plugin-updates-report-001/verify.bsh
Expand Up @@ -19,13 +19,13 @@ try
.replaceAll( "&[^;]+;", " " )
.replaceAll( "\\s+", " " );

if ( result.indexOf( "localhost dummy-maven-plugin 1.0 2.0" ) < 0 )
if ( result.indexOf( "localhost dummy-maven-plugin 1.0 3.1" ) < 0 )
{
System.out.println( "Did not generate dependency summary correctly" );
System.out.println( "Result = \"" + result +"\"" );
return false;
}
if ( result.indexOf( "dummy-api 1.1 jar 1.1.0-2 1.1.1 1.2 2.0" ) < 0 )
if ( result.indexOf( "dummy-api 1.1 jar 1.1.0-2 1.1.3 1.3 3.0" ) < 0 )
{
System.out.println( "Did not generate dependency summary correctly" );
System.out.println( "Result = \"" + result +"\"" );
Expand Down
2 changes: 1 addition & 1 deletion src/it/it-plugin-updates-report-002/verify.bsh
Expand Up @@ -19,7 +19,7 @@ try
.replaceAll( "&[^;]+;", " " )
.replaceAll( "\\s+", " " );

if ( result.indexOf( "localhost dummy-maven-plugin 1.0 2.0" ) < 0 )
if ( result.indexOf( "localhost dummy-maven-plugin 1.0 3.1" ) < 0 )
{
System.out.println( "Did not generate summary correctly" );
System.out.println( "Result = \"" + result +"\"" );
Expand Down
2 changes: 1 addition & 1 deletion src/it/it-plugin-updates-report-003/verify.bsh
Expand Up @@ -19,7 +19,7 @@ try
.replaceAll( "&[^;]+;", " " )
.replaceAll( "\\s+", " " );

if ( result.indexOf( "localhost dummy-maven-plugin 1.0 2.0" ) < 0 )
if ( result.indexOf( "localhost dummy-maven-plugin 1.0 3.1" ) < 0 )
{
System.out.println( "Did not generate summary correctly" );
System.out.println( "Result = \"" + result +"\"" );
Expand Down
6 changes: 3 additions & 3 deletions src/it/it-property-updates-report-001/verify.bsh
Expand Up @@ -28,7 +28,7 @@ try
}
if ( result.indexOf( "# of properties where the next version available is smaller than an incremental version update 0" ) < 0 )
{
System.out.println( "Did not generate with subincrermental totals correctly" );
System.out.println( "Did not generate with subincremental totals correctly" );
System.out.println( "Result = \"" + result +"\"" );
return false;
}
Expand All @@ -50,13 +50,13 @@ try
System.out.println( "Result = \"" + result +"\"" );
return false;
}
if ( result.indexOf( "${impl-version} 2.0 2.1" ) < 0 )
if ( result.indexOf( "${impl-version} 2.0 2.2" ) < 0 )
{
System.out.println( "Did not generate summary for ${impl-version} correctly" );
System.out.println( "Result = \"" + result +"\"" );
return false;
}
if ( result.indexOf( "${api-version} 1.0 1.0.1 1.1 2.0" ) < 0 )
if ( result.indexOf( "${api-version} 1.0 1.0.1 1.3 3.0" ) < 0 )
{
System.out.println( "Did not generate summary for ${api-version} correctly" );
System.out.println( "Result = \"" + result +"\"" );
Expand Down

0 comments on commit 6e5f748

Please sign in to comment.