Skip to content

Commit

Permalink
LPS-93663 Stronger asserts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Preston-Crary authored and shuyangzhou committed Apr 23, 2019
1 parent e8f2cdf commit 13d7fdf
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -47,7 +47,7 @@ public void testExportImportBlankString() throws Exception {
Dictionary<String, Object> dictionary = _exportImportProperties(
_dictionary);

Assert.assertEquals(blankStringValue, dictionary.get(blankStringKey));
Assert.assertEquals(_dictionary, dictionary);
}

@Test
Expand All @@ -59,7 +59,7 @@ public void testExportImportBoolean() throws Exception {
Dictionary<String, Object> dictionary = _exportImportProperties(
_dictionary);

Assert.assertTrue((boolean)dictionary.get(booleanKey));
Assert.assertEquals(_dictionary, dictionary);
}

@Test
Expand All @@ -72,7 +72,7 @@ public void testExportImportString() throws Exception {
Dictionary<String, Object> dictionary = _exportImportProperties(
_dictionary);

Assert.assertEquals(stringValue, dictionary.get(stringKey));
Assert.assertEquals(_dictionary, dictionary);
}

@Test
Expand All @@ -85,6 +85,7 @@ public void testExportImportStringArray() throws Exception {
Dictionary<String, Object> dictionary = _exportImportProperties(
_dictionary);

Assert.assertEquals(dictionary.toString(), 1, dictionary.size());
Assert.assertArrayEquals(
arrayValues, (String[])dictionary.get(arrayKey));
}
Expand Down

0 comments on commit 13d7fdf

Please sign in to comment.