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,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);
}
} }