Skip to content

Commit dc9d2d4

Browse files
committed
Synchronize tests
1 parent a9f3906 commit dc9d2d4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/org.eclipse.e4.emf.xpath.test/src/org/eclipse/e4/emf/xpath/test/ExampleQueriesApplicationTest.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
******************************************************************************/
1414
package org.eclipse.e4.emf.xpath.test;
1515

16-
import static org.hamcrest.CoreMatchers.instanceOf;
17-
import static org.hamcrest.MatcherAssert.assertThat;
1816
import static org.junit.Assert.assertNotNull;
1917
import static org.junit.Assert.assertTrue;
2018

@@ -81,8 +79,7 @@ public void setUp() {
8179

8280
URI uri = URI.createPlatformPluginURI("/org.eclipse.e4.emf.xpath.test/model/Application.e4xmi", true);
8381
resource = resourceSet.getResource(uri, true);
84-
EObject root = resource.getContents().get(0);
85-
xpathContext = xpathContextFactory.newContext(root);
82+
xpathContext = xpathContextFactory.newContext(resource.getContents().get(0));
8683
}
8784

8885
@After
@@ -95,7 +92,8 @@ public void tearDown() {
9592
@Test
9693
public void testAccessingTheApplication() {
9794
Object application = xpathContext.getValue("/");
98-
assertThat(application, instanceOf(MApplication.class));
95+
assertNotNull(application);
96+
assertTrue(application instanceof MApplication);
9997
}
10098

10199
@Test

0 commit comments

Comments
 (0)