BAEL-5351: Unit Tests name as per BBD convention

This commit is contained in:
Mayank Agarwal 2022-02-08 00:40:07 +05:30
parent 54f43a311a
commit b35d0ea7c4
1 changed files with 4 additions and 3 deletions

View File

@ -15,13 +15,14 @@ public class EmptyMapInitializerUnitTest {
}
@Test
public void checkStaticMap_isEmpty() {
public void givenEmptyMap_whenChecked_returnsTrue() {
assertTrue(EmptyMapInitializer.articleMap.isEmpty());
}
@Test
public void emptyMapCreated_usingGuava() {
Map<String, String> emptyMapUsingGuava = EmptyMapInitializer.createMapUsingGuava();
public void givenEmptyMap_whenCreatedUsingGuava_returnsEmptyOrNot() {
Map<String, String> emptyMapUsingGuava =
EmptyMapInitializer.createMapUsingGuava();
assertTrue(emptyMapUsingGuava.isEmpty());
emptyMapUsingGuava.put("key", "value");
assertFalse(emptyMapUsingGuava.isEmpty());