Skip to content

Commit

Permalink
Cross reference SpEL and Environment from JUnit Jupiter documentation
Browse files Browse the repository at this point in the history
Issue: SPR-14524
  • Loading branch information
sbrannen committed Sep 27, 2017
1 parent a1a7c62 commit e995854
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/docs/asciidoc/testing.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1054,9 +1054,10 @@ all test methods within that class are automatically enabled by default as well.

Expressions can be any of the following.

* Spring Expression Language (SpEL) expression – for example:
* <<core.adoc#expressions,Spring Expression Language>> (SpEL) expression – for example:
- `@EnabledIf("#{systemProperties['os.name'].toLowerCase().contains('mac')}")`
* Placeholder for a property available in the Spring `Environment` – for example:
* Placeholder for a property available in the Spring
<<core.adoc#beans-environment,`Environment`>> – for example:
- `@EnabledIf("${smoke.tests.enabled}")`
* Text literal – for example:
- `@EnabledIf("true")`
Expand Down Expand Up @@ -1090,9 +1091,10 @@ level, all test methods within that class are automatically disabled as well.

Expressions can be any of the following.

* Spring Expression Language (SpEL) expression – for example:
* <<core.adoc#expressions,Spring Expression Language>> (SpEL) expression – for example:
- `@DisabledIf("#{systemProperties['os.name'].toLowerCase().contains('mac')}")`
* Placeholder for a property available in the Spring `Environment` – for example:
* Placeholder for a property available in the Spring
<<core.adoc#beans-environment,`Environment`>> – for example:
- `@DisabledIf("${smoke.tests.disabled}")`
* Text literal – for example:
- `@DisabledIf("true")`
Expand Down

0 comments on commit e995854

Please sign in to comment.