@@ -288,7 +288,7 @@ else if (k.equals("child_map_age")) {
288288 public void testMessagePackParserDirectly ()
289289 throws IOException
290290 {
291- MessagePackFactory messagePackFactory = new MessagePackFactory ();
291+ MessagePackFormatFactory factory = new MessagePackFormatFactory ();
292292 File tempFile = File .createTempFile ("msgpackTest" , "msgpack" );
293293 tempFile .deleteOnExit ();
294294
@@ -301,7 +301,7 @@ public void testMessagePackParserDirectly()
301301 packer .packFloat (1.0f );
302302 packer .close ();
303303
304- JsonParser parser = messagePackFactory .createParser (tempFile );
304+ JsonParser parser = factory .createParser (tempFile );
305305 assertTrue (parser instanceof MessagePackParser );
306306
307307 JsonToken jsonToken = parser .nextToken ();
@@ -354,7 +354,7 @@ public void testMessagePackParserDirectly()
354354 public void testReadPrimitives ()
355355 throws Exception
356356 {
357- MessagePackFactory messagePackFactory = new MessagePackFactory ();
357+ MessagePackFormatFactory factory = new MessagePackFormatFactory ();
358358 File tempFile = createTempFile ();
359359
360360 FileOutputStream out = new FileOutputStream (tempFile );
@@ -367,7 +367,7 @@ public void testReadPrimitives()
367367 packer .writePayload (bytes );
368368 packer .close ();
369369
370- JsonParser parser = messagePackFactory .createParser (new FileInputStream (tempFile ));
370+ JsonParser parser = factory .createParser (new FileInputStream (tempFile ));
371371 assertEquals (JsonToken .VALUE_STRING , parser .nextToken ());
372372 assertEquals ("foo" , parser .getText ());
373373 assertEquals (JsonToken .VALUE_NUMBER_FLOAT , parser .nextToken ());
@@ -396,7 +396,7 @@ public void testBigDecimal()
396396 packer .packDouble (Double .MIN_NORMAL );
397397 packer .flush ();
398398
399- ObjectMapper mapper = new ObjectMapper (new MessagePackFactory ());
399+ ObjectMapper mapper = new ObjectMapper (new MessagePackFormatFactory ());
400400 mapper .configure (DeserializationFeature .USE_BIG_DECIMAL_FOR_FLOATS , true );
401401 List <Object > objects = mapper .readValue (out .toByteArray (), new TypeReference <List <Object >>() {});
402402 assertEquals (5 , objects .size ());
@@ -431,9 +431,9 @@ public void testEnableFeatureAutoCloseSource()
431431 throws Exception
432432 {
433433 File tempFile = createTestFile ();
434- MessagePackFactory messagePackFactory = new MessagePackFactory ();
434+ MessagePackFormatFactory factory = new MessagePackFormatFactory ();
435435 FileInputStream in = new FileInputStream (tempFile );
436- ObjectMapper objectMapper = new ObjectMapper (messagePackFactory );
436+ ObjectMapper objectMapper = new ObjectMapper (factory );
437437 objectMapper .readValue (in , new TypeReference <List <Integer >>() {});
438438 objectMapper .readValue (in , new TypeReference <List <Integer >>() {});
439439 }
@@ -444,7 +444,7 @@ public void testDisableFeatureAutoCloseSource()
444444 {
445445 File tempFile = createTestFile ();
446446 FileInputStream in = new FileInputStream (tempFile );
447- ObjectMapper objectMapper = new ObjectMapper (new MessagePackFactory ());
447+ ObjectMapper objectMapper = new ObjectMapper (new MessagePackFormatFactory ());
448448 objectMapper .configure (JsonParser .Feature .AUTO_CLOSE_SOURCE , false );
449449 objectMapper .readValue (in , new TypeReference <List <Integer >>() {});
450450 objectMapper .readValue (in , new TypeReference <List <Integer >>() {});
@@ -456,7 +456,7 @@ public void testParseBigDecimal()
456456 {
457457 ArrayList <BigDecimal > list = new ArrayList <BigDecimal >();
458458 list .add (new BigDecimal (Long .MAX_VALUE ));
459- ObjectMapper objectMapper = new ObjectMapper (new MessagePackFactory ());
459+ ObjectMapper objectMapper = new ObjectMapper (new MessagePackFormatFactory ());
460460 byte [] bytes = objectMapper .writeValueAsBytes (list );
461461
462462 ArrayList <BigDecimal > result = objectMapper .readValue (
@@ -481,7 +481,7 @@ public void testReadPrimitiveObjectViaObjectMapper()
481481 packer .close ();
482482
483483 FileInputStream in = new FileInputStream (tempFile );
484- ObjectMapper objectMapper = new ObjectMapper (new MessagePackFactory ());
484+ ObjectMapper objectMapper = new ObjectMapper (new MessagePackFormatFactory ());
485485 objectMapper .configure (JsonParser .Feature .AUTO_CLOSE_SOURCE , false );
486486 assertEquals ("foo" , objectMapper .readValue (in , new TypeReference <String >() {}));
487487 long l = objectMapper .readValue (in , new TypeReference <Long >() {});
@@ -511,7 +511,7 @@ public void testBinaryKey()
511511 packer .packLong (42 );
512512 packer .close ();
513513
514- ObjectMapper mapper = new ObjectMapper (new MessagePackFactory ());
514+ ObjectMapper mapper = new ObjectMapper (new MessagePackFormatFactory ());
515515 Map <String , Object > object = mapper .readValue (new FileInputStream (tempFile ), new TypeReference <Map <String , Object >>() {});
516516 assertEquals (2 , object .size ());
517517 assertEquals (3.14 , object .get ("foo" ));
@@ -533,7 +533,7 @@ public void testBinaryKeyInNestedObject()
533533 packer .packInt (1 );
534534 packer .close ();
535535
536- ObjectMapper mapper = new ObjectMapper (new MessagePackFactory ());
536+ ObjectMapper mapper = new ObjectMapper (new MessagePackFormatFactory ());
537537 List <Object > objects = mapper .readValue (out .toByteArray (), new TypeReference <List <Object >>() {});
538538 assertEquals (2 , objects .size ());
539539 @ SuppressWarnings (value = "unchecked" )
@@ -555,7 +555,7 @@ public void testByteArrayKey()
555555 messagePacker .packBinaryHeader (1 ).writePayload (k1 ).packInt (3 );
556556 messagePacker .close ();
557557
558- ObjectMapper objectMapper = new ObjectMapper (new MessagePackFactory ());
558+ ObjectMapper objectMapper = new ObjectMapper (new MessagePackFormatFactory ());
559559 SimpleModule module = new SimpleModule ();
560560 module .addKeyDeserializer (byte [].class , new KeyDeserializer ()
561561 {
@@ -592,7 +592,7 @@ public void testIntegerKey()
592592 }
593593 messagePacker .close ();
594594
595- ObjectMapper objectMapper = new ObjectMapper (new MessagePackFactory ());
595+ ObjectMapper objectMapper = new ObjectMapper (new MessagePackFormatFactory ());
596596 SimpleModule module = new SimpleModule ();
597597 module .addKeyDeserializer (Integer .class , new KeyDeserializer ()
598598 {
@@ -623,7 +623,7 @@ public void testFloatKey()
623623 }
624624 messagePacker .close ();
625625
626- ObjectMapper objectMapper = new ObjectMapper (new MessagePackFactory ());
626+ ObjectMapper objectMapper = new ObjectMapper (new MessagePackFormatFactory ());
627627 SimpleModule module = new SimpleModule ();
628628 module .addKeyDeserializer (Float .class , new KeyDeserializer ()
629629 {
@@ -653,7 +653,7 @@ public void testBooleanKey()
653653 messagePacker .packBoolean (false ).packInt (3 );
654654 messagePacker .close ();
655655
656- ObjectMapper objectMapper = new ObjectMapper (new MessagePackFactory ());
656+ ObjectMapper objectMapper = new ObjectMapper (new MessagePackFormatFactory ());
657657 SimpleModule module = new SimpleModule ();
658658 module .addKeyDeserializer (Boolean .class , new KeyDeserializer ()
659659 {
0 commit comments