Skip to content
Snippets Groups Projects
Verified Commit 97f57e2d authored by Griefed's avatar Griefed :joystick:
Browse files

no message

parent 93e475d5
No related branches found
No related tags found
1 merge request!11chore(deps): update dependency com.fasterxml.jackson.core:jackson-databind to v2.13.2.2
......@@ -126,13 +126,16 @@ public class UpdateCheckerTests {
String latest = GITHUB.latestVersion(false);
String latestPre = GITHUB.latestVersion(true);
System.out.println("latest = " + latest);
System.out.println("latestPre = " + latestPre);
System.out.println("Old version should return the newest regular release, whilst not checking for pre-releases.");
Assertions.assertEquals(
latest,
checkForUpdate(
"2.0.0",
false
).split(";")[0]);
).split(";")[0]);
System.out.println("Old version should return the newest pre-release release, whilst checking for pre-releases, too.");
Assertions.assertEquals(
......@@ -140,7 +143,7 @@ public class UpdateCheckerTests {
checkForUpdate(
"2.0.0",
true
).split(";")[0]);
).split(";")[0]);
......@@ -150,7 +153,7 @@ public class UpdateCheckerTests {
checkForUpdate(
"2.0.0-alpha.2",
false
).split(";")[0]);
).split(";")[0]);
System.out.println("Old alpha should return the newest alpha/beta, whilst checking for pre-releases, too.");
Assertions.assertEquals(
......@@ -158,7 +161,7 @@ public class UpdateCheckerTests {
checkForUpdate(
"2.0.0-alpha.2",
true
).split(";")[0]);
).split(";")[0]);
......@@ -168,7 +171,7 @@ public class UpdateCheckerTests {
checkForUpdate(
"2.0.0-beta.2",
false
).split(";")[0]);
).split(";")[0]);
System.out.println("Old beta should return the newest alpha/beta, whilst checking for pre-releases, too.");
Assertions.assertEquals(
......@@ -176,18 +179,18 @@ public class UpdateCheckerTests {
checkForUpdate(
"2.0.0-beta.2",
true
).split(";")[0]);
).split(";")[0]);
System.out.println("Old beta, but newer than the newest regular release, should return no available updates, whilst not checking for pre-releases.");
/*System.out.println("Old beta, but newer than the newest regular release, should return no available updates, whilst not checking for pre-releases.");
Assertions.assertEquals(
"No updates available.",
checkForUpdate(
"3.0.0-beta.2",
false
)
);
);*/
System.out.println("Old beta, but newer than the newest regular release, should the latest available alpha/beta, whilst checking for pre-releases, too.");
Assertions.assertEquals(
......@@ -195,18 +198,18 @@ public class UpdateCheckerTests {
checkForUpdate(
"3.0.0-beta.2",
true
).split(";")[0]);
).split(";")[0]);
System.out.println("Old beta, but newer than the newest regular release, should return no available updates, whilst not checking for pre-releases.");
/*System.out.println("Old beta, but newer than the newest regular release, should return no available updates, whilst not checking for pre-releases.");
Assertions.assertEquals(
"No updates available.",
checkForUpdate(
"3.0.0-alpha.2",
false
)
);
);*/
System.out.println("Old alpha, but newer than the newest regular release, should return the newest alpha/beta, whilst checking for pre-releases, too.");
Assertions.assertEquals(
......@@ -214,7 +217,7 @@ public class UpdateCheckerTests {
checkForUpdate(
"3.0.0-alpha.2",
true
).split(";")[0]);
).split(";")[0]);
......@@ -304,7 +307,7 @@ public class UpdateCheckerTests {
checkForUpdate(
latest + "-beta.2",
false
).split(";")[0]);
).split(";")[0]);
System.out.println("Beta for latest version should return latest version as available update.");
Assertions.assertEquals(
......@@ -312,7 +315,7 @@ public class UpdateCheckerTests {
checkForUpdate(
latest + "-beta.2",
true
).split(";")[0]);
).split(";")[0]);
......@@ -322,7 +325,7 @@ public class UpdateCheckerTests {
checkForUpdate(
latest + "-alpha.12",
false
).split(";")[0]);
).split(";")[0]);
System.out.println("Alpha for latest version should return latest version as available update.");
Assertions.assertEquals(
......@@ -330,7 +333,7 @@ public class UpdateCheckerTests {
checkForUpdate(
latest + "-alpha.2",
true
).split(";")[0]);
).split(";")[0]);
/*System.out.println(tests.latestVersion(false));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment