diff --git a/cwms-data-api/src/test/java/cwms/cda/formatters/ContentTypeTest.java b/cwms-data-api/src/test/java/cwms/cda/formatters/ContentTypeTest.java index 3b42193bf..136be708a 100644 --- a/cwms-data-api/src/test/java/cwms/cda/formatters/ContentTypeTest.java +++ b/cwms-data-api/src/test/java/cwms/cda/formatters/ContentTypeTest.java @@ -14,7 +14,7 @@ void test_ctor() { ContentType ct = new ContentType("application/json"); assertEquals("application/json", ct.getType()); Map parameters = ct.getParameters(); - assertTrue(parameters==null || parameters.isEmpty()); + assertTrue(parameters == null || parameters.isEmpty()); } @Test @@ -28,7 +28,7 @@ void test_ctor_null() { void test_ctor_empty() { ContentType ct = new ContentType(""); Map parameters = ct.getParameters(); - assertTrue(parameters==null || parameters.isEmpty()); + assertTrue(parameters == null || parameters.isEmpty()); assertNull(ct.getCharset()); } @@ -36,26 +36,26 @@ void test_ctor_empty() { void test_ctor_garbage() { ContentType ct = new ContentType("qawicxqyjx"); Map parameters = ct.getParameters(); - assertTrue(parameters==null || parameters.isEmpty()); + assertTrue(parameters == null || parameters.isEmpty()); assertNull(ct.getCharset()); } @Test - void test_ctor_w_charset(){ + void test_ctor_w_charset() { ContentType ct = new ContentType("application/json;charset=UTF-8"); assertEquals("application/json", ct.getType()); Map parameters = ct.getParameters(); - assertTrue(parameters==null || parameters.isEmpty()); + assertTrue(parameters == null || parameters.isEmpty()); assertEquals("UTF-8", ct.getCharset()); } @Test - void test_ctor_w_charset_space(){ + void test_ctor_w_charset_space() { ContentType ct = new ContentType("application/json; charset=UTF-8"); assertEquals("application/json", ct.getType()); Map parameters = ct.getParameters(); - assertTrue(parameters==null || parameters.isEmpty()); + assertTrue(parameters == null || parameters.isEmpty()); assertEquals("UTF-8", ct.getCharset()); } @@ -63,9 +63,9 @@ void test_ctor_w_charset_space(){ @ParameterizedTest @CsvSource(value = { - "application/json;charset=utf-8|application/json;", - "application/json;version=2,charset=utf-8|application/json;version=2" - },delimiter='|') + "application/json;charset=utf-8|application/json;", + "application/json;version=2,charset=utf-8|application/json;version=2" + }, delimiter = '|') void test_equals_and_equivalent(String a, String b) { ContentType aCt = new ContentType(a); ContentType bCt = new ContentType(b);