Skip to content

Commit a84ab10

Browse files
committed
Fix checkstyle for test sources
1 parent b25c872 commit a84ab10

10 files changed

Lines changed: 114 additions & 119 deletions

src/test/java/org/apache/commons/codec/binary/Base32Test.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@
66
* (the "License"); you may not use this file except in compliance with
77
* the License. You may obtain a copy of the License at
88
*
9-
* http://www.apache.org/licenses/LICENSE-2.0
9+
* http://www.apache.org/licenses/LICENSE-2.0
1010
*
1111
* Unless required by applicable law or agreed to in writing, software
1212
* distributed under the License is distributed on an "AS IS" BASIS,
1313
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
16-
*
1716
*/
1817

1918
package org.apache.commons.codec.binary;

src/test/java/org/apache/commons/codec/binary/Base64Test.java

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -225,27 +225,29 @@ public void testCodeInteger2() {
225225

226226
@Test
227227
public void testCodeInteger3() {
228-
final String encodedInt3 = "FKIhdgaG5LGKiEtF1vHy4f3y700zaD6QwDS3IrNVGzNp2"
229-
+ "rY+1LFWTK6D44AyiC1n8uWz1itkYMZF0/aKDK0Yjg==";
228+
final String encodedInt3 = "FKIhdgaG5LGKiEtF1vHy4f3y700zaD6QwDS3IrNVGzNp2" +
229+
"rY+1LFWTK6D44AyiC1n8uWz1itkYMZF0/aKDK0Yjg==";
230230
final BigInteger bigInt3 = new BigInteger(
231-
"10806548154093873461951748545" + "1196989136416448805819079363524309897749044958112417136240557"
232-
+ "4495062430572478766856090958495998158114332651671116876320938126");
231+
"10806548154093873461951748545" +
232+
"1196989136416448805819079363524309897749044958112417136240557" +
233+
"4495062430572478766856090958495998158114332651671116876320938126");
233234

234235
assertEquals(encodedInt3, new String(Base64.encodeInteger(bigInt3)));
235236
assertEquals(bigInt3, Base64.decodeInteger(encodedInt3.getBytes(CHARSET_UTF8)));
236237
}
237238

238239
@Test
239240
public void testCodeInteger4() {
240-
final String encodedInt4 = "ctA8YGxrtngg/zKVvqEOefnwmViFztcnPBYPlJsvh6yKI"
241-
+ "4iDm68fnp4Mi3RrJ6bZAygFrUIQLxLjV+OJtgJAEto0xAs+Mehuq1DkSFEpP3o"
242-
+ "DzCTOsrOiS1DwQe4oIb7zVk/9l7aPtJMHW0LVlMdwZNFNNJoqMcT2ZfCPrfvYv" + "Q0=";
243-
final BigInteger bigInt4 = new BigInteger(
244-
"80624726256040348115552042320" + "6968135001872753709424419772586693950232350200555646471175944"
245-
+ "519297087885987040810778908507262272892702303774422853675597"
246-
+ "748008534040890923814202286633163248086055216976551456088015"
247-
+ "338880713818192088877057717530169381044092839402438015097654"
248-
+ "53542091716518238707344493641683483917");
241+
final String encodedInt4 = "ctA8YGxrtngg/zKVvqEOefnwmViFztcnPBYPlJsvh6yKI" +
242+
"4iDm68fnp4Mi3RrJ6bZAygFrUIQLxLjV+OJtgJAEto0xAs+Mehuq1DkSFEpP3o" +
243+
"DzCTOsrOiS1DwQe4oIb7zVk/9l7aPtJMHW0LVlMdwZNFNNJoqMcT2ZfCPrfvYv" +
244+
"Q0=";
245+
final BigInteger bigInt4 = new BigInteger("80624726256040348115552042320" +
246+
"6968135001872753709424419772586693950232350200555646471175944" +
247+
"519297087885987040810778908507262272892702303774422853675597" +
248+
"748008534040890923814202286633163248086055216976551456088015" +
249+
"338880713818192088877057717530169381044092839402438015097654" +
250+
"53542091716518238707344493641683483917");
249251

250252
assertEquals(encodedInt4, new String(Base64.encodeInteger(bigInt4)));
251253
assertEquals(bigInt4, Base64.decodeInteger(encodedInt4.getBytes(CHARSET_UTF8)));
@@ -545,12 +547,12 @@ public void testNonBase64Test() throws Exception {
545547
final Base64 b64 = new Base64();
546548
final byte[] result = b64.decode(bArray);
547549

548-
assertEquals("The result should be empty as the test encoded content did "
549-
+ "not contain any valid base 64 characters", 0, result.length);
550+
assertEquals("The result should be empty as the test encoded content did " +
551+
"not contain any valid base 64 characters", 0, result.length);
550552
} catch (final Exception e) {
551-
fail("Exception was thrown when trying to decode "
552-
+ "invalid base64 encoded data - RFC 2045 requires that all "
553-
+ "non base64 character be discarded, an exception should not" + " have been thrown");
553+
fail("Exception was thrown when trying to decode " +
554+
"invalid base64 encoded data - RFC 2045 requires that all " +
555+
"non base64 character be discarded, an exception should not" + " have been thrown");
554556
}
555557
}
556558

