1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.eclipse.aether.internal.impl.checksum;
20
21 import org.eclipse.aether.DefaultRepositorySystemSession;
22 import org.eclipse.aether.impl.RepositorySystemLifecycle;
23 import org.eclipse.aether.internal.impl.DefaultFileProcessor;
24 import org.eclipse.aether.internal.impl.DefaultLocalPathComposer;
25
26 public class SparseDirectoryTrustedChecksumsSourceTest extends FileTrustedChecksumsSourceTestSupport {
27 @Override
28 protected FileTrustedChecksumsSourceSupport prepareSubject(RepositorySystemLifecycle lifecycle) {
29 return new SparseDirectoryTrustedChecksumsSource(new DefaultFileProcessor(), new DefaultLocalPathComposer());
30 }
31
32 @Override
33 protected void enableSource(DefaultRepositorySystemSession session) {
34 session.setConfigProperty("aether.trustedChecksumsSource.sparseDirectory", Boolean.TRUE.toString());
35 }
36 }