File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed 
src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 11package  com.fasterxml.jackson.module.kotlin.test.github 
22
33import  com.fasterxml.jackson.annotation.JsonTypeInfo 
4- import  com.fasterxml.jackson.databind.ObjectMapper  
4+ import  com.fasterxml.jackson.module.kotlin.defaultMapper  
55import  com.fasterxml.jackson.module.kotlin.readValue 
6- import  com.fasterxml.jackson.module.kotlin.registerKotlinModule 
76import  org.junit.jupiter.api.Test 
87import  kotlin.test.assertEquals 
98
@@ -22,8 +21,7 @@ class GitHub844 {
2221        } 
2322        """  
2423
25-         val  jacksonObjectMapper =  ObjectMapper ().registerKotlinModule()
26-         val  message =  jacksonObjectMapper.readValue<BaseClass >(json)
24+         val  message =  defaultMapper.readValue<BaseClass >(json)
2725
2826        assertEquals(ChildClass (" Test" 
2927    }
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments