diff --git a/.classpath b/.classpath new file mode 100644 index 000000000..3f05f311a --- /dev/null +++ b/.classpath @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/.gitignore b/.gitignore index d30d6e80b..63e21e8b4 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ preferences.json ./screenshot*.png classes/ data/ +/bin/ diff --git a/.project b/.project new file mode 100644 index 000000000..1c9339c5f --- /dev/null +++ b/.project @@ -0,0 +1,23 @@ + + + addressbook-level4 + Project addressbook-level4 created by Buildship. + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.buildship.core.gradleprojectbuilder + + + + + + org.eclipse.buildship.core.gradleprojectnature + org.eclipse.jdt.core.javanature + + diff --git a/.settings/org.eclipse.buildship.core.prefs b/.settings/org.eclipse.buildship.core.prefs new file mode 100644 index 000000000..58b9567e0 --- /dev/null +++ b/.settings/org.eclipse.buildship.core.prefs @@ -0,0 +1,10 @@ +build.commands=org.eclipse.jdt.core.javabuilder +connection.arguments= +connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER) +connection.java.home=null +connection.jvm.arguments= +connection.project.dir= +derived.resources=.gradle,build +eclipse.preferences.version=1 +natures=org.eclipse.jdt.core.javanature +project.path=\: diff --git a/docs/DeveloperGuide.md b/docs/DeveloperGuide.md index 7877b0737..4eb3174f0 100644 --- a/docs/DeveloperGuide.md +++ b/docs/DeveloperGuide.md @@ -24,14 +24,15 @@ 2. **Eclipse** IDE 3. **e(fx)clipse** plugin for Eclipse (Do the steps 2 onwards given in [this page](http://www.eclipse.org/efxclipse/install.html#for-the-ambitious)) +4. **Buildship Gradle Integration** plugin from the Eclipse Marketplace #### Importing the project into Eclipse 0. Fork this repo, and clone the fork to your computer -1. Open Eclipse (Note: Ensure you have installed the **e(fx)clipse plugin** as given in the prerequisites above) +1. Open Eclipse (Note: Ensure you have installed the **e(fx)clipse** and **buildship** plugins as given in the prerequisites above) 2. Click `File` > `Import` -3. Click `General` > `Existing Projects into Workspace` > `Next` +3. Click `Gradle` > `Gradle Project` > `Next` > `Next` 4. Click `Browse`, then locate the project's directory 5. Click `Finish` diff --git a/src/test/java/guitests/guihandles/CommandBoxHandle.java b/src/test/java/guitests/guihandles/CommandBoxHandle.java index 531700170..dcd315563 100644 --- a/src/test/java/guitests/guihandles/CommandBoxHandle.java +++ b/src/test/java/guitests/guihandles/CommandBoxHandle.java @@ -28,6 +28,7 @@ public String getCommandInput() { public void runCommand(String command) { enterCommand(command); pressEnter(); + guiRobot.sleep(200); //Give time for the command to take effect } public HelpWindowHandle runHelpCommand() { diff --git a/src/test/java/guitests/guihandles/PersonListPanelHandle.java b/src/test/java/guitests/guihandles/PersonListPanelHandle.java index f64b668a1..9f3afb191 100644 --- a/src/test/java/guitests/guihandles/PersonListPanelHandle.java +++ b/src/test/java/guitests/guihandles/PersonListPanelHandle.java @@ -102,6 +102,7 @@ public boolean isListMatching(int startPosition, ReadOnlyPerson... persons) thro public PersonCardHandle navigateToPerson(String name) { + guiRobot.sleep(500); //Allow a bit of time for the list to be updated final Optional person = getListView().getItems().stream().filter(p -> p.getName().fullName.equals(name)).findAny(); if (!person.isPresent()) { throw new IllegalStateException("Name not found: " + name);