Changes BusJacksonMessageConverter to have single constructor.

This allows Spring to managed injection of ObjectMapper in all cases. This avoids early initialization problems if a List<MessageConverter> is injected somewhere.

fixes gh-202
This commit is contained in:
Spencer Gibb
2019-07-31 11:18:25 -04:00
parent 494511c37f
commit 2b97e82fe2
3 changed files with 7 additions and 13 deletions

View File

@@ -25,7 +25,6 @@ import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import com.fasterxml.jackson.databind.SerializationFeature;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -69,7 +68,6 @@ public class BusJacksonIntegrationTests {
@Test
@SuppressWarnings("unchecked")
@Ignore // FIXME: https://github.com/spring-cloud/spring-cloud-bus/issues/202
public void testCustomEventSerializes() {
assertThat(this.converter.isMapperCreated()).isFalse();