1515 */
1616package com .developerb .nmxmlp ;
1717
18- import org .junit .Test ;
18+
19+ import org .junit .jupiter .api .Test ;
1920
2021import java .nio .charset .StandardCharsets ;
2122
2223import static org .assertj .core .api .Assertions .assertThat ;
23- import static org .junit .Assert .*;
24+ import static org .junit .jupiter .api .Assertions .assertEquals ;
25+ import static org .junit .jupiter .api .Assertions .assertFalse ;
26+ import static org .junit .jupiter .api .Assertions .assertNull ;
27+ import static org .junit .jupiter .api .Assertions .assertTrue ;
28+ import static org .junit .jupiter .api .Assertions .fail ;
2429
2530
26- public class AttributeTest extends AbstractNXTest {
31+ class AttributeTest extends AbstractNXTest {
2732
2833 private final String xml = "<root><person firstName='Nasse' lastName='Nøff' age='10' /></root>" ;
2934
3035
3136 @ Test
32- public void removeAttribute () {
37+ void removeAttribute () {
3338 NX .Cursor root = parse (xml );
3439 NX .Cursor person = root .to ("person" );
3540
@@ -41,7 +46,7 @@ public void removeAttribute() {
4146 }
4247
4348 @ Test
44- public void hasAttr () {
49+ void hasAttr () {
4550 NX .Cursor root = parse (xml );
4651 NX .Cursor person = root .to ("person" );
4752
@@ -51,7 +56,7 @@ public void hasAttr() {
5156 }
5257
5358 @ Test
54- public void readingAttributeAsText () {
59+ void readingAttributeAsText () {
5560 NX .Cursor root = parse (xml );
5661 NX .Cursor person = root .to ("person" );
5762
@@ -60,7 +65,7 @@ public void readingAttributeAsText() {
6065 }
6166
6267 @ Test
63- public void attemptingToGetMissingAttributeShouldThrowException () {
68+ void attemptingToGetMissingAttributeShouldThrowException () {
6469 NX .Cursor root = parse (xml );
6570 NX .Cursor person = root .to ("person" );
6671
@@ -76,7 +81,7 @@ public void attemptingToGetMissingAttributeShouldThrowException() {
7681 }
7782
7883 @ Test
79- public void textContentOfMissingAttributeShouldBeNull () {
84+ void textContentOfMissingAttributeShouldBeNull () {
8085 NX .Cursor root = parse (xml );
8186 NX .Cursor person = root .to ("person" );
8287
@@ -85,7 +90,7 @@ public void textContentOfMissingAttributeShouldBeNull() {
8590 }
8691
8792 @ Test
88- public void updatingTextOfMissingAttributeShouldDoNothing () {
93+ void updatingTextOfMissingAttributeShouldDoNothing () {
8994 NX .Cursor root = parse (xml );
9095 NX .Cursor person = root .to ("person" );
9196
@@ -94,7 +99,7 @@ public void updatingTextOfMissingAttributeShouldDoNothing() {
9499 }
95100
96101 @ Test
97- public void mapAttributeTextUsingFunction () {
102+ void mapAttributeTextUsingFunction () {
98103 NX .Cursor root = parse (xml );
99104 NX .Cursor person = root .to ("person" );
100105
@@ -106,7 +111,7 @@ public void mapAttributeTextUsingFunction() {
106111 }
107112
108113 @ Test
109- public void mapAttributeTextUsingMethodReference () {
114+ void mapAttributeTextUsingMethodReference () {
110115 NX .Cursor root = parse (xml );
111116 NX .Cursor person = root .to ("person" );
112117
@@ -118,7 +123,7 @@ public void mapAttributeTextUsingMethodReference() {
118123 }
119124
120125 @ Test
121- public void mapMissingOptionalAttributeReturnsNull () {
126+ void mapMissingOptionalAttributeReturnsNull () {
122127 NX .Cursor root = parse (xml );
123128 NX .Cursor person = root .to ("person" );
124129
0 commit comments