Java Code Examples for java.time.temporal.TemporalAccessor#range()
The following examples show how to use
java.time.temporal.TemporalAccessor#range() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractDateTimeTest.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Test() public void basicTest_range_TemporalField_unsupported() { for (TemporalAccessor sample : samples()) { for (TemporalField field : invalidFields()) { try { sample.range(field); fail("Failed on " + sample + " " + field); } catch (DateTimeException ex) { // expected } } } }
Example 2
Source File: AbstractDateTimeTest.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
@Test() public void basicTest_range_TemporalField_unsupported() { for (TemporalAccessor sample : samples()) { for (TemporalField field : invalidFields()) { try { sample.range(field); fail("Failed on " + sample + " " + field); } catch (DateTimeException ex) { // expected } } } }
Example 3
Source File: AbstractDateTimeTest.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
@Test() public void basicTest_range_TemporalField_supported() { for (TemporalAccessor sample : samples()) { for (TemporalField field : validFields()) { sample.range(field); // no exception } } }
Example 4
Source File: AbstractDateTimeTest.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Test() public void basicTest_range_TemporalField_null() { for (TemporalAccessor sample : samples()) { try { sample.range(null); fail("Failed on " + sample); } catch (NullPointerException ex) { // expected } } }
Example 5
Source File: AbstractDateTimeTest.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Test() public void basicTest_range_TemporalField_unsupported() { for (TemporalAccessor sample : samples()) { for (TemporalField field : invalidFields()) { try { sample.range(field); fail("Failed on " + sample + " " + field); } catch (DateTimeException ex) { // expected } } } }
Example 6
Source File: AbstractDateTimeTest.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Test() public void basicTest_range_TemporalField_supported() { for (TemporalAccessor sample : samples()) { for (TemporalField field : validFields()) { sample.range(field); // no exception } } }
Example 7
Source File: AbstractDateTimeTest.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Test() public void basicTest_range_TemporalField_null() { for (TemporalAccessor sample : samples()) { try { sample.range(null); fail("Failed on " + sample); } catch (NullPointerException ex) { // expected } } }
Example 8
Source File: AbstractDateTimeTest.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Test() public void basicTest_range_TemporalField_unsupported() { for (TemporalAccessor sample : samples()) { for (TemporalField field : invalidFields()) { try { sample.range(field); fail("Failed on " + sample + " " + field); } catch (DateTimeException ex) { // expected } } } }
Example 9
Source File: AbstractDateTimeTest.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Test() public void basicTest_range_TemporalField_supported() { for (TemporalAccessor sample : samples()) { for (TemporalField field : validFields()) { sample.range(field); // no exception } } }
Example 10
Source File: AbstractDateTimeTest.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Test() public void basicTest_range_TemporalField_null() { for (TemporalAccessor sample : samples()) { try { sample.range(null); fail("Failed on " + sample); } catch (NullPointerException ex) { // expected } } }
Example 11
Source File: AbstractDateTimeTest.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
@Test() public void basicTest_range_TemporalField_supported() { for (TemporalAccessor sample : samples()) { for (TemporalField field : validFields()) { sample.range(field); // no exception } } }
Example 12
Source File: AbstractDateTimeTest.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Test() public void basicTest_range_TemporalField_supported() { for (TemporalAccessor sample : samples()) { for (TemporalField field : validFields()) { sample.range(field); // no exception } } }
Example 13
Source File: AbstractDateTimeTest.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Test() public void basicTest_range_TemporalField_null() { for (TemporalAccessor sample : samples()) { try { sample.range(null); fail("Failed on " + sample); } catch (NullPointerException ex) { // expected } } }
Example 14
Source File: AbstractDateTimeTest.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Test() public void basicTest_range_TemporalField_unsupported() { for (TemporalAccessor sample : samples()) { for (TemporalField field : invalidFields()) { try { sample.range(field); fail("Failed on " + sample + " " + field); } catch (DateTimeException ex) { // expected } } } }
Example 15
Source File: AbstractDateTimeTest.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Test() public void basicTest_range_TemporalField_supported() { for (TemporalAccessor sample : samples()) { for (TemporalField field : validFields()) { sample.range(field); // no exception } } }
Example 16
Source File: AbstractDateTimeTest.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Test() public void basicTest_range_TemporalField_null() { for (TemporalAccessor sample : samples()) { try { sample.range(null); fail("Failed on " + sample); } catch (NullPointerException ex) { // expected } } }
Example 17
Source File: AbstractDateTimeTest.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Test() public void basicTest_range_TemporalField_unsupported() { for (TemporalAccessor sample : samples()) { for (TemporalField field : invalidFields()) { try { sample.range(field); fail("Failed on " + sample + " " + field); } catch (DateTimeException ex) { // expected } } } }
Example 18
Source File: AbstractDateTimeTest.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Test() public void basicTest_range_TemporalField_supported() { for (TemporalAccessor sample : samples()) { for (TemporalField field : validFields()) { sample.range(field); // no exception } } }
Example 19
Source File: AbstractDateTimeTest.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
@Test() public void basicTest_range_TemporalField_null() { for (TemporalAccessor sample : samples()) { try { sample.range(null); fail("Failed on " + sample); } catch (NullPointerException ex) { // expected } } }
Example 20
Source File: AbstractDateTimeTest.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
@Test() public void basicTest_range_TemporalField_unsupported() { for (TemporalAccessor sample : samples()) { for (TemporalField field : invalidFields()) { try { sample.range(field); fail("Failed on " + sample + " " + field); } catch (DateTimeException ex) { // expected } } } }