LEFT | RIGHT |
1 // © 2016 and later: Unicode, Inc. and others. | 1 // © 2016 and later: Unicode, Inc. and others. |
2 // License & terms of use: http://www.unicode.org/copyright.html#License | 2 // License & terms of use: http://www.unicode.org/copyright.html#License |
3 /* | 3 /* |
4 ******************************************************************************* | 4 ******************************************************************************* |
5 * Copyright (C) 2008-2016, International Business Machines Corporation and | 5 * Copyright (C) 2008-2016, International Business Machines Corporation and |
6 * others. All Rights Reserved. | 6 * others. All Rights Reserved. |
7 ******************************************************************************* | 7 ******************************************************************************* |
8 */ | 8 */ |
9 package com.ibm.icu.dev.test.format; | 9 package com.ibm.icu.dev.test.format; |
10 | 10 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 StandardPlural actual = a.get(StandardPlural.ONE, StandardPlural.OTHER); | 120 StandardPlural actual = a.get(StandardPlural.ONE, StandardPlural.OTHER); |
121 assertEquals("range", StandardPlural.ONE, actual); | 121 assertEquals("range", StandardPlural.ONE, actual); |
122 a.freeze(); | 122 a.freeze(); |
123 try { | 123 try { |
124 a.add(StandardPlural.ONE, StandardPlural.ONE, StandardPlural.ONE); | 124 a.add(StandardPlural.ONE, StandardPlural.ONE, StandardPlural.ONE); |
125 errln("Failed to cause exception on frozen instance"); | 125 errln("Failed to cause exception on frozen instance"); |
126 } catch (UnsupportedOperationException e) { | 126 } catch (UnsupportedOperationException e) { |
127 } | 127 } |
128 } | 128 } |
129 } | 129 } |
LEFT | RIGHT |