java - Upgrade to JUnit 4 in Eclipse -


i tried switching junit 4 in eclipse using instructions in answer: https://stackoverflow.com/a/25770299.

it says remove junit 3 library in build path (i removed junit 3.7 jar) , add junit 4 library, did.

however, when run following code in test class:

import junit.runner.version; system.out.println("junit version is: " + version.id()); 

i get:

junit version is: 3.8.1 

i don't have other junit libraries in buildpath.

if it's relevant, exact eclipse version "indigo service release 1, build id: 20110916-0149".

how can fix , run junit 4?

check manifest file see if there dependencies left junit 3.x perform search junit in project , see files hold link 3.x

try clean/build project in end


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -