Skip to content

Commit

Permalink
✅ Remove static imports
Browse files Browse the repository at this point in the history
  • Loading branch information
allan-on committed Sep 15, 2020
1 parent 329d3c5 commit e779d52
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@

import static com.vijay.jsonwizard.utils.Utils.formatDateToPattern;
import static com.vijay.jsonwizard.utils.Utils.isEmptyJsonArray;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

public class UtilsTest extends BaseTest {

Expand Down Expand Up @@ -373,15 +370,15 @@ public void testFormatDateToPattern() {
String inputFormat = "dd/MM/yyyy";
String outputFormat = "dd MMM yyyy";
String formattedDate = formatDateToPattern(date, inputFormat, outputFormat);
assertEquals("05 May 2022", formattedDate);
Assert.assertEquals("05 May 2022", formattedDate);
}

@Test
public void testIsEmptyJsonArrayShouldReturnCorrectStatus() {
assertTrue(isEmptyJsonArray(null));
Assert.assertTrue(isEmptyJsonArray(null));
JSONArray jsonArray = new JSONArray();
assertTrue(isEmptyJsonArray(jsonArray));
Assert.assertTrue(isEmptyJsonArray(jsonArray));
jsonArray.put("value");
assertFalse(isEmptyJsonArray(jsonArray));
Assert.assertFalse(isEmptyJsonArray(jsonArray));
}
}

0 comments on commit e779d52

Please sign in to comment.