import javax.xml.stream.XMLStreamWriter;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.mockito.ArgumentCaptor;
import org.opendaylight.yangtools.yang.common.QName;
}
@Test
- @Disabled("YT-1473: QName values need to be recognized and properly encoded via identity codec")
void testSerializeIdentity() throws Exception {
assertSerdes("/foo:bar[foo:qname='foo:one']", buildYangInstanceIdentifier(FOO_BAR, FOO_QNAME, FOO_ONE));
assertSerdes("/foo:bar[foo:qname='bar:two']", buildYangInstanceIdentifier(FOO_BAR, FOO_QNAME, BAR_TWO));
}
@Test
- @Disabled("YT-1473: Instance-identifier values need to be recognized and properly encoded and escaped")
void testSerializeInstanceIdentifierRef() throws Exception {
assertSerdes("/foo:baz[foo:id=\"/foo:bar[foo:qname='bar:two']\"]",
buildYangInstanceIdentifier(FOO_BAZ, FOO_ID, buildYangInstanceIdentifier(FOO_BAR, FOO_QNAME, BAR_TWO)));
}
@Test
- @Disabled("YT-1473: QName values need to be recognized and properly encoded via identity codec")
void testSerializeIdentityValue() throws Exception {
assertSerdes("/bar:foo[.='foo:one']", buildYangInstanceIdentifier(BAR_FOO, FOO_ONE));
assertSerdes("/bar:foo[.='bar:two']", buildYangInstanceIdentifier(BAR_FOO, BAR_TWO));
}
@Test
- @Disabled("YT-1473: Instance-identifier values need to be recognized and properly encoded and escaped")
void testSerializeInstanceIdentifierValue() throws Exception {
assertSerdes("/bar:bar[.=\"/foo:bar[foo:qname='foo:one']\"]",
buildYangInstanceIdentifier(BAR_BAR, buildYangInstanceIdentifier(FOO_BAR, FOO_QNAME, FOO_ONE)));
}
@Test
- @Disabled("YT-1473: bits values need to be recognized and properly encoded and escaped")
void testSerializeBits() throws Exception {
assertSerdes("/foo:bee[foo:bts='']", buildYangInstanceIdentifier(FOO_BEE, FOO_BTS, ImmutableSet.of()));
assertSerdes("/foo:bee[foo:bts='one']", buildYangInstanceIdentifier(FOO_BEE, FOO_BTS, ImmutableSet.of("one")));
}
@Test
- @Disabled("YT-1473: bits values need to be recognized and properly encoded and escaped")
void testSerializeBitsValue() throws Exception {
assertSerdes("/bar:bee[.='']", buildYangInstanceIdentifier(BAR_BEE, ImmutableSet.of()));
assertSerdes("/bar:bee[.='one']", buildYangInstanceIdentifier(BAR_BEE, ImmutableSet.of("one")));