Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Java vendor SAP #553

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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<VendorResolver> resolver;

Expand Down
Original file line number Diff line number Diff line change
@@ -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");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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
Expand All @@ -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");
Expand All @@ -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");
}
}