*/
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;
@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