@Test public void testString() { runTests("", "Lorem Ipsum Dolor Omit Longer", "aaaa", "abcd", "abce", "abdd", "accd", "bbcd"); }
@Test public void testBeanStyleObjects() { { Book b111 = new Book(-1L, "A Low level interfaces", 0xC); Book b122 = new Book(-1L, "Low level interfaces", 0xC); Book b123 = new Book(-1L, "Low level interfaces", 0xC0FFEE); Book b2 = new Book(0L, "Debugging byte streams", 1337); Book b3 = new Book(976243875L, "The Serialization Odysse", 42); runTests(b111, b122, b123, b2, b3); } { BookAuthor b1 = new BookAuthor(976243875L, new ArrayList<String>(), "Arno Nym"); ArrayList<String> list = new ArrayList<String>(); list.add("A"); list.add("B"); list.add("C"); list.add("D"); list.add("E"); BookAuthor b2 = new BookAuthor(976243875L, list, "The Saurus"); runTests(b1, b2); } }
@Test public void testCompositeObject() { ComplexNestedObject1 o1 = new ComplexNestedObject1(-1100); ComplexNestedObject1 o2 = new ComplexNestedObject1(0); ComplexNestedObject1 o3 = new ComplexNestedObject1(44); ComplexNestedObject1 o4 = new ComplexNestedObject1(76923, "A"); ComplexNestedObject1 o5 = new ComplexNestedObject1(5626435, "A somewhat random collection"); runTests(o1, o2, o3, o4, o5); }
@Test public void testSimpleTypesObjects() { runTests( new SimpleTypes(0, 1, (byte) 2, "", (short) 3, 4.0), new SimpleTypes(1, 1, (byte) 2, "", (short) 3, 4.0), new SimpleTypes(1, 2, (byte) 2, "", (short) 3, 4.0), new SimpleTypes(1, 2, (byte) 3, "", (short) 3, 4.0), new SimpleTypes(1, 2, (byte) 3, "a", (short) 3, 4.0), new SimpleTypes(1, 2, (byte) 3, "b", (short) 3, 4.0), new SimpleTypes(1, 2, (byte) 3, "b", (short) 4, 4.0), new SimpleTypes(1, 2, (byte) 3, "b", (short) 4, 6.0) ); }