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
Post a Comment