Uploaded image for project: 'Unitils'
  1. Unitils
  2. UNI-260

Fix for URI is not hierarchical

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.2
    • Component/s: None
    • Labels:
      None

      Description

      Someone got this exception:
      org.unitils.core.UnitilsException: Error inserting test data from DbUnit dataset for method public void be.smals.cds.portal.myemployeraccount.infrastructure.persistence.financialnote.impl.FinancialNoteSummaryDatabaseReaderImplTest.testSearchAllFinancialNote()
       at org.unitils.dbunit.DbUnitModule.insertDataSet(DbUnitModule.java:190)
       at org.unitils.dbunit.DbUnitModule$DbUnitListener.beforeTestSetUp(DbUnitModule.java:783)
       at org.unitils.core.Unitils$UnitilsTestListener.beforeTestSetUp(Unitils.java:273)
       at org.unitils.UnitilsJUnit4TestClassRunner$TestListenerInvokingMethodRoadie.runBeforesThenTestThenAfters(UnitilsJUnit4TestClassRunner.java:181)
       at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:86)
       at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:49)
       at org.unitils.UnitilsJUnit4TestClassRunner.invokeTestMethod(UnitilsJUnit4TestClassRunner.java:95)
       at be.smals.stve.unitilsmodules.runner.StveJunit4TestClassRunner.invokeTestMethod(StveJunit4TestClassRunner.java:98)
       at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:61)
       at org.unitils.UnitilsJUnit4TestClassRunner.access$000(UnitilsJUnit4TestClassRunner.java:42)
       at org.unitils.UnitilsJUnit4TestClassRunner$1.run(UnitilsJUnit4TestClassRunner.java:60)
       at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:33)
       at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:45)
       at org.unitils.UnitilsJUnit4TestClassRunner.run(UnitilsJUnit4TestClassRunner.java:67)
       at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
       at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
       Caused by: java.lang.IllegalArgumentException: URI is not hierarchical
       at java.io.File.<init>(File.java:363)
       at org.unitils.dbunit.datasetfactory.impl.DefaultDataSetResolver.resolve(DefaultDataSetResolver.java:88)
       at org.unitils.dbunit.DbUnitModule.handleDataSetResource(DbUnitModule.java:518)
       at org.unitils.dbunit.DbUnitModule.getDataSet(DbUnitModule.java:504)
       at org.unitils.dbunit.DbUnitModule.getDataSet(DbUnitModule.java:456)
       at org.unitils.dbunit.DbUnitModule.insertDataSet(DbUnitModule.java:266)
       at org.unitils.dbunit.DbUnitModule.insertDataSet(DbUnitModule.java:187)
       ... 19 more

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              WillemijnW Willemijn Wouters
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: