Skip to content
This repository has been archived by the owner on Aug 8, 2020. It is now read-only.

add final check to integrity tests #11

Open
SierraGolf opened this issue Oct 9, 2012 · 0 comments
Open

add final check to integrity tests #11

SierraGolf opened this issue Oct 9, 2012 · 0 comments
Milestone

Comments

@SierraGolf
Copy link
Member

description
the aim is to let the user define a configuration on each integrity test that the method under test (equals, toString, hashCode) should be final or not. so that he can make sure that the intention of making an implementation non-overrideable or overrideable is covered by a test.

requirements

  • the test should be optional
  • the user should be able to enable the test by calling one method with a boolean parameter
  • the boolean parameter should indicate whether the method under test must be final or not
  • the method under test should be considered final if it is explicitly declared final or if its class is final

signature
Builder testExtensibility(boolean shouldBeExtendable)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant