Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

lol java

Name: Anonymous 2007-10-13 13:50

import static org.junit.Assert.fail;

Name: Anonymous 2007-10-13 13:56

Please stop posting

Name: Anonymous 2007-10-13 15:02

what's that static doing there?

also, assert not being part of javas default libs is nothing to lol about.

Name: Anonymous 2007-10-13 19:21

>>3

what's that static doing there?

It's an import of the static method fail(). A non-static import can only be done on classes, not methods. (Importing a non-static method is meaningless.)

also, assert not being part of javas default libs is nothing to lol about.

assert is actually a language keyword in Java. JUnit just provides some more elaborate assert mechanisms.

Both static imports and the assert keyword have been a part of Java since at least Java 5.

Name: Anonymous 2009-02-25 7:52

The conversion rules that   apply to the   Free Software Foundation   either version 2   of the License   or at your   option any later   version This text   is free software   Distribution Sales of.

Don't change these.
Name: Email:
Entire Thread Thread List