-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The API should support testing for "equivalence" to classes #60
Comments
I like the idea, but I feel the proposal looks kind of verbose and could be more precise. I would prefer |
You're right, that would be more concise 😃
Or |
…Test.java class Issue: TNG#60
Issue: TNG#60 Signed-off-by: Michael Sherman <msherman32@gatech.edu>
Issue: TNG#60 Signed-off-by: Michael Sherman <msherman32@gatech.edu>
Issue: TNG#60 Signed-off-by: Michael Sherman <msherman32@gatech.edu>
Issue: TNG#60 Signed-off-by: Michael Sherman <msherman32@gatech.edu>
Issue: TNG#60 Signed-off-by: Michael Sherman <msherman32@gatech.edu>
noClass(..) entry point to create rules based on a specific class. Also added should().be(..) and should().notBe(). Issue: TNG#60 Signed-off-by: Michael Sherman <msherman32@gatech.edu>
…l with the new (not)be(..) methods) Issue: TNG#60 Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
…uld().be(..) and should().notBe(..) Issue: TNG#60 Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
noClass(..) entry point to create rules based on a specific class. Also added should().be(..) and should().notBe(). Issue: TNG#60 Signed-off-by: Michael Sherman <msherman32@gatech.edu>
…l with the new (not)be(..) methods) Issue: TNG#60 Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
…uld().be(..) and should().notBe(..) Issue: TNG#60 Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
noClass(..) entry point to create rules based on a specific class. Also added should().be(..) and should().notBe(). Issue: #60 Signed-off-by: Michael Sherman <msherman32@gatech.edu>
…l with the new (not)be(..) methods) Issue: #60 Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
…uld().be(..) and should().notBe(..) Issue: #60 Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
Adds theClass(..), noClass(..), should().be(..) and should().notBe(..) Resolves: #60
Sometimes a rule only targets a single class (e.g. class
Foo
is only accessed by classes matching a certain pattern). It should be possible to supply the class object in that case, instead of writingclasses().that().haveFullyQualifiedName(Foo.class.getName())
. Thus I propose an API extension:classes().that().areEquivalentTo(Foo.class)
classes().should().beEquivalentTo(Foo.class)
which just pipes to
JavaClass.isEquivalentTo(Foo.class)
.The text was updated successfully, but these errors were encountered: