-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
50 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 22 additions & 12 deletions
34
picocontainer/src/test/resources/cucumber/runtime/java/picocontainer/dates.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
Feature: Dates | ||
|
||
Scenario: A pretty date | ||
Given the date is 2011/10/25 | ||
Then the date should be Oct 25 2011 | ||
|
||
Scenario: An ISO 8601 date | ||
Given the iso date is 2012-03-01T06:54:14 | ||
Then the date should be Mar 1 2012 | ||
Scenario Outline: Parsing dates with simple a format (yyyy/MM/dd) | ||
Given the simple date is <input date> | ||
Then the date should be viewed in <timezone> as <year>, <month>, <day>, <hours>, <minutes>, <seconds> | ||
|
||
Scenario: An ISO 8601 date as Calendar | ||
Given the iso calendar is 2012-03-01T06:54:14 | ||
Then the date should be Mar 1 2012 | ||
Examples: | ||
| input date | year | month | day | hours | minutes | seconds | timezone | | ||
| 2012/03/01 | 2012 | 3 | 1 | 0 | 0 | 0 | default | | ||
|
||
Scenario: Another ISO 8601 date as Calendar | ||
Given the iso calendar is 2013-03-01T06:54:14 | ||
Then the date should be Mar 1 2013 | ||
Scenario Outline: Parsing dates with an ISO format (yyyy-MM-dd'T'HH:mm:ss) | ||
Given the ISO date is <input date> | ||
Then the date should be viewed in <timezone> as <year>, <month>, <day>, <hours>, <minutes>, <seconds> | ||
|
||
Examples: | ||
| input date | timezone | year | month | day | hours | minutes | seconds | | ||
| 2012-03-01T06:54:14 | default | 2012 | 3 | 1 | 6 | 54 | 14 | | ||
|
||
Scenario Outline: Parsing dates with a format including timezone (yyyy-MM-dd'T'HH:mm:ss, z) | ||
Given the ISO date with timezone is <input date> | ||
Then the date should be viewed in <timezone> as <year>, <month>, <day>, <hours>, <minutes>, <seconds> | ||
|
||
Examples: | ||
| input date | timezone | year | month | day | hours | minutes | seconds | | ||
| 2008-12-31T23:59:59, PST | PST | 2008 | 12 | 31 | 23 | 59 | 59 | | ||
| 2008-12-31T23:59:59, PST | UTC | 2009 | 1 | 1 | 7 | 59 | 59 | |