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

FUSETOOLS-3007 - New UI test for Forge projects #1435

Merged
merged 1 commit into from Aug 2, 2018

Conversation

tsedmik
Copy link
Contributor

@tsedmik tsedmik commented Jul 24, 2018

https://issues.jboss.org/browse/FUSETOOLS-3007

(You can create a Fuse Integration Projects via JBoss Forge)

Signed-off-by: Tomáš Sedmík tsedmik@redhat.com

Pull Request Checklist

After this checklist is all checked or PR provides explanations for possible pass-through, please put the label "Ready for review" on the PR.

General

  • Did you use the Jira Issue number in the commit comments?
  • Did you set meaningful commit comments on each commit?
  • Did you sign off all commits for this PR? (git commit -s -m "jira issue number - your commit comment")

Functional

  • Did the CI job report a successful build?
  • Is the non-happy path working, too?

Maintainability

  • Are all Sonar reported issues fixed or can they be ignored?
  • Is there no duplicated code?
  • Are method-/class-/variable-names meaningful?

Tests

  • Are there unit-tests?
  • Are there integration tests (or at least a jira to tackle these)?
  • Do we need a new UI test?

Legal

  • Have you used the correct file header copyright comment?
  • Have you used the correct year in the headers of new files?

@tsedmik tsedmik requested a review from a team as a code owner July 24, 2018 13:14
@@ -0,0 +1,52 @@
/*******************************************************************************
* Copyright (c) 2017 Red Hat, Inc.
Copy link
Member

Choose a reason for hiding this comment

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

2018?

@@ -0,0 +1,184 @@
/*******************************************************************************
* Copyright (c) 2017 Red Hat, Inc.
Copy link
Member

Choose a reason for hiding this comment

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

2018?

view.setConsoleText(option.getNumber() + CMD_RETURN);
}
}
AbstractWait.sleep(TimePeriod.SHORT);
Copy link
Member

Choose a reason for hiding this comment

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

why do you need a wait.sleep? There is a waituntil just after


private void checkCamelEditor(String projectName) {
for (Resource res : new ProjectExplorer().getProject(projectName).getChildren()) {
if (res.getText().equals("Camel Contexts")) {
Copy link
Member

Choose a reason for hiding this comment

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

better to invert equals to avoid potential NPEs

}

@Override
public int hashCode() {
Copy link
Member

Choose a reason for hiding this comment

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

why do you need to override hashCode and equals method?

ForgeConsoleView view = new ForgeConsoleView();
view.open();
createProject(project);
if (LogChecker.noFuseError()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

LogChecker.noFuseErrors() returns "true" if there aren't "fuse" errors in error log, maybe did you expecting opposite here ?

new CamelProject(PROJECT_NAME).update();
}
checkCamelEditor(PROJECT_NAME);
collector.checkThat("Project contains some errors", LogChecker.noFuseError(), equalTo(true));
Copy link
Contributor

Choose a reason for hiding this comment

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

same question here..

https://issues.jboss.org/browse/FUSETOOLS-3007

(You can create a Fuse Integration Projects via JBoss Forge)

Signed-off-by: Tomáš Sedmík <tsedmik@redhat.com>
@tsedmik
Copy link
Contributor Author

tsedmik commented Jul 25, 2018

Thank you @apupier and @djelinek for reviews. I incorporated your comments and the PR is ready for another round ;-).

@djelinek djelinek self-requested a review July 25, 2018 13:56
@djelinek
Copy link
Contributor

testPR

@apupier apupier added this to the 11.1.0.AM2 milestone Jul 26, 2018
@tsedmik tsedmik merged commit 5e07f4a into jbosstools:master Aug 2, 2018
@tsedmik tsedmik deleted the FUSETOOLS-3007 branch August 2, 2018 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants