Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortsommer2013-05-03 10:43:40 -0400
committertsommer2013-05-03 10:43:40 -0400
commit286d3c78701ec168f24ba08e4152d4e5724de8e2 (patch)
tree298b019ec2c1f5df0cae39f170d03ebc18b6d7e7 /demos/org.eclipse.fx.demo.contacts.edit.tests
parent8b1746a077de648bd3971528cc731672e59874d2 (diff)
downloadorg.eclipse.efxclipse-286d3c78701ec168f24ba08e4152d4e5724de8e2.tar.gz
org.eclipse.efxclipse-286d3c78701ec168f24ba08e4152d4e5724de8e2.tar.xz
org.eclipse.efxclipse-286d3c78701ec168f24ba08e4152d4e5724de8e2.zip
Ported Java 8 enhencements from GitHub repo
Diffstat (limited to 'demos/org.eclipse.fx.demo.contacts.edit.tests')
-rw-r--r--[-rwxr-xr-x]demos/org.eclipse.fx.demo.contacts.edit.tests/src/org/eclipse/fx/demo/contacts/edit/ContactItemProviderTest.java3
-rw-r--r--[-rwxr-xr-x]demos/org.eclipse.fx.demo.contacts.edit.tests/src/org/eclipse/fx/demo/contacts/edit/GroupItemProviderTest.java0
2 files changed, 3 insertions, 0 deletions
diff --git a/demos/org.eclipse.fx.demo.contacts.edit.tests/src/org/eclipse/fx/demo/contacts/edit/ContactItemProviderTest.java b/demos/org.eclipse.fx.demo.contacts.edit.tests/src/org/eclipse/fx/demo/contacts/edit/ContactItemProviderTest.java
index a5c37e6b5..9bd2b3b18 100755..100644
--- a/demos/org.eclipse.fx.demo.contacts.edit.tests/src/org/eclipse/fx/demo/contacts/edit/ContactItemProviderTest.java
+++ b/demos/org.eclipse.fx.demo.contacts.edit.tests/src/org/eclipse/fx/demo/contacts/edit/ContactItemProviderTest.java
@@ -28,6 +28,7 @@ public class ContactItemProviderTest {
static final String FIRST_NAME = "Hans";
static final String LAST_NAME = "Wurst";
+ static final String E_MAIL = "hans.wurst@example.com";
Contact contact;
ContactItemProvider contactItemProvider;
@@ -56,6 +57,8 @@ public class ContactItemProviderTest {
public void getImageWithValidName() {
contact.setFirstName(FIRST_NAME);
contact.setLastName(LAST_NAME);
+ contact.setEmail(E_MAIL);
+
Object image = contactItemProvider.getImage(contact);
assertTrue("Image should be a URL", image instanceof URL);
URL imageURL = (URL) image;
diff --git a/demos/org.eclipse.fx.demo.contacts.edit.tests/src/org/eclipse/fx/demo/contacts/edit/GroupItemProviderTest.java b/demos/org.eclipse.fx.demo.contacts.edit.tests/src/org/eclipse/fx/demo/contacts/edit/GroupItemProviderTest.java
index 9388b859f..9388b859f 100755..100644
--- a/demos/org.eclipse.fx.demo.contacts.edit.tests/src/org/eclipse/fx/demo/contacts/edit/GroupItemProviderTest.java
+++ b/demos/org.eclipse.fx.demo.contacts.edit.tests/src/org/eclipse/fx/demo/contacts/edit/GroupItemProviderTest.java

Back to the top