Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 2 additions & 25 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,84 +5,61 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.nesscomputing</groupId>
<artifactId>ness-oss-parent</artifactId>
<version>32</version>
<artifactId>ness-root</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<scm>
<connection>scm:git:git://github.com/NessComputing/components-ness-jackson.git</connection>
<developerConnection>scm:git:git@github.com:NessComputing/components-ness-jackson.git</developerConnection>
<url>http://github.com/NessComputing/components-ness-jackson</url>
<tag>HEAD</tag>
</scm>

<groupId>com.nesscomputing.components</groupId>
<artifactId>ness-jackson</artifactId>
<name>ness-jackson</name>
<version>2.3.4-SNAPSHOT</version>
<packaging>jar</packaging>
<description>Jackson related code</description>

<properties>
<dep.jackson.version>2.2.3</dep.jackson.version>
</properties>

<dependencies>
<dependency>
<groupId>com.nesscomputing.components</groupId>
<artifactId>ness-core</artifactId>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>com.nesscomputing.components</groupId>
<artifactId>ness-logging</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>com.nesscomputing.components</groupId>
<artifactId>ness-config</artifactId>
<version>2.3.1</version>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${dep.jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${dep.jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${dep.jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-smile</artifactId>
<version>${dep.jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-joda</artifactId>
<version>${dep.jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-mrbean</artifactId>
<version>${dep.jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-afterburner</artifactId>
<version>${dep.jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-guava</artifactId>
<version>${dep.jackson.version}</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.google.common.base.Preconditions;
import com.google.inject.Inject;
import com.google.inject.Provider;

import com.nesscomputing.logging.Log;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class NessObjectMapperProvider implements Provider<ObjectMapper>
{
this.jsonFactory = jsonFactory;

// This needs to be set, otherwise the mapper will fail on every new property showing up.
// This needs to be set, otherwise the mapper will fail on every new property showing up.
featureMap.put(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);

// Don't write out nulls by default -- if you really want them, you can change it with setOptions later.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
import com.google.inject.Scopes;
import com.google.inject.util.Types;

import com.nesscomputing.callback.Callback;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

import com.nesscomputing.callback.Callback;

class SerializerBinderBuilderImpl<T> implements SerializerBinderBuilder<T> {
private static final TypeReference<byte[]> BYTEA_TYPE = new TypeReference<byte[]>() {};
private static final TypeReference<String> STRING_TYPE = new TypeReference<String>() {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
import com.google.inject.Stage;
import com.google.inject.name.Names;

import com.nesscomputing.config.ConfigModule;

import org.junit.Assert;
import org.junit.Test;

import com.nesscomputing.config.ConfigModule;

public class TestJacksonFormatObjectMapperProvider
{
@Inject @JsonMapper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
import com.google.inject.Guice;
import com.google.inject.Inject;

import com.nesscomputing.config.ConfigModule;

import org.junit.Before;
import org.junit.Test;

import com.nesscomputing.config.ConfigModule;

public class TestMapEntryDeserialization
{
@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
import com.google.inject.Injector;
import com.google.inject.Stage;

import com.nesscomputing.config.ConfigModule;

import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;

import com.nesscomputing.config.ConfigModule;

public class TestNessJacksonModule
{
@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package com.nesscomputing.jackson;

import java.io.IOException;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.JsonGenerator;
Expand All @@ -41,11 +42,11 @@
import com.google.inject.Stage;
import com.google.inject.util.Modules;

import com.nesscomputing.config.ConfigModule;

import org.junit.Assert;
import org.junit.Test;

import com.nesscomputing.config.ConfigModule;

public class TestNessObjectMapperProvider
{
private ObjectMapper getObjectMapper(final Module module)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
import com.google.inject.Guice;
import com.google.inject.Inject;

import org.junit.Test;

import com.nesscomputing.config.Config;
import com.nesscomputing.config.ConfigModule;

import org.junit.Test;

public class TestSerializerBinderBuilder {

@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
import com.google.inject.TypeLiteral;
import com.google.inject.util.Modules;

import org.junit.Assert;
import org.junit.Test;

import com.nesscomputing.config.ConfigModule;
import com.nesscomputing.jackson.NessJacksonModule;

import org.junit.Assert;
import org.junit.Test;

public class TestCustomUuidModule
{
// This test ensures that the CustomUuidModule is correctly installed
Expand Down