File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
tests/org.eclipse.e4.emf.xpath.test/src/org/eclipse/e4/emf/xpath/test Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1313 ******************************************************************************/
1414package org .eclipse .e4 .emf .xpath .test ;
1515
16- import static org .hamcrest .CoreMatchers .instanceOf ;
17- import static org .hamcrest .MatcherAssert .assertThat ;
1816import static org .junit .Assert .assertNotNull ;
1917import 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
You can’t perform that action at this time.
0 commit comments