• Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Component/s: dbunit
    • Labels:
    • Environment:
      Windows, Elipse Indigo, MySql, Junit


      I have something like this

          public class Test1 ()
            public void test1...

          public class Test2 ()
            public void test2 ...

      This works when maven runs the Junit tests. My problem is with Eclipse. If I try to debug one of the Junit tests, Eclipse loads both data sets and the data collides. I'm using Java 1.7.0 and Eclipse Indigo. Is this a known bug in Eclipse?

      Here's some more information on the issue. I'm trying to debug Test1. The data set defined in test2.xml has a bunch of tables with various foreign key constraints (I need to keep the constraints). So table2 has a foreign key in table1, so in test2.xml table1 is defined first, then table2. The problem is that when I debug Test1, it tries to delete from table1 first. MySql complains because table2 depends on table1. This seems like two bugs in unitils. First off test1.xml doesn't reference any of the tables in test2.xml, so unitils should not be deleting those tables. If it's going to, it should delete tables in inverse order from their creation.




            • Assignee:
     Steve Johnson
            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created: