com.fasterxml.jackson.core.Versioned Java Examples

The following examples show how to use com.fasterxml.jackson.core.Versioned. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TestVersions.java    From jackson-modules-base with Apache License 2.0 5 votes vote down vote up
private void assertVersion(Versioned vers)
{
    Version v = vers.version();
    assertFalse("Should find version information (got "+v+")", v.isUnknownVersion());
    Version exp = PackageVersion.VERSION;
    assertEquals(exp.toFullString(), v.toFullString());
    assertEquals(exp, v);
}
 
Example #2
Source File: TestVersions.java    From jackson-modules-base with Apache License 2.0 5 votes vote down vote up
private void assertVersion(Versioned vers)
{
    Version v = vers.version();
    assertFalse("Should find version information (got "+v+")", v.isUnknownVersion());
    Version exp = PackageVersion.VERSION;
    assertEquals(exp.toFullString(), v.toFullString());
    assertEquals(exp, v);
}
 
Example #3
Source File: HadoopShim.java    From pentaho-hadoop-shims with Apache License 2.0 5 votes vote down vote up
@Override
public Class[] getHbaseDependencyClasses() {
  return new Class[] {
    HConstants.class, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.class,
    org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.class, Put.class,
    RpcServer.class, CompatibilityFactory.class, JobUtil.class, TableMapper.class, FastLongHistogram.class,
    Snapshot.class, ZooKeeper.class, Channel.class, Message.class, UnsafeByteOperations.class, Lists.class,
    Tracer.class, MetricRegistry.class, ArrayUtils.class, ObjectMapper.class, Versioned.class,
    JsonView.class, ZKWatcher.class, CacheLoader.class
  };
}
 
Example #4
Source File: HadoopShim.java    From pentaho-hadoop-shims with Apache License 2.0 5 votes vote down vote up
@Override
public Class[] getHbaseDependencyClasses() {
  return new Class[] {
    HConstants.class, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.class,
    org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.class, Put.class,
    RpcServer.class, CompatibilityFactory.class, JobUtil.class, TableMapper.class, FastLongHistogram.class,
    Snapshot.class, ZooKeeper.class, Channel.class, Message.class, UnsafeByteOperations.class, Lists.class,
    Tracer.class, MetricRegistry.class, ArrayUtils.class, ObjectMapper.class, Versioned.class, JsonView.class,
    ZKWatcher.class
  };
}
 
Example #5
Source File: HadoopShim.java    From pentaho-hadoop-shims with Apache License 2.0 5 votes vote down vote up
@Override
public Class[] getHbaseDependencyClasses() {
  return new Class[] {
    HConstants.class, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.class,
    org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.class, Put.class,
    RpcServer.class, CompatibilityFactory.class, JobUtil.class, TableMapper.class, FastLongHistogram.class,
    Snapshot.class, ZooKeeper.class, Channel.class, Message.class, UnsafeByteOperations.class, Lists.class,
    Tracer.class, MetricRegistry.class, ArrayUtils.class, ObjectMapper.class, Versioned.class, JsonView.class,
    ZKWatcher.class
  };
}
 
Example #6
Source File: TestVersions.java    From jackson-datatypes-collections with Apache License 2.0 4 votes vote down vote up
private void assertVersion(Versioned vers)
{
    final Version v = vers.version();
    assertFalse("Should find version information (got "+v+")", v.isUnknownVersion());
    assertEquals(PackageVersion.VERSION, v);
}
 
Example #7
Source File: TestVersions.java    From jackson-modules-base with Apache License 2.0 4 votes vote down vote up
private void assertVersion(Versioned vers)
{
    final Version v = vers.version();
    assertFalse("Should find version information (got "+v+")", v.isUnknownVersion());
    assertEquals(PackageVersion.VERSION, v);
}