X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-parser-rfc7950%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fparser%2Frfc7950%2Fstmt%2Fpath%2FPathExpressionParserTest.java;h=ceecf8874bb0f94cde4bf58dfc9be8ddc7a6e6b7;hb=c562c0ce956b098e91205ff0fb609f82f5b9ea57;hp=527ff2243e7c8838c35fe380d62938d8bf730b71;hpb=90457a20b9d0f6a7652563781d04c19002d29a4e;p=yangtools.git diff --git a/yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/path/PathExpressionParserTest.java b/yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/path/PathExpressionParserTest.java index 527ff2243e..ceecf8874b 100644 --- a/yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/path/PathExpressionParserTest.java +++ b/yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/path/PathExpressionParserTest.java @@ -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