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

[JBIDE-23509] made sure ProjectNameValidationTest has a conn #1670

Merged
merged 1 commit into from Nov 24, 2016

Conversation

adietish
Copy link
Member

No description provided.

@adietish
Copy link
Member Author

@mlabuda please review

}

closeNewProjectShell();
new DefaultText(PROJECT_NAME_SHORT_ERROR);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have same comment as in #1667 regarding test failure.

Copy link
Member Author

@adietish adietish Nov 23, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can only reiterate my objections:
A test with an exception is a failing test. If this is not acceptable to you then we should make sure red deer behaves differently (ex. by not throwing an exception but by throwing an AssertionFailedError that your fail() is throwing). Repeating the very same catch and fail() in tests makes no sense. It's unnecessary noise imho.
I'd like to progress here, but it looks like we are stuck in arguments. @jeffmaury @alexeykazakov further opinions please?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do get arguments of both sides. It's kind of frog-mice war right now. I agree with Marian that the crucial part of each test should be done by some assertion (or as he is doing it, because we don't have better mechanism right now).
But even despite that, I'm for merging this PR as it is. It hugely increases readability and it's possible (quite easily) to see from the exception where the error occurs.
We'll think of how to implement assertions into RedDeer framework so we can do this properly next time ;-)
I talked to Marian about my opinion and he agreed that this PR can be merged (but he is still not happy about that :-D).
If Jeff and Alexey want to provide opinion it's still desired. The more valid points are made, the better code we'll have.

}

closeNewProjectShell();
new DefaultText(PROJECT_NAME_FORMAT_ERROR);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have same comment as in #1667 regarding test failure.

}

closeNewProjectShell();
new DefaultText(PROJECT_NAME_FORMAT_ERROR);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have same comment as in #1667 regarding test failure.

"0123456789" +
"0123456789" +
"01234");
new DefaultText(PROJECT_NAME_MAX_LENGTH_ERROR);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have same comment as in #1667 regarding test failure.

@rhopp rhopp merged commit a9f640a into jbosstools:master Nov 24, 2016
@adietish adietish deleted the JBIDE-23509 branch November 28, 2016 10:38
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

3 participants