Learning something new about JUnit still!

I just discovered the ability to provide a reason for the @Ignore tag.

@Ignore(“Give a short explanation”).

This prints out wonderfully in output:

Test ‘$DayJobTest.shouldDetectProtocol8′ ignored (Depends upon currently unsupported Web Socket protocol.)

Still learning new things about JUnit. Wow.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s