コード例 #1
0
 @Override
 public Region get(final ObjectId objectId, final VersionCorrection versionCorrection) {
   _count.getAndIncrement();
   Region result = null;
   if (_testRegion.getUniqueId().getObjectId().equals(objectId)
       && versionCorrection.equals(VersionCorrection.LATEST)) {
     result = _testRegion;
   }
   return result;
 }
コード例 #2
0
 @Override
 public Collection<Region> get(
     final ExternalIdBundle bundle, final VersionCorrection versionCorrection) {
   _count.getAndIncrement();
   Collection<Region> result = Collections.emptyList();
   if (_testRegion.getExternalIdBundle().equals(bundle)
       && versionCorrection.equals(VersionCorrection.LATEST)) {
     result = Collections.singleton((Region) getTestRegion());
   }
   return result;
 }