fix formatting

This commit is contained in:
ramkumarvenkat 2020-03-16 08:30:23 +05:30
parent 660f24b777
commit d3b351e27f
1 changed files with 25 additions and 20 deletions

View File

@ -8,27 +8,32 @@ import java.util.concurrent.ConcurrentMap;
import static org.junit.Assert.assertNotNull;
public class GuavaMapMakerUnitTest {
@Test public void whenMakeMap_thenCreated() {
@Test
public void whenMakeMap_thenCreated() {
ConcurrentMap<String, String> concurrentMap = new MapMaker().makeMap();
assertNotNull(concurrentMap);
}
@Test public void whenMakeMapWithWeakKeys_thenCreated() {
@Test
public void whenMakeMapWithWeakKeys_thenCreated() {
ConcurrentMap<String, String> concurrentMap = new MapMaker().weakKeys().makeMap();
assertNotNull(concurrentMap);
}
@Test public void whenMakeMapWithWeakValues_thenCreated() {
@Test
public void whenMakeMapWithWeakValues_thenCreated() {
ConcurrentMap<String, String> concurrentMap = new MapMaker().weakValues().makeMap();
assertNotNull(concurrentMap);
}
@Test public void whenMakeMapWithInitialCapacity_thenCreated() {
@Test
public void whenMakeMapWithInitialCapacity_thenCreated() {
ConcurrentMap<String, String> concurrentMap = new MapMaker().initialCapacity(10).makeMap();
assertNotNull(concurrentMap);
}
@Test public void whenMakeMapWithConcurrencyLevel_thenCreated() {
@Test
public void whenMakeMapWithConcurrencyLevel_thenCreated() {
ConcurrentMap<String, String> concurrentMap = new MapMaker().concurrencyLevel(10).makeMap();
assertNotNull(concurrentMap);
}