• Post Reply Bookmark Topic Watch Topic
  • New Topic

JUnit Classes quesition?  RSS feed

 
mahmoud allam
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,I'm new to JUnit Framework and I would like to ask few questions:
why TestCase and TestSuite need to implement the same interface Test?
why TestCase and BaseTestRunner need to implement the same interface TestResult?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These are matters of JUnit's internal implementation. The developers wanted to have these abstractions and they probably had their reasons. As an "end user" (in this case, a programmer writing unit tests with JUnit), you don't need to worry about those abstractions.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!