2929import static org .junit .jupiter .api .Assertions .assertSame ;
3030import static org .junit .jupiter .api .Assertions .assertThrows ;
3131
32- public final class SpreadsheetFormatterCollectionTest implements SpreadsheetFormatterTesting2 < SpreadsheetFormatterCollection >,
33- HashCodeEqualsDefinedTesting2 <SpreadsheetFormatterCollection > {
32+ public final class SpreadsheetFormatterSharedCollectionTest extends SpreadsheetFormatterSharedTestCase < SpreadsheetFormatterSharedCollection >
33+ implements HashCodeEqualsDefinedTesting2 <SpreadsheetFormatterSharedCollection > {
3434
3535 private final static Integer VALUE1 = 11 ;
3636 private final static Double VALUE2 = 222.5 ;
@@ -43,22 +43,22 @@ public final class SpreadsheetFormatterCollectionTest implements SpreadsheetForm
4343 public void testWithNullFails () {
4444 assertThrows (
4545 NullPointerException .class ,
46- () -> SpreadsheetFormatterCollection .with (null )
46+ () -> SpreadsheetFormatterSharedCollection .with (null )
4747 );
4848 }
4949
5050 @ Test
5151 public void testWithEmptyFails () {
5252 assertThrows (
5353 IllegalArgumentException .class ,
54- () -> SpreadsheetFormatterCollection .with (Lists .empty ())
54+ () -> SpreadsheetFormatterSharedCollection .with (Lists .empty ())
5555 );
5656 }
5757
5858 @ Test
5959 public void testWithOneUnwraps () {
6060 final SpreadsheetFormatter formatter = SpreadsheetFormatters .fake ();
61- assertSame (formatter , SpreadsheetFormatterCollection .with (Lists .of (formatter )));
61+ assertSame (formatter , SpreadsheetFormatterSharedCollection .with (Lists .of (formatter )));
6262 }
6363
6464 // format...........................................................................................................
@@ -82,9 +82,9 @@ public void testFormatNull() {
8282 }
8383
8484 @ Override
85- public SpreadsheetFormatterCollection createFormatter () {
85+ public SpreadsheetFormatterSharedCollection createFormatter () {
8686 return Cast .to (
87- SpreadsheetFormatterCollection .with (
87+ SpreadsheetFormatterSharedCollection .with (
8888 Lists .of (
8989 this .formatter1 (),
9090 this .formatter2 ()
@@ -149,13 +149,13 @@ public void testTokens() {
149149 @ Test
150150 public void testEqualsDifferentFormatters () {
151151 this .checkNotEquals (
152- SpreadsheetFormatterCollection .with (
152+ SpreadsheetFormatterSharedCollection .with (
153153 Lists .of (
154154 this .formatter1 (),
155155 this .formatter2 ()
156156 )
157157 ),
158- SpreadsheetFormatterCollection .with (
158+ SpreadsheetFormatterSharedCollection .with (
159159 Lists .of (
160160 this .formatter1 ()
161161 )
@@ -164,9 +164,9 @@ public void testEqualsDifferentFormatters() {
164164 }
165165
166166 @ Override
167- public SpreadsheetFormatterCollection createObject () {
168- return (SpreadsheetFormatterCollection )
169- SpreadsheetFormatterCollection .with (
167+ public SpreadsheetFormatterSharedCollection createObject () {
168+ return (SpreadsheetFormatterSharedCollection )
169+ SpreadsheetFormatterSharedCollection .with (
170170 Lists .of (
171171 SpreadsheetFormatters .defaultText (),
172172 SpreadsheetFormatters .defaultText ()
@@ -187,8 +187,8 @@ public void testToString() {
187187 // class............................................................................................................
188188
189189 @ Override
190- public Class <SpreadsheetFormatterCollection > type () {
191- return SpreadsheetFormatterCollection .class ;
190+ public Class <SpreadsheetFormatterSharedCollection > type () {
191+ return SpreadsheetFormatterSharedCollection .class ;
192192 }
193193
194194 @ Override
0 commit comments