- InstanceIdWithSchemaNode instanceIdentifierA = controllerContext
- .toInstanceIdentifier("main:cont/augment-main-a:cont1");
- InstanceIdWithSchemaNode instanceIdentifierB = controllerContext
- .toInstanceIdentifier("main:cont/augment-main-b:cont1");
-
- assertEquals("ns:augment:main:a", instanceIdentifierA.getSchemaNode().getQName().getNamespace().toString());
- assertEquals("ns:augment:main:b", instanceIdentifierB.getSchemaNode().getQName().getNamespace());
- } catch (ResponseException e) {
- exceptionCaught = true;
+ controllerContext.toInstanceIdentifier("main:cont/cont1");
+ fail( "Expected exception" );
+ } catch (RestconfDocumentedException e) {
+ assertTrue(e.getErrors().get( 0 ).getErrorMessage().contains(
+ "is added as augment from more than one module"));