fix formatting
This commit is contained in:
parent
660f24b777
commit
d3b351e27f
|
@ -8,28 +8,33 @@ import java.util.concurrent.ConcurrentMap;
|
||||||
import static org.junit.Assert.assertNotNull;
|
import static org.junit.Assert.assertNotNull;
|
||||||
|
|
||||||
public class GuavaMapMakerUnitTest {
|
public class GuavaMapMakerUnitTest {
|
||||||
@Test public void whenMakeMap_thenCreated() {
|
@Test
|
||||||
ConcurrentMap<String, String> concurrentMap = new MapMaker().makeMap();
|
public void whenMakeMap_thenCreated() {
|
||||||
assertNotNull(concurrentMap);
|
ConcurrentMap<String, String> concurrentMap = new MapMaker().makeMap();
|
||||||
}
|
assertNotNull(concurrentMap);
|
||||||
|
}
|
||||||
|
|
||||||
@Test public void whenMakeMapWithWeakKeys_thenCreated() {
|
@Test
|
||||||
ConcurrentMap<String, String> concurrentMap = new MapMaker().weakKeys().makeMap();
|
public void whenMakeMapWithWeakKeys_thenCreated() {
|
||||||
assertNotNull(concurrentMap);
|
ConcurrentMap<String, String> concurrentMap = new MapMaker().weakKeys().makeMap();
|
||||||
}
|
assertNotNull(concurrentMap);
|
||||||
|
}
|
||||||
|
|
||||||
@Test public void whenMakeMapWithWeakValues_thenCreated() {
|
@Test
|
||||||
ConcurrentMap<String, String> concurrentMap = new MapMaker().weakValues().makeMap();
|
public void whenMakeMapWithWeakValues_thenCreated() {
|
||||||
assertNotNull(concurrentMap);
|
ConcurrentMap<String, String> concurrentMap = new MapMaker().weakValues().makeMap();
|
||||||
}
|
assertNotNull(concurrentMap);
|
||||||
|
}
|
||||||
|
|
||||||
@Test public void whenMakeMapWithInitialCapacity_thenCreated() {
|
@Test
|
||||||
ConcurrentMap<String, String> concurrentMap = new MapMaker().initialCapacity(10).makeMap();
|
public void whenMakeMapWithInitialCapacity_thenCreated() {
|
||||||
assertNotNull(concurrentMap);
|
ConcurrentMap<String, String> concurrentMap = new MapMaker().initialCapacity(10).makeMap();
|
||||||
}
|
assertNotNull(concurrentMap);
|
||||||
|
}
|
||||||
|
|
||||||
@Test public void whenMakeMapWithConcurrencyLevel_thenCreated() {
|
@Test
|
||||||
ConcurrentMap<String, String> concurrentMap = new MapMaker().concurrencyLevel(10).makeMap();
|
public void whenMakeMapWithConcurrencyLevel_thenCreated() {
|
||||||
assertNotNull(concurrentMap);
|
ConcurrentMap<String, String> concurrentMap = new MapMaker().concurrencyLevel(10).makeMap();
|
||||||
}
|
assertNotNull(concurrentMap);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue