Two cases in javaws/association failed even with very old jre9(b46) on Ubuntu 16.04 x64(sca00alt.us.oracle.com). Seems this machine doesn't support association. When I run the following code:
private boolean isAssociationSupport() {
if (System.getProperty("os.name").contains("Windows")) {
System.out.println("Windows case");
return true;
} else {
String getGNOME = System.getenv("GNOME_DESKTOP_SESSION_ID");
if (getGNOME != null) {
System.out.println("gnome case. getGNOME = "+getGNOME);
return true;
} else {
MsgPrinter.printErr(
"The OS:" + osName + " doesn't support association");
return false;
}
}
}
I got "gnome case. getGNOME = this-is-deprecated".
Need further check.
Affected tests:
RULE AssociationSuiteTest::testAssociationAlways any any
RULE AssociationSuiteTest::testAssociationAndCheck any any
private boolean isAssociationSupport() {
if (System.getProperty("os.name").contains("Windows")) {
System.out.println("Windows case");
return true;
} else {
String getGNOME = System.getenv("GNOME_DESKTOP_SESSION_ID");
if (getGNOME != null) {
System.out.println("gnome case. getGNOME = "+getGNOME);
return true;
} else {
MsgPrinter.printErr(
"The OS:" + osName + " doesn't support association");
return false;
}
}
}
I got "gnome case. getGNOME = this-is-deprecated".
Need further check.
Affected tests:
RULE AssociationSuiteTest::testAssociationAlways any any
RULE AssociationSuiteTest::testAssociationAndCheck any any