diff --git a/flow-server/src/main/java/com/vaadin/flow/component/Svg.java b/flow-server/src/main/java/com/vaadin/flow/component/Svg.java index febdbc94149..6c05a68499d 100644 --- a/flow-server/src/main/java/com/vaadin/flow/component/Svg.java +++ b/flow-server/src/main/java/com/vaadin/flow/component/Svg.java @@ -53,8 +53,8 @@ public Svg(InputStream stream) { } /** - * Creates an instance based on the given SVG string. The string must - * have exactly one root element. + * Creates an instance based on the given SVG string. The string must have + * exactly one root element. * * @param svg * the SVG to display diff --git a/flow-server/src/test/java/com/vaadin/flow/component/SvgTest.java b/flow-server/src/test/java/com/vaadin/flow/component/SvgTest.java index 5360a4fd9fe..3c57455c640 100644 --- a/flow-server/src/test/java/com/vaadin/flow/component/SvgTest.java +++ b/flow-server/src/test/java/com/vaadin/flow/component/SvgTest.java @@ -30,7 +30,6 @@ public void attachedToElement() { new Svg("").getParent(); } - @Test(expected = IllegalArgumentException.class) public void nullStream() { new Svg((InputStream) null); @@ -68,8 +67,7 @@ public void text() { @Test public void simpleSvg() { Svg svg = new Svg(TRIVIAL_SVG); - Assert.assertEquals(TRIVIAL_SVG, - getSvgDocumentBody(svg)); + Assert.assertEquals(TRIVIAL_SVG, getSvgDocumentBody(svg)); } @Test @@ -81,18 +79,15 @@ public void withDocType() { @Test public void resetSvg() { Svg svg = new Svg(TRIVIAL_SVG); - Assert.assertEquals(TRIVIAL_SVG, - getSvgDocumentBody(svg)); + Assert.assertEquals(TRIVIAL_SVG, getSvgDocumentBody(svg)); svg.setSvg(TRIVIAL_SVG2); - Assert.assertEquals(TRIVIAL_SVG2, - getSvgDocumentBody(svg)); + Assert.assertEquals(TRIVIAL_SVG2, getSvgDocumentBody(svg)); } @Test public void fromStream() { Svg svg = new Svg(new ByteArrayInputStream(TRIVIAL_SVG.getBytes())); - Assert.assertEquals(TRIVIAL_SVG, - getSvgDocumentBody(svg)); + Assert.assertEquals(TRIVIAL_SVG, getSvgDocumentBody(svg)); } private static String getSvgDocumentBody(Svg svg) {