use of org.commonjava.maven.galley.testing.core.transport.TestTransport in project galley by Commonjava.
the class GalleyMavenFixture method initTestTransport.
public void initTestTransport() {
testTransport = new TestTransport();
mavenBuilder.withAdditionalTransport(testTransport);
}
use of org.commonjava.maven.galley.testing.core.transport.TestTransport in project galley by Commonjava.
the class TransferManagerImplTest method setup.
@Before
public void setup() {
transport = new TestTransport();
transportMgr = new TransportManagerImpl(transport);
cacheProvider = new FileCacheProvider(temp.newFolder("cache"), new HashedLocationPathGenerator(), new NoOpFileEventManager(), new NoOpTransferDecorator(), true);
nfc = new MemoryNotFoundCache();
fileEvents = new NoOpFileEventManager();
executor = Executors.newSingleThreadExecutor();
TransportManagerConfig transportManagerConfig = new TransportManagerConfig();
final DownloadHandler dh = new DownloadHandler(nfc, transportManagerConfig, executor);
final UploadHandler uh = new UploadHandler(nfc, transportManagerConfig, executor);
final ListingHandler lh = new ListingHandler(nfc);
final ExistenceHandler eh = new ExistenceHandler(nfc);
mgr = new TransferManagerImpl(transportMgr, cacheProvider, nfc, fileEvents, dh, uh, lh, eh, new SpecialPathManagerImpl(), Executors.newFixedThreadPool(2));
}
use of org.commonjava.maven.galley.testing.core.transport.TestTransport in project galley by Commonjava.
the class CoreFixture method initTestTransport.
public void initTestTransport() {
System.out.println("Initializing test transport directly");
testTransport = new TestTransport();
coreBuilder.withAdditionalTransport(testTransport);
}
Aggregations