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-24963-5 - add new testclasses for CDI 2.0 #1962

Merged
merged 1 commit into from Aug 6, 2019

Conversation

zcervink
Copy link
Contributor

JBIDE-24963-5 - add new testclasses for CDI 2.0:

  • BeansXMLAsYouTypeValidationTestCDI20.class
  • BeansXMLOpenOnTestCDI20.class
  • BeansXMLUITestCDI20.class

Signed-off-by: Zbynek Cervinka zcervink@redhat.com

Jenkins: https://dev-platform-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/cdi20.itests/98/
Jira: https://issues.jboss.org/browse/JBIDE-24963

@zcervink zcervink force-pushed the JBIDE-24963-5 branch 3 times, most recently from 320d68f to e1003b6 Compare July 26, 2019 08:15
import org.eclipse.reddeer.eclipse.ui.views.markers.ProblemsView.ProblemType;
import org.jboss.tools.cdi.reddeer.annotation.ValidationType;

public class BeansXmlUIValidationProviderCDI20 extends AbstractValidationProvider {
Copy link
Member

@odockal odockal Jul 29, 2019

Choose a reason for hiding this comment

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

Isn't this file the exact same as for CDI11 except JSR number? Wouldn't it be easier to just have one class definition with problems definition and abstract method that would return proper JSR number in children classes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, now testing on Jenkins.

@zcervink zcervink force-pushed the JBIDE-24963-5 branch 2 times, most recently from 974338a to e71e4d5 Compare July 31, 2019 10:02
private final String jsr = "JSR-346";

public BeansXmlUIValidationProviderCDI11() {
private static String jsr;
Copy link
Member

Choose a reason for hiding this comment

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

I would suggest not to use static here. you are assigning it in constructor.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@zcervink zcervink force-pushed the JBIDE-24963-5 branch 2 times, most recently from b8dd6c7 to d569b51 Compare August 6, 2019 08:20
@zcervink
Copy link
Contributor Author

zcervink commented Aug 6, 2019

@odockal
Copy link
Member

odockal commented Aug 6, 2019

@jkopriva giving +1, merge this please.

@jkopriva
Copy link
Member

jkopriva commented Aug 6, 2019

@zcervink please add javadoc with author in new clasess, otherwise we can merge.

 - BeansXMLAsYouTypeValidationTestCDI20.class
 - BeansXMLOpenOnTestCDI20.class
 - BeansXMLUITestCDI20.class

Signed-off-by: Zbynek Cervinka <zcervink@redhat.com>
@zcervink
Copy link
Contributor Author

zcervink commented Aug 6, 2019

@zcervink please add javadoc with author in new clasess, otherwise we can merge.

@jkopriva javadoc with author added.

@zcervink
Copy link
Contributor Author

zcervink commented Aug 6, 2019

testPR

@jkopriva
Copy link
Member

jkopriva commented Aug 6, 2019

@zcervink thanks for contribution! Merging.

@jkopriva jkopriva merged commit 5440d7f into jbosstools:master Aug 6, 2019
@zcervink zcervink deleted the JBIDE-24963-5 branch August 6, 2019 14:41
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