Hi Reto


On Thu, Aug 29, 2013 at 3:22 PM, Reto Bachmann-Gmür <r...@wymiwyg.com> wrote:
> Hi Rupert
>
> Right diagnosis. mvn test succeds the first run and fails on every further
> one.
>
> What do you thin, you deleting the contents of target/test-files in the
> @BeforeClass method be the right approach to prevent this?
>

Exactly. That is what I need to do. I will have a look

best
Rupert

> Cheers,
> Reto
>
>
> On Thu, Aug 29, 2013 at 11:30 AM, Rupert Westenthaler <
> rupert.westentha...@gmail.com> wrote:
>
>> Hi Reto,
>>
>> Do you run maven including clean or only install (or test)?
>>
>> > Any idea what is causing the failure? Also I don't really understand what
>> > the failing assertion aims to test:
>> > assertTrue(dataProvider.needsInitialisation())
>>
>> This might be related to old test data not be cleared and therefore
>> `dataProvider.needsInitialisation ` returning false (as the data are
>> already imported to the Jena TDB.
>>
>> best
>> Rupert
>>
>>
>> On Thu, Aug 29, 2013 at 8:29 AM, Reto Bachmann-Gmür <r...@apache.org>
>> wrote:
>> > Hi
>> >
>> > I'm having a test failure in entityhub.indexing.source.jenatdb.
>> > Interestinginly I have the failure only on my linux machine on which I
>> > tried different maven versions (3.0.3 and 3.1) and different java
>> versions
>> > (1.7.0_09 and 1.7.0_25) but not on my windows computer.
>> >
>> > Failed tests:
>> >
>> testEntityDataIterable(org.apache.stanbol.entityhub.indexing.source.jenatdb.RdfIndexingSourceTest)
>> >
>> >
>> testEntityDataProvider(org.apache.stanbol.entityhub.indexing.source.jenatdb.RdfIndexingSourceTest)
>> >
>> >
>> testQuadsImport(org.apache.stanbol.entityhub.indexing.source.jenatdb.RdfIndexingSourceTest)
>> >
>> >
>> testBNodeSupport(org.apache.stanbol.entityhub.indexing.source.jenatdb.RdfIndexingSourceTest)
>> >
>> >
>> > Any idea what is causing the failure? Also I don't really understand what
>> > the failing assertion aims to test:
>> > assertTrue(dataProvider.needsInitialisation())
>> >
>> > Here's the report with one exception, analogous exceptions on line
>> 160,193
>> > and 220 of the test
>> >
>> >
>> -------------------------------------------------------------------------------
>> > Test set:
>> >
>> org.apache.stanbol.entityhub.indexing.source.jenatdb.RdfIndexingSourceTest
>> >
>> -------------------------------------------------------------------------------
>> > Tests run: 4, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 0.705 sec
>> > <<< FAILURE!
>> >
>> testEntityDataIterable(org.apache.stanbol.entityhub.indexing.source.jenatdb.RdfIndexingSourceTest)
>> > Time elapsed: 0.508 sec  <<< FAILURE!
>> > java.lang.AssertionError
>> >     at org.junit.Assert.fail(Assert.java:86)
>> >     at org.junit.Assert.assertTrue(Assert.java:41)
>> >     at org.junit.Assert.assertTrue(Assert.java:52)
>> >     at
>> >
>> org.apache.stanbol.entityhub.indexing.source.jenatdb.RdfIndexingSourceTest.testEntityDataIterable(RdfIndexingSourceTest.java:129)
>> >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >     at
>> >
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> >     at
>> >
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> >     at java.lang.reflect.Method.invoke(Method.java:606)
>> >     at
>> >
>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
>> >     at
>> >
>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>> >     at
>> >
>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
>> >     at
>> >
>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>> >     at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
>> >     at
>> >
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
>> >     at
>> >
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
>> >     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
>> >     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
>> >     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
>> >     at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
>> >     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
>> >     at
>> >
>> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>> >     at
>> >
>> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
>> >     at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
>> >     at
>> >
>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:234)
>> >     at
>> >
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:133)
>> >     at
>> >
>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:114)
>> >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >     at
>> >
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> >     at
>> >
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> >     at java.lang.reflect.Method.invoke(Method.java:606)
>> >     at
>> >
>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:188)
>> >     at
>> >
>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:166)
>> >     at
>> >
>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:86)
>> >     at
>> >
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:101)
>> >     at
>> > org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
>> >
>> >
>> > Cheers,
>> > Reto
>>
>>
>>
>> --
>> | Rupert Westenthaler             rupert.westentha...@gmail.com
>> | Bodenlehenstraße 11                             ++43-699-11108907
>> | A-5500 Bischofshofen
>>



-- 
| Rupert Westenthaler             rupert.westentha...@gmail.com
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen

Reply via email to