Split out yang-repo-{api,spi}
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / path / PathExpressionParserTest.java
index 527ff2243e7c8838c35fe380d62938d8bf730b71..ceecf8874bb0f94cde4bf58dfc9be8ddc7a6e6b7 100644 (file)
@@ -7,12 +7,12 @@
  */
 package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.path;
 
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.containsString;
 import static org.hamcrest.Matchers.isA;
 import static org.hamcrest.Matchers.startsWith;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertSame;
-import static org.junit.Assert.assertThat;
 import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
 import static org.mockito.Mockito.doReturn;
@@ -44,14 +44,16 @@ import org.opendaylight.yangtools.yang.xpath.api.YangXPathAxis;
 @RunWith(MockitoJUnitRunner.StrictStubs.class)
 public class PathExpressionParserTest {
     @Mock
-    private StmtContext<?, ?, ?> ctx;
+    public StmtContext<?, ?, ?> ctx;
     @Mock
-    private StatementSourceReference ref;
-    private final PathExpressionParser parser = new PathExpressionParser();
+    public StatementSourceReference ref;
+
+    @SuppressWarnings("exports")
+    public final PathExpressionParser parser = new PathExpressionParser();
 
     @Before
     public void before() {
-        doReturn(ref).when(ctx).getStatementSourceReference();
+        doReturn(ref).when(ctx).sourceReference();
     }
 
     @Test