Skip to content

Commit f2f6e45

Browse files
committed
Polishing
1 parent 64d7668 commit f2f6e45

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

junit-jupiter-api/src/main/java/org/junit/jupiter/api/EnabledIf.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ interface Bind {
177177
/**
178178
* Accessor for JUnit Platform configuration parameters.
179179
*
180-
* <p>Usage: {@code jupiterConfigurationParameter.get(key) -> String}
180+
* <p>Usage: {@code junitConfigurationParameter.get(key) -> String}
181181
*
182182
* @see org.junit.jupiter.api.extension.ExtensionContext#getConfigurationParameter(String)
183183
*/

junit-jupiter-engine/src/main/java/org/junit/jupiter/engine/extension/EnabledIfCondition.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private ConditionEvaluationResult evaluate(EnabledIf annotation, ScriptEngine sc
126126
boolean enabled;
127127

128128
if (result instanceof Boolean) {
129-
enabled = (Boolean) result;
129+
enabled = ((Boolean) result).booleanValue();
130130
}
131131
else {
132132
enabled = Boolean.parseBoolean(resultAsString);
@@ -180,7 +180,7 @@ private String joinLines(String delimiter, Iterable<? extends CharSequence> elem
180180
*/
181181
// apparently needs to be public (even if in a package private class); otherwise
182182
// we encounter errors such as the following during script evaluation:
183-
// TypeError: jupiterConfigurationParameter.get is not a function
183+
// TypeError: junitConfigurationParameter.get is not a function
184184
public interface Accessor {
185185

186186
/**

0 commit comments

Comments
 (0)