Skip to content

Commit

Permalink
Update stream app version in test to 5.0.1-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
onobc committed Aug 19, 2024
1 parent 4bffd55 commit f1f17f6
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ public void testJars() throws MalformedURLException {
assertThat(theRest).isEqualTo("https://repo.maven.apache.org/maven2/org/springframework/cloud/stream/app/file-sink-rabbit/file-sink-rabbit");

//No dashes in artfiact name - BUILD-SNAPSHOT
urlResource = new UrlResource("https://repo.maven.apache.org/maven2/org/springframework/cloud/stream/app/file/file-4.0.1-SNAPSHOT.jar");
urlResource = new UrlResource("https://repo.maven.apache.org/maven2/org/springframework/cloud/stream/app/file/file-5.0.1-SNAPSHOT.jar");
version = appResourceCommon.getUrlResourceVersion(urlResource);
assertThat(version).isEqualTo("4.0.1-SNAPSHOT");
assertThat(version).isEqualTo("5.0.1-SNAPSHOT");
theRest = appResourceCommon.getResourceWithoutVersion(urlResource);
assertThat(theRest).isEqualTo("https://repo.maven.apache.org/maven2/org/springframework/cloud/stream/app/file/file");

Expand All @@ -152,16 +152,16 @@ public void testJars() throws MalformedURLException {
assertThat(theRest).isEqualTo("https://repo.maven.apache.org/maven2/org/springframework/cloud/stream/app/file/file");

//Spring style snapshots naming scheme
urlResource = new UrlResource("https://repo.maven.apache.org/maven2/org/springframework/cloud/stream/app/file-sink-rabbit/file-sink-rabbit-4.0.1-SNAPSHOT.jar");
urlResource = new UrlResource("https://repo.maven.apache.org/maven2/org/springframework/cloud/stream/app/file-sink-rabbit/file-sink-rabbit-5.0.1-SNAPSHOT.jar");
version = appResourceCommon.getUrlResourceVersion(urlResource);
assertThat(version).isEqualTo("4.0.1-SNAPSHOT");
assertThat(version).isEqualTo("5.0.1-SNAPSHOT");
theRest = appResourceCommon.getResourceWithoutVersion(urlResource);
assertThat(theRest).isEqualTo("https://repo.maven.apache.org/maven2/org/springframework/cloud/stream/app/file-sink-rabbit/file-sink-rabbit");

//Standard maven style naming scheme
urlResource = new UrlResource("https://repo.maven.apache.org/maven2/org/springframework/cloud/stream/app/file-sink-rabbit/file-sink-rabbit-4.0.1-SNAPSHOT.jar");
urlResource = new UrlResource("https://repo.maven.apache.org/maven2/org/springframework/cloud/stream/app/file-sink-rabbit/file-sink-rabbit-5.0.1-SNAPSHOT.jar");
version = appResourceCommon.getUrlResourceVersion(urlResource);
assertThat(version).isEqualTo("4.0.1-SNAPSHOT");
assertThat(version).isEqualTo("5.0.1-SNAPSHOT");
theRest = appResourceCommon.getResourceWithoutVersion(urlResource);
assertThat(theRest).isEqualTo("https://repo.maven.apache.org/maven2/org/springframework/cloud/stream/app/file-sink-rabbit/file-sink-rabbit");
}
Expand Down Expand Up @@ -195,8 +195,8 @@ public void testGetResourceVersion() {

@Test
public void testGetMetadataResourceVersion() {
String httpUri = "http://repo.maven.apache.org/maven2/org/springframework/cloud/stream/app/cassandra-sink-rabbit/4.0.1-SNAPSHOT/cassandra-sink-rabbit-4.0.1-SNAPSHOT-metadata.jar";
String httpUri = "http://repo.maven.apache.org/maven2/org/springframework/cloud/stream/app/cassandra-sink-rabbit/5.0.1-SNAPSHOT/cassandra-sink-rabbit-5.0.1-SNAPSHOT-metadata.jar";
String version = appResourceCommon.getResourceVersion(appResourceCommon.getResource(httpUri));
assertThat(version).isEqualTo("4.0.1-SNAPSHOT");
assertThat(version).isEqualTo("5.0.1-SNAPSHOT");
}
}

0 comments on commit f1f17f6

Please sign in to comment.