diff options
author | j-james | 2022-10-18 22:11:26 +0000 |
---|---|---|
committer | j-james | 2022-10-18 22:11:26 +0000 |
commit | cea4d2b83f68ed2223ab1b07061dd7a7b709d2af (patch) | |
tree | 46773207e04805804fd05d6f5052e03ae4dd0f0e /src/test/model | |
parent | b1ed66fc3446de90256b34e38e4a7307a94be65c (diff) |
Replace Java 11 features with equivalent Java 8 ones
Diffstat (limited to 'src/test/model')
-rw-r--r-- | src/test/model/css/CssParserTest.java | 2 | ||||
-rw-r--r-- | src/test/model/html/HtmlParserTest.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/model/css/CssParserTest.java b/src/test/model/css/CssParserTest.java index a2335f2..42cdd9f 100644 --- a/src/test/model/css/CssParserTest.java +++ b/src/test/model/css/CssParserTest.java @@ -12,7 +12,7 @@ public class CssParserTest { @Test void testIdiomaticCss() { - var idiomaticCss = "body { background-color: '#\\'f0f0f2'; margin: 0; padding: 0; font-family: -apple-system, system-ui, BlinkMacSystemFont, \"Segoe\\\" UI\", 'Open\\' Sans', \"Helvetica Neue\", Helvetica, Arial, sans-serif;}div { width: 600px; margin: 5em auto; padding: 2em; background-color: #fdfdff; border-radius: 0.5em; box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02);}a:link, a:visited { color: #38488f; text-decoration: none;}@media (max - width : 700px) { @media () {div { margin: 0 auto; width: auto }}}"; + String idiomaticCss = "body { background-color: '#\\'f0f0f2'; margin: 0; padding: 0; font-family: -apple-system, system-ui, BlinkMacSystemFont, \"Segoe\\\" UI\", 'Open\\' Sans', \"Helvetica Neue\", Helvetica, Arial, sans-serif;}div { width: 600px; margin: 5em auto; padding: 2em; background-color: #fdfdff; border-radius: 0.5em; box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02);}a:link, a:visited { color: #38488f; text-decoration: none;}@media (max - width : 700px) { @media () {div { margin: 0 auto; width: auto }}}"; ArrayList<Pair<String, ArrayList<Pair<String, String>>>> expected = new ArrayList<>(); ArrayList<Pair<String, String>> body = new ArrayList<>(); diff --git a/src/test/model/html/HtmlParserTest.java b/src/test/model/html/HtmlParserTest.java index a7093e1..8268abf 100644 --- a/src/test/model/html/HtmlParserTest.java +++ b/src/test/model/html/HtmlParserTest.java @@ -79,7 +79,7 @@ public class HtmlParserTest { expectedAttributes.add(new Pair<>("up", "do'wn")); HtmlParser parser = new HtmlParser(); - var parsed = parser.parseHtml(attributesHtml); + ArrayList<Node> parsed = parser.parseHtml(attributesHtml); displayHtmlTree(parsed); assertEqualsHtml(parsed, expected); } |