Search in sources :

Example 1 with MemTempSinkImpl

use of com.adobe.acs.commons.httpcache.store.mem.impl.MemTempSinkImpl in project acs-aem-commons by Adobe-Consulting-Services.

the class JCRHttpCacheStoreMocks method generateCacheContent.

private void generateCacheContent() {
    when(cacheContent.getCharEncoding()).thenReturn(arguments.cacheContentCharEncoding);
    when(cacheContent.getContentType()).thenReturn(arguments.cacheContentType);
    when(cacheContent.getInputDataStream()).thenReturn(arguments.contents);
    when(cacheContent.getStatus()).thenReturn(arguments.cacheContentStatus);
    when(cacheContent.getHeaders()).thenReturn(arguments.headers);
    when(cacheContent.getTempSink()).thenReturn(new MemTempSinkImpl());
}
Also used : MemTempSinkImpl(com.adobe.acs.commons.httpcache.store.mem.impl.MemTempSinkImpl)

Example 2 with MemTempSinkImpl

use of com.adobe.acs.commons.httpcache.store.mem.impl.MemTempSinkImpl in project acs-aem-commons by Adobe-Consulting-Services.

the class EntryNodeWriterMocks method mockCacheContent.

private void mockCacheContent() {
    cacheContent = mock(CacheContent.class);
    when(cacheContent.getCharEncoding()).thenReturn(arguments.cacheContentCharEncoding);
    when(cacheContent.getContentType()).thenReturn(arguments.cacheContentType);
    when(cacheContent.getInputDataStream()).thenReturn(arguments.cacheContent);
    when(cacheContent.getStatus()).thenReturn(arguments.status);
    when(cacheContent.getHeaders()).thenReturn(arguments.cacheContentHeaders);
    when(cacheContent.getTempSink()).thenReturn(new MemTempSinkImpl());
}
Also used : MemTempSinkImpl(com.adobe.acs.commons.httpcache.store.mem.impl.MemTempSinkImpl) CacheContent(com.adobe.acs.commons.httpcache.engine.CacheContent)

Aggregations

MemTempSinkImpl (com.adobe.acs.commons.httpcache.store.mem.impl.MemTempSinkImpl)2 CacheContent (com.adobe.acs.commons.httpcache.engine.CacheContent)1