Skip to content

Commit 5917ca9

Browse files
committed
fixed grammar and codestyle in XMLUtilsTest.java
1 parent 343e793 commit 5917ca9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/java/org/apache/xml/security/utils/XMLUtilsTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* Output of the first two methods is checked using an appropriate {@link FormattingChecker} implementation.
4444
* The result of stream encoding is compared to the output of {@code encodeToString} method.
4545
*
46-
* There are also tests, which check that the corresponding decoding methods can process Base64-encoded data with any
46+
* There are also tests which check that the corresponding decoding methods can process Base64-encoded data with any
4747
* formatting regardless of formatting options.
4848
*/
4949
@FormattingTest
@@ -56,7 +56,7 @@ public class XMLUtilsTest {
5656

5757
@Test
5858
public void testEncodeToString() {
59-
byte[] data = new byte[60]; // long enough for a line break in MIME encoding
59+
byte[] data = new byte[60]; // long enough for a line break in MIME encoding
6060
String encoded = XMLUtils.encodeToString(data);
6161
formattingChecker.checkBase64Value(encoded);
6262
}
@@ -70,21 +70,21 @@ public void testEncodeToStringShort() {
7070

7171
@Test
7272
public void testEncodeElementValue() {
73-
byte[] data = new byte[60]; // long enough for a line break in MIME encoding
73+
byte[] data = new byte[60]; // long enough for a line break in MIME encoding
7474
String encoded = XMLUtils.encodeElementValue(data);
7575
formattingChecker.checkBase64ValueWithSpacing(encoded);
7676
}
7777

7878
@Test
7979
public void testEncodeElementValueShort() {
80-
byte[] data = new byte[8];
80+
byte[] data = new byte[8];
8181
String encoded = XMLUtils.encodeElementValue(data);
8282
formattingChecker.checkBase64ValueWithSpacing(encoded);
8383
}
8484

8585
@Test
8686
public void testEncodeUsingStream() throws IOException {
87-
byte[] data = new byte[60];
87+
byte[] data = new byte[60];
8888
String expected = XMLUtils.encodeToString(data);
8989
String encodedWithStream;
9090
try (ByteArrayOutputStream encoded = new ByteArrayOutputStream();

0 commit comments

Comments
 (0)