<artifactId>guava</artifactId>
</dependency>
</dependencies>
-
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>@{argLine}
- --add-opens org.opendaylight.yangtools.yang.model.api/org.opendaylight.yangtools.yang.model.api=ALL-UNNAMED
- --add-opens org.opendaylight.yangtools.yang.model.api/org.opendaylight.yangtools.yang.model.api.meta=ALL-UNNAMED
- --add-opens org.opendaylight.yangtools.yang.model.api/org.opendaylight.yangtools.yang.model.api.stmt=ALL-UNNAMED
- --add-opens org.opendaylight.yangtools.yang.model.api/org.opendaylight.yangtools.yang.model.api.stmt.compat=ALL-UNNAMED
- --add-opens org.opendaylight.yangtools.yang.model.api/org.opendaylight.yangtools.yang.model.api.type=ALL-UNNAMED
- --add-opens org.opendaylight.yangtools.yang.model.api/org.opendaylight.yangtools.yang.model.repo.api=ALL-UNNAMED
- --add-opens org.opendaylight.yangtools.yang.model.api/org.opendaylight.yangtools.yang.model.repo.spi=ALL-UNNAMED
- </argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
</project>
@RunWith(MockitoJUnitRunner.StrictStubs.class)
public class DeclaredStatementTest {
@Mock
- private DeclaredStatement1 stmt;
+ public DeclaredStatement1 stmt;
@Mock
- private DeclaredStatement1 stmt1;
+ public DeclaredStatement1 stmt1;
@Mock
- private DeclaredStatement2 stmt2;
+ public DeclaredStatement2 stmt2;
@Before
public void before() {
@RunWith(MockitoJUnitRunner.StrictStubs.class)
public class EffectiveStatementTest {
@Mock
- private EffectiveStatement1 stmt;
+ public EffectiveStatement1 stmt;
@Mock
- private EffectiveStatement1 stmt1;
+ public EffectiveStatement1 stmt1;
@Mock
- private Effectivestatement2 stmt2;
+ public Effectivestatement2 stmt2;
@Mock
- private Map<?, ?> mockNamespace;
+ public Map<?, ?> mockNamespace;
@Before
public void before() {
@RunWith(MockitoJUnitRunner.StrictStubs.class)
public class ActionStatementAwareDeclaredStatementTest {
@Mock
- ActionStatementAwareDeclaredStatement<?> stmt;
+ public ActionStatementAwareDeclaredStatement<?> stmt;
@Mock
- private DeclaredStatement1 stmt1;
+ public DeclaredStatement1 stmt1;
@Mock
- private ActionStatement stmt2;
+ public ActionStatement stmt2;
@Before
public void before() {
}
@Mock
- private SourceIdentifier sourceIdentifier;
- private PotentialSchemaSource<TestSchemaSourceRepresentation> source;
- private PotentialSchemaSource<TestSchemaSourceRepresentation> same;
+ public SourceIdentifier sourceIdentifier;
+ public PotentialSchemaSource<TestSchemaSourceRepresentation> source;
+ public PotentialSchemaSource<TestSchemaSourceRepresentation> same;
@Before
public void before() {
<scope>test</scope>
</dependency>
</dependencies>
-
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>@{argLine}
- --add-opens org.opendaylight.yangtools.yang.model.util/org.opendaylight.yangtools.yang.model.util=ALL-UNNAMED
- --add-opens org.opendaylight.yangtools.yang.model.util/org.opendaylight.yangtools.yang.model.util.type=ALL-UNNAMED
- --add-opens org.opendaylight.yangtools.yang.model.util/org.opendaylight.yangtools.yang.model.repo.util=ALL-UNNAMED
- </argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
</project>
@RunWith(MockitoJUnitRunner.StrictStubs.class)
public class FilesystemSchemaSourceCacheTest {
-
@Mock
- private SchemaSourceRegistry registry;
+ public SchemaSourceRegistry registry;
@Mock
- private SchemaSourceRegistration<?> registration;
- private File storageDir;
+ public SchemaSourceRegistration<?> registration;
+
+ public File storageDir;
@Before
public void setUp() throws Exception {
@RunWith(MockitoJUnitRunner.StrictStubs.class)
public class InMemorySchemaSourceCacheTest {
-
- private static final Class<YangSchemaSourceRepresentation> REPRESENTATION = YangSchemaSourceRepresentation.class;
- private static final long LIFETIME = 1000L;
- private static final TimeUnit UNITS = TimeUnit.MILLISECONDS;
+ public static final Class<YangSchemaSourceRepresentation> REPRESENTATION = YangSchemaSourceRepresentation.class;
+ public static final long LIFETIME = 1000L;
+ public static final TimeUnit UNITS = TimeUnit.MILLISECONDS;
@Mock
- private SchemaSourceRegistry registry;
+ public SchemaSourceRegistry registry;
@Mock
- private SchemaSourceRegistration<?> registration;
+ public SchemaSourceRegistration<?> registration;
@Before
public void setUp() throws Exception {
@RunWith(MockitoJUnitRunner.class)
public class RefcountedRegistrationTest {
@Mock
- private SchemaSourceRegistration<?> reg;
+ public SchemaSourceRegistration<?> reg;
@Before
public void before() {
@RunWith(MockitoJUnitRunner.class)
public class SchemaSourceTransformerTest {
-
- private SchemaSourceTransformer<YangSchemaSourceRepresentation, YinXmlSchemaSource> schema;
- private static final Class<YangSchemaSourceRepresentation> SRC_CLASS = YangSchemaSourceRepresentation.class;
- private static final Class<YinXmlSchemaSource> DST_CLASS = YinXmlSchemaSource.class;
+ public static final Class<YangSchemaSourceRepresentation> SRC_CLASS = YangSchemaSourceRepresentation.class;
+ public static final Class<YinXmlSchemaSource> DST_CLASS = YinXmlSchemaSource.class;
@Mock
- private SchemaRepository provider;
+ public SchemaRepository provider;
@Mock
- private SchemaSourceRegistry consumer;
+ public SchemaSourceRegistry consumer;
@Mock
- private AsyncFunction<YangSchemaSourceRepresentation, YinXmlSchemaSource> function;
+ public AsyncFunction<YangSchemaSourceRepresentation, YinXmlSchemaSource> function;
+
+ public SchemaSourceTransformer<YangSchemaSourceRepresentation, YinXmlSchemaSource> schema;
@Test
public void schemaSourceTransformerTest() {
@RunWith(MockitoJUnitRunner.class)
public class BitsTypeTest {
@Mock
- private BitsTypeDefinition.Bit bit;
+ public BitsTypeDefinition.Bit bit;
@Test
public void canCreateBitsType() {
@RunWith(MockitoJUnitRunner.class)
public class ModuleDependencySortTest {
- private static final QNameModule FOO_MODULE = QNameModule.create(URI.create("foo"));
- private static final QNameModule BAR_MODULE = QNameModule.create(URI.create("bar"));
+ public static final QNameModule FOO_MODULE = QNameModule.create(URI.create("foo"));
+ public static final QNameModule BAR_MODULE = QNameModule.create(URI.create("bar"));
@Mock
- private Module fooNoRev;
+ public Module fooNoRev;
@Mock
- private ModuleImport fooNoRevImport;
+ public ModuleImport fooNoRevImport;
@Mock
- private Module bar;
+ public Module bar;
@Mock
- private Submodule barSubmodule;
+ public Submodule barSubmodule;
@Before
public void before() {
@RunWith(MockitoJUnitRunner.StrictStubs.class)
public class SchemaContextUtilTest {
- private static final Splitter SPACE_SPLITTER = Splitter.on(' ');
- private static final URI NAMESPACE = URI.create("abc");
+ public static final Splitter SPACE_SPLITTER = Splitter.on(' ');
+ public static final URI NAMESPACE = URI.create("abc");
@Mock
- private SchemaContext mockSchemaContext;
+ public SchemaContext mockSchemaContext;
@Mock
- private Module mockModule;
+ public Module mockModule;
@Mock
- private SchemaNode schemaNode;
+ public SchemaNode schemaNode;
@Before
public void before() {
@RunWith(MockitoJUnitRunner.StrictStubs.class)
public class SchemaNodeUtilsTest {
@Mock
- private DerivableSchemaNode derivableNode;
+ public DerivableSchemaNode derivableNode;
@Test
public void testHandleNullGetOriginalIfPossible() {
<build>
<plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>@{argLine}
- --add-opens org.opendaylight.yangtools.yang.parser.rfc7950/org.opendaylight.yangtools.yang.parser.rfc7950.stmt.path=ALL-UNNAMED
- </argLine>
- </configuration>
- </plugin>
<plugin>
<!-- FIXME: why is this needed? -->
<groupId>org.codehaus.mojo</groupId>
@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;
+
+ public final PathExpressionParser parser = new PathExpressionParser();
@Before
public void before() {
<artifactId>mockito-configuration</artifactId>
</dependency>
</dependencies>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>@{argLine}
- --add-opens org.opendaylight.yangtools.yang.parser.spi/org.opendaylight.yangtools.yang.parser.spi.source=ALL-UNNAMED
- </argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
</project>
@RunWith(MockitoJUnitRunner.StrictStubs.class)
public class SourceExceptionTest {
@Mock
- private StatementSourceReference mock;
+ public StatementSourceReference mock;
@Before
public void before() {