@Test public void Save_Empty() { Product expected = new Product(); ObjectVersion<Void> version = versionManager.versionBuilder(expected).build(); assertThat(version.changeset.size(), equalTo(1)); defaultMergeNoConflicts(expected); }
public ManagedObjectVersionBuilder<M> versionBuilder(O object) { ManagedObjectVersionBuilder<M> builder = new ManagedObjectVersionBuilder<M>(this, serializer.toPropertyMap(object)); builder.parents(heads); return builder; }
ObjectVersionManager { public ManagedObjectVersionBuilder<M> versionBuilder(O object) { ManagedObjectVersionBuilder<M> builder = new ManagedObjectVersionBuilder<M>(this, serializer.toPropertyMap(object)); builder.parents(heads); return builder; } }
ObjectVersionManager { public ManagedObjectVersionBuilder<M> versionBuilder(O object) { ManagedObjectVersionBuilder<M> builder = new ManagedObjectVersionBuilder<M>(this, serializer.toPropertyMap(object)); builder.parents(heads); return builder; } ObjectVersionManager(Class<O> clazz);  ObjectVersionManager(ObjectSerializer<O> serializer, boolean useSchemaFilter); }
ObjectVersionManager { public ManagedObjectVersionBuilder<M> versionBuilder(O object) { ManagedObjectVersionBuilder<M> builder = new ManagedObjectVersionBuilder<M>(this, serializer.toPropertyMap(object)); builder.parents(heads); return builder; } ObjectVersionManager(Class<O> clazz);  ObjectVersionManager(ObjectSerializer<O> serializer, boolean useSchemaFilter); ObjectVersionManager<O, M> init(); ObjectVersionManager<O, M> init(Iterable<ObjectVersion<M>> versions); ObjectVersionManager<O, M> init(VersionGraph<PropertyPath, Object, M> versionGraph); ManagedObjectVersionBuilder<M> versionBuilder(O object); MergeObject<O, M> mergeBranches(String... branches); MergeObject<O, M> mergeBranches(Collection<String> branches); MergeObject<O, M> mergeRevisions(Collection<Revision> revisions); VersionNode<PropertyPath, Object, M> commit(Version<PropertyPath, Object, M> version); VersionGraph<PropertyPath, Object, M> getVersionGraph(); Set<Revision> getHeads(); VersionNode<PropertyPath, Object, M> getVersionNode(Revision revision); Set<String> getBranches(); Schema<ValueType> getSchema(); boolean isEmpty(); }
ObjectVersionManager { public ManagedObjectVersionBuilder<M> versionBuilder(O object) { ManagedObjectVersionBuilder<M> builder = new ManagedObjectVersionBuilder<M>(this, serializer.toPropertyMap(object)); builder.parents(heads); return builder; } ObjectVersionManager(Class<O> clazz);  ObjectVersionManager(ObjectSerializer<O> serializer, boolean useSchemaFilter); ObjectVersionManager<O, M> init(); ObjectVersionManager<O, M> init(Iterable<ObjectVersion<M>> versions); ObjectVersionManager<O, M> init(VersionGraph<PropertyPath, Object, M> versionGraph); ManagedObjectVersionBuilder<M> versionBuilder(O object); MergeObject<O, M> mergeBranches(String... branches); MergeObject<O, M> mergeBranches(Collection<String> branches); MergeObject<O, M> mergeRevisions(Collection<Revision> revisions); VersionNode<PropertyPath, Object, M> commit(Version<PropertyPath, Object, M> version); VersionGraph<PropertyPath, Object, M> getVersionGraph(); Set<Revision> getHeads(); VersionNode<PropertyPath, Object, M> getVersionNode(Revision revision); Set<String> getBranches(); Schema<ValueType> getSchema(); boolean isEmpty();  }