src/test/java/org/apache/commons/codec/binary/Base64TestData.java

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -32,56 +32,56 @@ public class Base64TestData {
3232
*/
3333
public static final String CODEC_101_INPUT_LENGTH_IS_MULTIPLE_OF_3 = "124";
3434

35-
public static final String CODEC_98_NPE
36-
= "YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXpBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWjAxMjM";
35+
public static final String CODEC_98_NPE =
36+
"YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXpBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWjAxMjM";
3737

38-
public static final String CODEC_98_NPE_DECODED
39-
= "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123";
38+
public static final String CODEC_98_NPE_DECODED =
39+
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123";
4040

4141

4242
// OpenSSL doesn't include the final \n, but it would be annoying beyond belief
4343
// to further parameterize commons-codec to support this pointless variation.
44-
final static String ENCODED_64_CHARS_PER_LINE
45-
= "9IPNKwUvdLiIAp6ctz12SiQmOGstWyYvSPeevufDhrzaws65voykKjbIj33YWTa9\n"
46-
+ "xA7c/FHypWclrZhQ7onfc3JE93BJ5fT4R9zAEdjbjy1hv4ZYNnET4WJeXMLJ/5p+\n"
47-
+ "qBpTsPpepW8DNVYy1c02/1wyC+kgA6CvRUd9cSr/lt88AEdsTV4GMCn1+EwuAiYd\n"
48-
+ "ivxuzn+cLM8q2jewqlI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anu9UK2fi1T8jJPFC2PmXebxp0bnO+VW+bgyEdIIkIQCaZq1MKW\n" +
79+
"C3KuiOS9BJ1t7O0A2JKJKvoE4UNulzV2TGCC+KAnmjRqQBqXlJmgjHQAoHNZKOma/uIQOsvfDnqi\n" +
80+
"cYdDmfyCYuV89HjA1H8tiDJ85VfsrFHdcbPAoNCpi65awJSHfdPO1NDONOK++S7Y0VXUgoYYrBV4\n" +
81+
"Y7YbC8wg/nqcimr3lm3tRyp+QsgKzdREbfNRk0F5PLyLfsUElepjs1QdV3fEV1LJtiywA3ubVNQJ\n" +
82+
"RxhbYxa/C/Xy2qxpm6vvdL92l3q1ccev35IcaOiSx7Im+/GxV2lVKdaOvYVGDD1zBRe6Y2CwQb9p\n" +
83+
"088l3/93qGR5593NCiuPPWcsDWwUShM1EyW0FNX1F8bnzHnYijoyE/jf4s/l9bBd7yJdRWRCyih2\n" +
84+
"WcypAiOIEkBsH+dCTgalu8sRDoMh4ZIBBdgHfoZUycLqReQFLZZ4Sl4zSmzt5vQxQFhEKb9+ff/4\n" +
85+
"rb1KAo6wifengxVfIsa2b5ljXzAqXs7JkPvmC6fa7X4ZZndRokaxYlu3cg8OV+uG/6YAHZilo8at\n" +
86+
"0OpkkNdNFuhwuGlkBqrZKNUj/gSiYYc06gF/r/z6iWAjpXJRW1qq3CLZXdZFZ/VrqXeVjtOAu2A=\n";
8787
}

