From c7196c575150a98374d018eeb1a6a4193e9d96b3 Mon Sep 17 00:00:00 2001 From: mitja <25105259+nice2mitja@users.noreply.github.com> Date: Thu, 24 Aug 2023 08:41:57 +0200 Subject: [PATCH 1/3] Create SapResolver.java --- .../java/com/openwebstart/jvm/vendor/SapResolver.java | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 openwebstart/src/main/java/com/openwebstart/jvm/vendor/SapResolver.java diff --git a/openwebstart/src/main/java/com/openwebstart/jvm/vendor/SapResolver.java b/openwebstart/src/main/java/com/openwebstart/jvm/vendor/SapResolver.java new file mode 100644 index 00000000..0ac6e3ce --- /dev/null +++ b/openwebstart/src/main/java/com/openwebstart/jvm/vendor/SapResolver.java @@ -0,0 +1,11 @@ +package com.openwebstart.jvm.vendor; + +import static com.openwebstart.jvm.runtimes.Vendor.SAP; + +public class SapResolver extends BasicVendorResolver { + + public SapResolver() { + super(SAP, "sap", "SAP SE", "SAP AG"); + } + +} From 3cee0793d22e92809bfe607d4e61831f3f9d35db Mon Sep 17 00:00:00 2001 From: mitja <25105259+nice2mitja@users.noreply.github.com> Date: Thu, 24 Aug 2023 08:58:30 +0200 Subject: [PATCH 2/3] Update Vendor.java --- .../src/main/java/com/openwebstart/jvm/runtimes/Vendor.java | 1 + 1 file changed, 1 insertion(+) diff --git a/openwebstart/src/main/java/com/openwebstart/jvm/runtimes/Vendor.java b/openwebstart/src/main/java/com/openwebstart/jvm/runtimes/Vendor.java index 403f9dc1..a3f7dabd 100644 --- a/openwebstart/src/main/java/com/openwebstart/jvm/runtimes/Vendor.java +++ b/openwebstart/src/main/java/com/openwebstart/jvm/runtimes/Vendor.java @@ -28,6 +28,7 @@ public class Vendor { public static final Vendor BELLSOFT = new Vendor("BellSoft"); public static final Vendor AZUL = new Vendor("Azul Systems, Inc.", "Azul"); public static final Vendor ECLIPSE = new Vendor("Eclipse Adoptium", "Adoptium"); + public static final Vendor SAP = new Vendor("SAP SE", "SAP"); private static final List resolver; From 712e6af125318cafce2642524823b8cc6803aaf3 Mon Sep 17 00:00:00 2001 From: mitja <25105259+nice2mitja@users.noreply.github.com> Date: Thu, 24 Aug 2023 09:04:52 +0200 Subject: [PATCH 3/3] Add call test for new vendor SAP --- .../com/openwebstart/jvm/runtimes/VendorManagerTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openwebstart/src/test/java/com/openwebstart/jvm/runtimes/VendorManagerTest.java b/openwebstart/src/test/java/com/openwebstart/jvm/runtimes/VendorManagerTest.java index cdab9e3d..d208db02 100644 --- a/openwebstart/src/test/java/com/openwebstart/jvm/runtimes/VendorManagerTest.java +++ b/openwebstart/src/test/java/com/openwebstart/jvm/runtimes/VendorManagerTest.java @@ -33,6 +33,8 @@ public void testFromString() { checkCall.accept(BELLSOFT, "Bellsoft LIBERICA"); checkCall.accept(BELLSOFT, "BELLsoFT"); checkCall.accept(KARAKUN, "Karakun"); + checkCall.accept(SAP, "sap"); + checkCall.accept(SAP, "SAP"); checkCall.accept(ORACLE, "oracle "); checkCall.accept(ORACLE, " Oracle"); @@ -44,6 +46,8 @@ public void testFromString() { checkCall.accept(BELLSOFT, " Bellsoft LIBERICA "); checkCall.accept(BELLSOFT, " BELLsoFT "); checkCall.accept(KARAKUN, " Karakun "); + checkCall.accept(SAP, "sap "); + checkCall.accept(SAP, " SAP"); } @Test @@ -66,6 +70,8 @@ public void testFromStringOrAny() { checkCall.accept(BELLSOFT, "Bellsoft LIBERICA"); checkCall.accept(BELLSOFT, "BELLsoFT"); checkCall.accept(KARAKUN, "Karakun"); + checkCall.accept(SAP, "sap"); + checkCall.accept(SAP, "SAP"); checkCall.accept(ORACLE, "oracle "); checkCall.accept(ORACLE, " Oracle"); @@ -77,5 +83,7 @@ public void testFromStringOrAny() { checkCall.accept(BELLSOFT, " Bellsoft LIBERICA "); checkCall.accept(BELLSOFT, " BELLsoFT "); checkCall.accept(KARAKUN, " Karakun "); + checkCall.accept(SAP, "sap "); + checkCall.accept(SAP, " SAP"); } }