Junit import using * wildcard

Posted by Xenorose on Stack Overflow See other posts from Stack Overflow or by Xenorose
Published on 2009-11-26T21:18:33Z Indexed on 2010/03/22 17:51 UTC
Read the original article Hit count: 333

Filed under:
|
|

I've noticed that when importing JUnit, the * wildcard doesn't always work.
e.g. for the annotation @Test you must import org.junit.Test since org.junit.* doesn't recognize the annotation.

Is there a reason for this, is it something that needs setting? or just a quirk in the way somethings like JUnit are.

FYI, I am using: Junit 4.6, Intelli-J 8.1.3.

© Stack Overflow or respective owner

Related posts about java

Related posts about junit