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
Adds inclusion and exclusion validators. #434
base: master
Are you sure you want to change the base?
Adds inclusion and exclusion validators. #434
Conversation
@lhook, I read and re-read the tests, and sorry I do not understand what these validators do. Can you please explain? Also, add proper JavaDoc with real world examples, if possible? Code looks clean thouth. |
public class AttributeExclusionValidatorTest extends ActiveJDBCTest { | ||
|
||
@Test | ||
public void testWhenAttributeIsExcluded() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, we have switched to "should" prefix in all tests a few years ago. Here is one example:
https://github.com/javalite/activejdbc/blob/master/activejdbc/src/test/java/org/javalite/activejdbc/BelongsToParentsTest.java#L25
As you can see, the method name starts with "should" as opposed to "test". The "should" is more expressive than "test" and also indicates that the method name is an expectation.
Please, see more on this here: http://javalite.io/jspec
This is only recommendation :)
aafa10f
to
9ca3c69
Compare
Hi @ipolevoy, I hope this makes things a bit clearer. |
@lhook I will review later and let you know, thanks for a timely response - lol :) |
f2f2f43
to
7e51945
Compare
No description provided.