Skip to content

Commit 00c22c3

Browse files
committed
Move test fixtures to a component specific folder.
1 parent a887bc1 commit 00c22c3

7 files changed

Lines changed: 12 additions & 12 deletions

File tree

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,9 @@ limitations under the License.
276276
<artifactId>apache-rat-plugin</artifactId>
277277
<configuration>
278278
<excludes>
279-
<exclude>src/test/resources/bla.tar.xz</exclude>
280-
<exclude>src/test/resources/empty.bin</exclude>
281-
<exclude>src/test/resources/small.bin</exclude>
279+
<exclude>src/test/resources/org/apache/commons/codec/bla.tar.xz</exclude>
280+
<exclude>src/test/resources/org/apache/commons/codec/empty.bin</exclude>
281+
<exclude>src/test/resources/org/apache/commons/codec/small.bin</exclude>
282282
</excludes>
283283
</configuration>
284284
</plugin>
@@ -345,9 +345,9 @@ limitations under the License.
345345
<artifactId>apache-rat-plugin</artifactId>
346346
<configuration>
347347
<excludes>
348-
<exclude>src/test/resources/bla.tar.xz</exclude>
349-
<exclude>src/test/resources/empty.bin</exclude>
350-
<exclude>src/test/resources/small.bin</exclude>
348+
<exclude>src/test/resources/org/apache/commons/codec/bla.tar.xz</exclude>
349+
<exclude>src/test/resources/org/apache/commons/codec/empty.bin</exclude>
350+
<exclude>src/test/resources/org/apache/commons/codec/small.bin</exclude>
351351
</excludes>
352352
</configuration>
353353
</plugin>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public void tearDown() {
116116
@Test
117117
public void testDigestAs() throws IOException {
118118
final String expected = "d41d8cd98f00b204e9800998ecf8427e";
119-
final String pathname = "src/test/resources/empty.bin";
119+
final String pathname = "src/test/resources/org/apache/commons/codec/empty.bin";
120120
final String algo = MessageDigestAlgorithms.MD5;
121121
assertEquals(expected, new DigestUtils(algo).digestAsHex(new File(pathname)));
122122
try (final FileInputStream inputStream = new FileInputStream(pathname)) {
@@ -324,7 +324,7 @@ public void testSha1UpdateWithString(){
324324
public void testSha224_FileAsHex() throws IOException {
325325
assumeJava8();
326326
final String expected = "d14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f";
327-
final String pathname = "src/test/resources/empty.bin";
327+
final String pathname = "src/test/resources/org/apache/commons/codec/empty.bin";
328328
final String algo = MessageDigestAlgorithms.SHA_224;
329329
final DigestUtils digestUtils = new DigestUtils(algo);
330330
assertEquals(expected, digestUtils.digestAsHex(new File(pathname)));
@@ -340,7 +340,7 @@ public void testSha224_FileAsHex() throws IOException {
340340
public void testSha224_PathAsHex() throws IOException {
341341
assumeJava8();
342342
assertEquals("d14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f",
343-
new DigestUtils(MessageDigestAlgorithms.SHA_224).digestAsHex(Paths.get("src/test/resources/empty.bin")));
343+
new DigestUtils(MessageDigestAlgorithms.SHA_224).digestAsHex(Paths.get("src/test/resources/org/apache/commons/codec/empty.bin")));
344344
}
345345

346346
@Test

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ public static Collection<Object[]> factory() {
6262
return Arrays.asList(new Object[][] {
6363
// reference checksums created with xxh32sum
6464
// http://cyan4973.github.io/xxHash/
65-
{ "bla.tar", "fbb5c8d1" },
66-
{ "bla.tar.xz", "4106a208" },
67-
{ "small.bin", "f66c26f8" },
65+
{ "org/apache/commons/codec/bla.tar", "fbb5c8d1" },
66+
{ "org/apache/commons/codec/bla.tar.xz", "4106a208" },
67+
{ "org/apache/commons/codec/small.bin", "f66c26f8" },
6868
});
6969
}
7070

src/test/resources/bla.tar renamed to src/test/resources/org/apache/commons/codec/bla.tar

File renamed without changes.

src/test/resources/bla.tar.xz renamed to src/test/resources/org/apache/commons/codec/bla.tar.xz

File renamed without changes.

src/test/resources/empty.bin renamed to src/test/resources/org/apache/commons/codec/empty.bin

File renamed without changes.

src/test/resources/small.bin renamed to src/test/resources/org/apache/commons/codec/small.bin

File renamed without changes.

0 commit comments

Comments
 (0)