List of usage examples for com.squareup.okhttp Cache getMaxSize
public long getMaxSize()
From source file:com.raskasa.oksolr.SolrClientTest.java
License:Apache License
@Test public void testInstallCache() throws Exception { SolrClient client = new SolrClient(); client.installCache();// w w w . jav a 2s . c om Cache cache = client.getCache(); assertThat(cache.getMaxSize()).isEqualTo(50 * 1024 * 1024); // 50 MiB assertThat(cache.getDirectory().toString()) .isEqualTo(System.getProperty("user.home") + File.separator + "oksolr" + File.separator + "http"); }