src/test/java/org/apache/commons/codec/binary/BaseNCodecTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@
66
* (the "License"); you may not use this file except in compliance with
77
* the License. You may obtain a copy of the License at
88
*
9-
* http://www.apache.org/licenses/LICENSE-2.0
9+
* http://www.apache.org/licenses/LICENSE-2.0
1010
*
1111
* Unless required by applicable law or agreed to in writing, software
1212
* distributed under the License is distributed on an "AS IS" BASIS,
1313
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
16-
*
1716
*/
1817

1918
package org.apache.commons.codec.binary;

src/test/java/org/apache/commons/codec/digest/HmacUtilsTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
22
* Licensed to the Apache Software Foundation (ASF) under one or more
3-
* contributor license agreements. See the NOTICE file distributed with
3+
* contributor license agreements. See the NOTICE file distributed with
44
* this work for additional information regarding copyright ownership.
55
* The ASF licenses this file to You under the Apache License, Version 2.0
66
* (the "License"); you may not use this file except in compliance with
7-
* the License. You may obtain a copy of the License at
7+
* the License. You may obtain a copy of the License at
88
*
9-
* http://www.apache.org/licenses/LICENSE-2.0
9+
* http://www.apache.org/licenses/LICENSE-2.0
1010
*
1111
* Unless required by applicable law or agreed to in writing, software
1212
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -260,4 +260,4 @@ public void testSha512HMac() throws IOException {
260260
public void testSha512HMacFail() {
261261
HmacUtils.hmacSha512((byte[]) null, HmacAlgorithmsTest.STANDARD_PHRASE_BYTES);
262262
}
263-
}
263+
}

src/test/java/org/apache/commons/codec/digest/PureJavaCrc32Test.java

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
/**
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
98
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
9+
* http://www.apache.org/licenses/LICENSE-2.0
1110
*
1211
* Unless required by applicable law or agreed to in writing, software
1312
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -76,8 +75,8 @@ private void checkOnBytes(final byte[] bytes, final boolean print) {
7675
}
7776

7877
if (print) {
79-
System.out.println("theirs:\t" + Long.toHexString(theirs.getValue())
80-
+ "\nours:\t" + Long.toHexString(ours.getValue()));
78+
System.out.println("theirs:\t" + Long.toHexString(theirs.getValue()) +
79+
"\nours:\t" + Long.toHexString(ours.getValue()));
8180
}
8281

8382
theirs.reset();
@@ -86,8 +85,8 @@ private void checkOnBytes(final byte[] bytes, final boolean print) {
8685
ours.update(bytes, 0, bytes.length);
8786
theirs.update(bytes, 0, bytes.length);
8887
if (print) {
89-
System.out.println("theirs:\t" + Long.toHexString(theirs.getValue())
90-
+ "\nours:\t" + Long.toHexString(ours.getValue()));
88+
System.out.println("theirs:\t" + Long.toHexString(theirs.getValue()) +
89+
"\nours:\t" + Long.toHexString(ours.getValue()));
9190
}
9291

9392
checkSame();
@@ -293,8 +292,8 @@ private static void doBench(final List<Class<? extends Checksum>> crcs,
293292
if(c == zip) {
294293
expected = result;
295294
} else if (expected == null) {
296-
throw new RuntimeException("The first class is "
297-
+ c.getName() + " but not " + zip.getName());
295+
throw new RuntimeException("The first class is " +
296+
c.getName() + " but not " + zip.getName());
298297
} else if (result.value != expected.value) {
299298
throw new RuntimeException(c + " has bugs!");
300299
}

src/test/java/org/apache/commons/codec/digest/XXHash32OverflowTest.java

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
/*
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
98
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
9+
* http://www.apache.org/licenses/LICENSE-2.0
1110
*
12-
* Unless required by applicable law or agreed to in writing,
13-
* software distributed under the License is distributed on an
14-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
* KIND, either express or implied. See the License for the
16-
* specific language governing permissions and limitations
17-
* under the License.
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
1816
*/
1917
package org.apache.commons.codec.digest;
2018

src/test/java/org/apache/commons/codec/digest/XXHash32Test.java

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
/*
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
98
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
9+
* http://www.apache.org/licenses/LICENSE-2.0
1110
*
12-
* Unless required by applicable law or agreed to in writing,
13-
* software distributed under the License is distributed on an
14-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
* KIND, either express or implied. See the License for the
16-
* specific language governing permissions and limitations
17-
* under the License.
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
1816
*/
1917
package org.apache.commons.codec.digest;
2018

0 commit comments

Comments
 (0)