| import |
| fitnesse.util |
| java.time |
Static methods can be called in scripts of any object and result can be assigned to slim symbols
| script | EchoFixture | |
| show | java.time.temporal.ChronoUnit.values | |
| $CU_HOURS= | java.time.temporal.ChronoUnit.valueOf | HOURS |
Static methods can serve as factories to create objects for scripts
| script | Instant.parse | 2007-12-03T10:15:30.00Z | |||
| $I1= | get fixture | ||||
| $I2= | plusSeconds | 7200 | |||
| check | until | $I2 | $CU_HOURS | 2 | |
| $I3= | plusSeconds | -3600 | |||
| check | until | $I3 | $CU_HOURS | -1 | |