Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

LewisHook
Copy link
Contributor

No description provided.

@ipolevoy
Copy link
Member

ipolevoy commented Nov 2, 2015

@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() {
Copy link
Member

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 :)

@LewisHook LewisHook force-pushed the inclusion_and_exclusion_validators branch from aafa10f to 9ca3c69 Compare April 15, 2016 19:39
@LewisHook
Copy link
Contributor Author

Hi @ipolevoy, I hope this makes things a bit clearer.

@ipolevoy
Copy link
Member

@lhook I will review later and let you know, thanks for a timely response - lol :)

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

Successfully merging this pull request may close these issues.

None yet

2 participants