Skip to content

Commit

Permalink
javers#380 Provide test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
pranasblk committed Jun 10, 2016
1 parent 15c2863 commit ba03924
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package org.javers.core.cases

import org.javers.core.Javers
import org.javers.core.JaversBuilder
import org.javers.core.diff.Diff
import org.javers.core.model.ArrayOfGeneric;
import spock.lang.Specification;

/**
* Test how arrays of generics are handled
*/
public class ArrayOfGenericTest extends Specification {
def "should ... "(){
when:
ArrayOfGeneric<String> o = new ArrayOfGeneric({ -> ""})
Javers javers = JaversBuilder.javers().build()
Diff diff = javers.compare(o, o)
println(diff)

then:
diff.changes.size() == 0
}
}

0 comments on commit ba03924

Please sign in to comment.