#402 JUnit setup() method being called on non-JUnit class

release_4.1
closed
5
2012-10-10
2006-01-20
Trekmbikes
No

JUnit setup() method being called on non-JUnit class
I'm using eclipse-cs 4.0.1, Eclipse 3.1.1, JDK
1.5.0_06, Windows XP Pro. I have a method named setup
(int, String) in one of my non-JUnit classes but
eclipse-cs is flagging it as "Junit Test Case: The
method 'setup' should be named 'setUp'."

Discussion

  • Logged In: YES
    user_id=746148

    JUnitTestCase check is very simple: it just check ALL
    setup/teardown/suite methods. You need to configure
    checkstyle so it doen't call this check on non-JUnit classes.