DATACOUCH-11 - Upgrading Jackson to the last stable release
This commit is contained in:
committed by
Oliver Gierke
parent
407adf96df
commit
afab31ff2f
@@ -20,10 +20,10 @@ package org.springframework.data.couchbase.core.convert;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import org.codehaus.jackson.JsonEncoding;
|
||||
import org.codehaus.jackson.JsonFactory;
|
||||
import org.codehaus.jackson.JsonGenerator;
|
||||
import org.codehaus.jackson.map.ObjectMapper;
|
||||
import com.fasterxml.jackson.core.JsonGenerator;
|
||||
import com.fasterxml.jackson.core.JsonFactory;
|
||||
import com.fasterxml.jackson.core.JsonEncoding;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import org.springframework.beans.BeansException;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.ApplicationContextAware;
|
||||
|
||||
@@ -19,8 +19,8 @@ package org.springframework.data.couchbase.core.mapping;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import org.codehaus.jackson.map.ObjectMapper;
|
||||
import org.codehaus.jackson.type.TypeReference;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import org.springframework.data.mapping.model.MappingException;
|
||||
|
||||
/**
|
||||
|
||||
@@ -139,8 +139,8 @@ public class CouchbaseTemplateTest {
|
||||
|
||||
template.save(complex);
|
||||
|
||||
String expected = "{\"info1\":{\"foo\":true,\"bar\":false},\"votes\":[],"
|
||||
+ "\"firstnames\":[\"Michael\",\"Thomas\"],\"info2\":{}}";
|
||||
String expected = "{\"firstnames\":[\"Michael\",\"Thomas\"],\"info2\":{}," +
|
||||
"\"info1\":{\"foo\":true,\"bar\":false},\"votes\":[]}";
|
||||
assertEquals(expected, client.get(id));
|
||||
|
||||
ComplexPerson response = template.findById(id, ComplexPerson.class);
|
||||
|
||||
Reference in New Issue
Block a user