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());
}
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());
}
Aggregations