Skip to content

Commit 354e729

Browse files
committed
[java] isDisabled set public and static to access from static context
1 parent 4f39f5d commit 354e729

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

java/main/src/main/java/com/saucelabs/saucebindings/SauceSession.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,11 @@ public void addTags(List<String> tags) {
274274
driver.executeScript("sauce:job-tags=" + tagString);
275275
}
276276

277+
public static boolean isDisabled() {
278+
return Boolean.parseBoolean(System.getenv("SAUCE_DISABLED"))
279+
|| Boolean.getBoolean("sauce.disabled");
280+
}
281+
277282
/**
278283
* @deprecated Do not use magic strings, pass in boolean for whether test has passed.
279284
*/
@@ -329,9 +334,4 @@ private void validateMac(String msg) {
329334
throw new InvalidArgumentException(error);
330335
}
331336
}
332-
333-
private boolean isDisabled() {
334-
return Boolean.parseBoolean(System.getenv("SAUCE_DISABLED"))
335-
|| Boolean.getBoolean("sauce.disabled");
336-
}
337337
}

0 commit comments

Comments
 (0)