eclipse - Infinitest : No such method when using temporary folder -


i have problem infinitest:

i'm working junit temporary folder :

@rule public temporaryfolder testfolder = new temporaryfolder(); 

then i'm trying in test method create temp sub-folder in temp folder, , work :

@test public void shouldcheckfolders() throws inputdataexception, ioexception {     file subfolder = testfolder.newfolder("subfolder");      // ... test } 

when running test using maven clean install, no problem, have success. when using eclipse : run -> junit test, no problem : green.

but infinitest has error :

nosuchmethoderror (org.junit.rules.temporaryfolder.newfolder(ljava/lang/string;)ljava/io/file;) in letest.shouldcheckfolders     

any idea ? possible work temporary folder , infinitest ?

i'm using spring tool suite, based on eclipse mars 4.5.0 infinitest 5.1 , junit 4.10.


Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -