Java Code Examples for java.time.format.DecimalStyle#STANDARD
The following examples show how to use
java.time.format.DecimalStyle#STANDARD .
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: TCKDecimalStyle.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@Test public void test_STANDARD() { DecimalStyle loc1 = DecimalStyle.STANDARD; assertEquals(loc1.getZeroDigit(), '0'); assertEquals(loc1.getPositiveSign(), '+'); assertEquals(loc1.getNegativeSign(), '-'); assertEquals(loc1.getDecimalSeparator(), '.'); }
Example 2
Source File: AbstractTestPrinterParser.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@BeforeMethod public void setUp() { buf = new StringBuilder(); builder = new DateTimeFormatterBuilder(); dta = ZonedDateTime.of(LocalDateTime.of(2011, 6, 30, 12, 30, 40, 0), ZoneId.of("Europe/Paris")); locale = Locale.ENGLISH; decimalStyle = DecimalStyle.STANDARD; }
Example 3
Source File: AbstractTestPrinterParser.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@BeforeMethod public void setUp() { buf = new StringBuilder(); builder = new DateTimeFormatterBuilder(); dta = ZonedDateTime.of(LocalDateTime.of(2011, 6, 30, 12, 30, 40, 0), ZoneId.of("Europe/Paris")); locale = Locale.ENGLISH; decimalStyle = DecimalStyle.STANDARD; }
Example 4
Source File: TCKDecimalStyle.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Test public void test_equalsHashCode1() { DecimalStyle a = DecimalStyle.STANDARD; DecimalStyle b = DecimalStyle.STANDARD; assertEquals(a.equals(b), true); assertEquals(b.equals(a), true); assertEquals(a.hashCode(), b.hashCode()); }
Example 5
Source File: TCKDecimalStyle.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@Test public void test_equalsHashCode1() { DecimalStyle a = DecimalStyle.STANDARD; DecimalStyle b = DecimalStyle.STANDARD; assertEquals(a.equals(b), true); assertEquals(b.equals(a), true); assertEquals(a.hashCode(), b.hashCode()); }
Example 6
Source File: AbstractTestPrinterParser.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@BeforeMethod public void setUp() { buf = new StringBuilder(); builder = new DateTimeFormatterBuilder(); dta = ZonedDateTime.of(LocalDateTime.of(2011, 6, 30, 12, 30, 40, 0), ZoneId.of("Europe/Paris")); locale = Locale.ENGLISH; decimalStyle = DecimalStyle.STANDARD; }
Example 7
Source File: TCKDecimalStyle.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
@Test public void test_equalsHashCode_bad() { DecimalStyle a = DecimalStyle.STANDARD; assertEquals(a.equals(""), false); assertEquals(a.equals(null), false); }
Example 8
Source File: TCKDecimalStyle.java From j2objc with Apache License 2.0 | 4 votes |
@Test public void test_zeroDigit() { DecimalStyle base = DecimalStyle.STANDARD; assertEquals(base.withZeroDigit('A').getZeroDigit(), 'A'); }
Example 9
Source File: TCKDecimalStyle.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@Test public void test_toString_base() { DecimalStyle base = DecimalStyle.STANDARD; assertEquals(base.toString(), "DecimalStyle[0+-.]"); }
Example 10
Source File: TCKDecimalStyle.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Test public void test_positiveSign() { DecimalStyle base = DecimalStyle.STANDARD; assertEquals(base.withPositiveSign('A').getPositiveSign(), 'A'); }
Example 11
Source File: TCKDecimalStyle.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@Test public void test_decimalSeparator() { DecimalStyle base = DecimalStyle.STANDARD; assertEquals(base.withDecimalSeparator('A').getDecimalSeparator(), 'A'); }
Example 12
Source File: TCKDecimalStyle.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
@Test public void test_equalsHashCode_bad() { DecimalStyle a = DecimalStyle.STANDARD; assertEquals(a.equals(""), false); assertEquals(a.equals(null), false); }
Example 13
Source File: TCKDecimalStyle.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
@Test public void test_decimalSeparator() { DecimalStyle base = DecimalStyle.STANDARD; assertEquals(base.withDecimalSeparator('A').getDecimalSeparator(), 'A'); }
Example 14
Source File: TCKDecimalStyle.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
@Test public void test_decimalSeparator() { DecimalStyle base = DecimalStyle.STANDARD; assertEquals(base.withDecimalSeparator('A').getDecimalSeparator(), 'A'); }
Example 15
Source File: TCKDecimalStyle.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
@Test public void test_toString_base() { DecimalStyle base = DecimalStyle.STANDARD; assertEquals(base.toString(), "DecimalStyle[0+-.]"); }
Example 16
Source File: TCKDecimalStyle.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Test public void test_toString_base() { DecimalStyle base = DecimalStyle.STANDARD; assertEquals(base.toString(), "DecimalStyle[0+-.]"); }
Example 17
Source File: TCKDecimalStyle.java From hottub with GNU General Public License v2.0 | 4 votes |
@Test public void test_equalsHashCode_bad() { DecimalStyle a = DecimalStyle.STANDARD; assertEquals(a.equals(""), false); assertEquals(a.equals(null), false); }
Example 18
Source File: TCKDecimalStyle.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
@Test public void test_decimalSeparator() { DecimalStyle base = DecimalStyle.STANDARD; assertEquals(base.withDecimalSeparator('A').getDecimalSeparator(), 'A'); }
Example 19
Source File: TCKDecimalStyle.java From j2objc with Apache License 2.0 | 4 votes |
@Test public void test_equalsHashCode_bad() { DecimalStyle a = DecimalStyle.STANDARD; assertEquals(a.equals(""), false); assertEquals(a.equals(null), false); }
Example 20
Source File: TCKDecimalStyle.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
@Test public void test_decimalSeparator() { DecimalStyle base = DecimalStyle.STANDARD; assertEquals(base.withDecimalSeparator('A').getDecimalSeparator(), 'A'); }