Examples of computeValueSha1()


Examples of com.moesol.geoserver.sync.core.FeatureSha1.computeValueSha1()

  }

  public void testSha1One() throws ParseException {
    Feature feature = m_samples.buildSimpleFeature("fid1");
    FeatureSha1 sync = new FeatureSha1();
    Sha1Value sha1 = sync.computeValueSha1(feature);
    assertEquals("56e82e2d2452830bbdb9bc1ce353a2e159996308", sha1.toString());
   
    sync.parseAttributesToInclude("-all");
    sha1 = sync.computeValueSha1(feature);
    assertEquals("db90c50160c32f3517b7d3b1c78be70a7f2ba992", sha1.toString());
View Full Code Here

Examples of com.moesol.geoserver.sync.core.FeatureSha1.computeValueSha1()

    FeatureSha1 sync = new FeatureSha1();
    Sha1Value sha1 = sync.computeValueSha1(feature);
    assertEquals("56e82e2d2452830bbdb9bc1ce353a2e159996308", sha1.toString());
   
    sync.parseAttributesToInclude("-all");
    sha1 = sync.computeValueSha1(feature);
    assertEquals("db90c50160c32f3517b7d3b1c78be70a7f2ba992", sha1.toString());
   
    sync.parseAttributesToInclude("name");
    sha1 = sync.computeValueSha1(feature);
    assertEquals("d4dc2740d2d92547f941bfaf677e11c9b99605ee", sha1.toString());
View Full Code Here

Examples of com.moesol.geoserver.sync.core.FeatureSha1.computeValueSha1()

    sync.parseAttributesToInclude("-all");
    sha1 = sync.computeValueSha1(feature);
    assertEquals("db90c50160c32f3517b7d3b1c78be70a7f2ba992", sha1.toString());
   
    sync.parseAttributesToInclude("name");
    sha1 = sync.computeValueSha1(feature);
    assertEquals("d4dc2740d2d92547f941bfaf677e11c9b99605ee", sha1.toString());

    sync.parseAttributesToInclude("name,classification");
    sha1 = sync.computeValueSha1(feature);
    assertEquals("c905e1c6c7eb6bad1eedae0509b7da286dbd7b48", sha1.toString());
View Full Code Here

Examples of com.moesol.geoserver.sync.core.FeatureSha1.computeValueSha1()

    sync.parseAttributesToInclude("name");
    sha1 = sync.computeValueSha1(feature);
    assertEquals("d4dc2740d2d92547f941bfaf677e11c9b99605ee", sha1.toString());

    sync.parseAttributesToInclude("name,classification");
    sha1 = sync.computeValueSha1(feature);
    assertEquals("c905e1c6c7eb6bad1eedae0509b7da286dbd7b48", sha1.toString());
   

    sync.parseAttributesToInclude("classification,name");
    sha1 = sync.computeValueSha1(feature);
View Full Code Here

Examples of com.moesol.geoserver.sync.core.FeatureSha1.computeValueSha1()

    sha1 = sync.computeValueSha1(feature);
    assertEquals("c905e1c6c7eb6bad1eedae0509b7da286dbd7b48", sha1.toString());
   

    sync.parseAttributesToInclude("classification,name");
    sha1 = sync.computeValueSha1(feature);
    assertEquals("c905e1c6c7eb6bad1eedae0509b7da286dbd7b48", sha1.toString());

    sync.parseAttributesToInclude("name,classification,height");
    sha1 = sync.computeValueSha1(feature);
    assertEquals("db90c50160c32f3517b7d3b1c78be70a7f2ba992", sha1.toString());
View Full Code Here

Examples of com.moesol.geoserver.sync.core.FeatureSha1.computeValueSha1()

    sync.parseAttributesToInclude("classification,name");
    sha1 = sync.computeValueSha1(feature);
    assertEquals("c905e1c6c7eb6bad1eedae0509b7da286dbd7b48", sha1.toString());

    sync.parseAttributesToInclude("name,classification,height");
    sha1 = sync.computeValueSha1(feature);
    assertEquals("db90c50160c32f3517b7d3b1c78be70a7f2ba992", sha1.toString());
  }
 
  public void testValueIdValue() throws ParseException {
    Feature feature = m_samples.buildSimpleFeature("fid1");
View Full Code Here

Examples of com.moesol.geoserver.sync.core.FeatureSha1.computeValueSha1()

  }
 
  public void testValueIdValue() throws ParseException {
    Feature feature = m_samples.buildSimpleFeature("fid1");
    FeatureSha1 sync = new FeatureSha1();
    Sha1Value valueSha1 = sync.computeValueSha1(feature);
    assertEquals("56e82e2d2452830bbdb9bc1ce353a2e159996308", valueSha1.toString());
   
    Sha1Value idSha1 = sync.computeIdSha1(feature);
    assertEquals("56e82e2d2452830bbdb9bc1ce353a2e159996308", idSha1.toString());
View Full Code Here

Examples of com.moesol.geoserver.sync.core.FeatureSha1.computeValueSha1()

    assertEquals("56e82e2d2452830bbdb9bc1ce353a2e159996308", valueSha1.toString());
   
    Sha1Value idSha1 = sync.computeIdSha1(feature);
    assertEquals("56e82e2d2452830bbdb9bc1ce353a2e159996308", idSha1.toString());

    Sha1Value secondValueSha1 = sync.computeValueSha1(feature);
    assertEquals("56e82e2d2452830bbdb9bc1ce353a2e159996308", secondValueSha1.toString());
  }
 
  public void testComplex() throws IOException {
    DataAccess<FeatureType, Feature> dataAccess = DataAccessFinder.getDataStore(SampleDataAccessFactory.PARAMS);
View Full Code Here

Examples of com.moesol.geoserver.sync.core.FeatureSha1.computeValueSha1()

    FeatureCollection<FeatureType, Feature> featureCollection = featureSource.getFeatures();
    FeatureIterator<Feature> iterator = featureCollection.features();
    try {
      Feature feature = iterator.next(); // Just get first feature
      FeatureSha1 sync = new FeatureSha1();
      Sha1Value sha1 = sync.computeValueSha1(feature);
      assertEquals("e88d59d2142c8315878752805e15ddb6521fd9e1", sha1.toString());
    } finally {
      iterator.close();
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.