コード例 #1
0
 @Test
 public void canGetAllAttributeNamesByNonExistingNamespace() {
   List<String> names = element.attrNames(NON_EXISTING);
   assertThat(names).isEmpty();
 }
コード例 #2
0
 @Test
 public void canGetAllAttributeNamesByNamespace() {
   List<String> names = element.attrNames(EXAMPLE_NAMESPACE);
   assertThat(names).containsOnly("dueUntil");
 }
コード例 #3
0
 @Test
 public void canGetAllAttributeNamesByNullNamespace() {
   List<String> names = element.attrNames(null);
   assertThat(names).containsOnly("order");
 }
コード例 #4
0
 @Test
 public void canGetAllAttributeNames() {
   List<String> names = element.attrNames();
   assertThat(names).containsOnly("order", "dueUntil", "xmlns", "ex");
 }