< prev index next >

test/jdk/java/util/Calendar/JapaneseLenientEraTest.java

Print this page
rev 54350 : 8205432: Replace the placeholder Japanese era name
Reviewed-by: rriggs

*** 1,7 **** /* ! * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 45,55 **** Object[][] names() { return new Object[][] { // lenient era/year, strict era/year { "Meiji 123", "Heisei 2" }, { "Sh\u014dwa 65", "Heisei 2" }, ! { "Heisei 32", "NewEra 2" }, // NewEra }; } @Test(dataProvider="lenientEra") public void testLenientEra(String lenient, String strict) throws Exception { --- 45,55 ---- Object[][] names() { return new Object[][] { // lenient era/year, strict era/year { "Meiji 123", "Heisei 2" }, { "Sh\u014dwa 65", "Heisei 2" }, ! { "Heisei 32", "Reiwa 2" }, }; } @Test(dataProvider="lenientEra") public void testLenientEra(String lenient, String strict) throws Exception {
< prev index next >