Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
repro:
package org.javers.core.cases import org.javers.core.JaversBuilder import org.javers.core.metamodel.annotation.Id import org.javers.repository.jql.QueryBuilder import spock.lang.Specification class Employee { @Id int id Person person } class Person { @Id String name Employee employee } /** * @author bartosz.walacik */ class OrganizationStructureLoopCase extends Specification{ def "should manage Employee to Person cycle"(){ given: def person = new Person(name:"kaz") def emp = new Employee(id:1, person:person) person.employee = emp when: def javers = JaversBuilder.javers().build() javers.commit("a",emp) def snapshots = javers.findSnapshots(QueryBuilder.byInstanceId("kaz", Employee).build()) then: snapshots.size() == 1 } }
The text was updated successfully, but these errors were encountered:
#341 failing tests
0d93f1f
No branches or pull requests
repro:
The text was updated successfully, but these errors were encountered: