import java.io.FileNotFoundException;
import java.util.Optional;
import org.junit.BeforeClass;
-import org.junit.Ignore;
import org.junit.Test;
import org.opendaylight.controller.md.sal.rest.common.TestRestconfUtils;
import org.opendaylight.mdsal.dom.api.DOMMountPoint;
}
@Test
- public void testToInstanceIdentifierList() throws FileNotFoundException {
+ public void testToInstanceIdentifierList() {
InstanceIdentifierContext<?> instanceIdentifier = controllerContext
.toInstanceIdentifier("simple-nodes:userWithoutClass/foo");
assertEquals(instanceIdentifier.getSchemaNode().getQName().getLocalName(), "userWithoutClass");
}
@Test
- public void testToInstanceIdentifierContainer() throws FileNotFoundException {
+ public void testToInstanceIdentifierContainer() {
final InstanceIdentifierContext<?> instanceIdentifier =
controllerContext.toInstanceIdentifier("simple-nodes:users");
assertEquals(instanceIdentifier.getSchemaNode().getQName().getLocalName(), "users");
}
@Test
- @Ignore //jenkins has problem with JerseyTest
- // - we expecting problems with singletons ControllerContext as schemaContext holder
- public void testToInstanceIdentifierChoice() throws FileNotFoundException {
+ public void testToInstanceIdentifierChoice() {
final InstanceIdentifierContext<?> instanceIdentifier = controllerContext
.toInstanceIdentifier("simple-nodes:food/nonalcoholic");
assertEquals(instanceIdentifier.getSchemaNode().getQName().getLocalName(), "nonalcoholic");
}
@Test
- public void testMountPointWithExternModul() throws FileNotFoundException, ReactorException {
+ public void testMountPointWithExternModul() {
initSchemaService();
final InstanceIdentifierContext<?> instanceIdentifier = controllerContext
.toInstanceIdentifier("simple-nodes:users/yang-ext:mount/test-interface2:class/student/name");
}
@Test
- public void testMountPointWithoutExternModul() throws FileNotFoundException, ReactorException {
+ public void testMountPointWithoutExternModul() {
initSchemaService();
final InstanceIdentifierContext<?> instanceIdentifier = controllerContext
.toInstanceIdentifier("simple-nodes:users/yang-ext:mount/");
}
@Test
- public void testMountPointWithoutMountPointSchema() throws FileNotFoundException, ReactorException {
+ public void testMountPointWithoutMountPointSchema() {
assertThrows(RestconfDocumentedException.class,
() -> controllerContext.toInstanceIdentifier("simple-nodes:users/yang-ext:mount/test-interface2:class"));
}