1 package org.tigris.scarab.util.xmlissues; 2 3 48 49 import java.io.File ; 50 import java.util.List ; 51 52 import org.apache.torque.util.Criteria; 53 54 import org.tigris.scarab.test.BaseScarabTestCase; 55 import org.tigris.scarab.om.ActivityPeer; 58 61 67 public class ImportIssuesTest extends BaseScarabTestCase 68 { 69 private static final File INPUT_FILE = new File ("src/test/org/tigris/scarab/util/xmlissues/test-issues.xml").getAbsoluteFile(); 70 private static final String INPUT_FILENAME = INPUT_FILE.toString(); 71 72 public void testImportIssuesViaXMLFile() 73 throws Exception 74 { 75 76 assertTrue("Make sure input file exists at:" + INPUT_FILE,INPUT_FILE.exists()); 77 78 112 } 113 114 115 125 public void testActivitySetCorruption() 126 throws Exception 127 { 128 Criteria crit = new Criteria(); 129 crit.add(ActivityPeer.TRANSACTION_ID, 1); 130 List activities = ActivityPeer.doSelect(crit); 131 assertTrue("Activites size should be two, it was " + activities.size(), 132 activities.size() == 2); 133 } 134 } 135 136 | Popular Tags |