3 ms·
Here's a query for [\w{60,} lang:java] on Google Code Search: http://code.google.com/codesearch#search/&q=%5Cw%7B60,%7D%20lang:java&type=cs http://code.google.
by evmar 14y ago
Here's a query for [\w{60,} lang:java] on Google Code Search:
http://code.google.com/codesearch#search/&q=%5Cw%7B60,%7D%20lang:java&type=cs http://code.google.com/codesearch#search/&q=%5Cw%7B60,%7...
E.g. TraversableResolverSpecifiedInValidationXmlNoDefaultConstructorGwtTest , DeleteContentTypeXmlDocumentResponseDeleteContentTypeXmlDocumentResult , and so on.
- edwinnathaniel 14y agoExclude unit and integration tests, sometimes the naming convention don't matter as long as the tests describe what it does...
- robrenaud 14y agoI know these test names might seem insane. And I personally hate the Java FactoryFactory culture of over-engineering. But, the super long test class names are actually pretty nice. I've personally never gone quite that crazy with the names, but I have definitely used more than 80 characters total for the class and particular function named for a test. These super long names not part of any client interface, no one is ever going to have to type that monstrosity except for the guy writing the test. But when you see the failing test output that prints the test name, you already know what is failing. You can have a small class name and a (comparatively) long comment, or just a long class name. Considering there is now no need for a comment and the test name is actually useful for debugging failed tests easily (you don't need to "dereference" the short test failure name to get the surrounding comment), this style is actually a win.
- smsm42 14y agoSome test tools generate test descriptions from names - so TraversableResolverSpecifiedInValidationXmlNoDefaultConstructorGwtTest looks in test report as "Traversable resolver specified in validation xml no default constructor gwt". Which may actually lead to more readable reports and nobody uses test classes to instantiate them except for automatic tools anyway. So these class names are not as insane as it seems. For non-test classes such name would be completely insane of course - or routine in case of Java :)