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
Conversation
@@ -0,0 +1,52 @@ | |||
/******************************************************************************* | |||
* Copyright (c) 2017 Red Hat, Inc. |
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.
2018?
@@ -0,0 +1,184 @@ | |||
/******************************************************************************* | |||
* Copyright (c) 2017 Red Hat, Inc. |
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.
2018?
view.setConsoleText(option.getNumber() + CMD_RETURN); | ||
} | ||
} | ||
AbstractWait.sleep(TimePeriod.SHORT); |
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.
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")) { |
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.
better to invert equals to avoid potential NPEs
} | ||
|
||
@Override | ||
public int hashCode() { |
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.
why do you need to override hashCode and equals method?
ForgeConsoleView view = new ForgeConsoleView(); | ||
view.open(); | ||
createProject(project); | ||
if (LogChecker.noFuseError()) { |
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.
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)); |
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.
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>
testPR |
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
Functional
Maintainability
Tests
Legal