kamleshcropin / uimafit

Automatically exported from code.google.com/p/uimafit
0 stars 0 forks source link

consider removing TearDownUtil #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Philip:
JUnit 4.7 introduces a @Rule annotation and a rule called TemporaryFolder
which should replace the functionality we put in TearDownUtil.  

http://weblogs.java.net/blog/johnsmart/archive/2009/09/29/working-temporary-file
s-junit-47

I'm not sure if anyone is using the emptyDirectory method.  There are no
uses of it in ClearTK or uutuc.  

Richard:
I've seen this annotation recently in Terrier. However, the Eclipse JUnit
runner does not seem to respect this 
annotation yet :(

Original issue reported on code.google.com by pvogren@gmail.com on 1 May 2010 at 3:06

GoogleCodeExporter commented 8 years ago

Original comment by pvogren@gmail.com on 1 May 2010 at 5:39

GoogleCodeExporter commented 8 years ago
I updated JUnit to version 4.8.1 and introduced the use of the @Rule 
TemporaryFolder in the one place TearDownUtil was being used in XWriterTest.  
It works fine both in maven and within eclipse.  So, I'm not sure why Richard 
says it doesn't respect the annotation.  

Original comment by pvogren@gmail.com on 11 Jun 2010 at 8:16

GoogleCodeExporter commented 8 years ago
I have later tried the annotation again and it also worked fine for me then. No 
idea what caused the glitch that I experienced initially. 

Original comment by richard.eckart on 11 Jun 2010 at 8:18