@@ -0,0 +1,1137 @@
+package org.dada.core;%0A%0Aimport java.util.Collection;%0A%0Aimport junit.framework.TestCase;%0A%0Apublic class BatchTestCase extends TestCase %7B%0A%0A%09public void test() %7B%0A%09%09Batch%3CObject%3E batch = new Batch%3CObject%3E();%0A%09%09%0A%09%09Update%3CObject%3E insertion = new Update%3CObject%3E(null, null);%0A%09%09Update%3CObject%3E alteration = new Update%3CObject%3E(null, null);%0A%09%09Update%3CObject%3E deletion = new Update%3CObject%3E(null, null);%0A%09%09%0A%09%09batch.addInsertion(insertion);%0A%09%09batch.addInsertion(insertion);%0A%09%09batch.addAlteration(alteration);%0A%09%09batch.addAlteration(alteration);%0A%09%09batch.addDeletion(deletion);%0A%09%09batch.addDeletion(deletion);%0A%09%09%0A%09%09Collection%3CUpdate%3CObject%3E%3E insertions = batch.getInsertions();%0A%09%09assertTrue(insertions.size() == 2);%0A%09%09for (Update%3CObject%3E update : insertions) assertTrue(update == insertion);%0A%09%09Collection%3CUpdate%3CObject%3E%3E alterations = batch.getAlterations();%0A%09%09assertTrue(alterations.size() == 2);%0A%09%09for (Update%3CObject%3E update : alterations) assertTrue(update == alteration);%0A%09%09Collection%3CUpdate%3CObject%3E%3E deletions = batch.getDeletions();%0A%09%09assertTrue(deletions.size() == 2);%0A%09%09for (Update%3CObject%3E update : deletions) assertTrue(update == deletion);%0A%09%09%0A%09%7D%0A%7D%0A

add missing test case