KentBeck/junit — pull request #496 by schaarsc (2012-09-01 13:44:48+00:00)
Title: identify Suite even before child is added

currently isTest() / isSuite() is based on children.isEmpty(), this may lead to a situation where a Description is created with createSuiteDescription but cannot be tested as such. only after addChild() will isSuite() return true.

this pull request is using a test based on getMethodName(). if method name is null a suite is assumed.