diff options
author | Sun Zhe <31067185+ZheSun88@users.noreply.github.com> | 2019-05-02 15:13:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-02 15:13:17 +0300 |
commit | 13f1c168d2bffcb66410276dda039d4cf79d5f9c (patch) | |
tree | b5e02ff60d3f1033d00abcdccbb3f49dd0e55825 /uitest | |
parent | 5fa144193c0d5ed2022e576431a20beead2bfeb8 (diff) | |
download | vaadin-framework-13f1c168d2bffcb66410276dda039d4cf79d5f9c.tar.gz vaadin-framework-13f1c168d2bffcb66410276dda039d4cf79d5f9c.zip |
code format (#11555)
Diffstat (limited to 'uitest')
6 files changed, 14 insertions, 12 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/components/combobox/ComboBoxVaadinIcons.java b/uitest/src/main/java/com/vaadin/tests/components/combobox/ComboBoxVaadinIcons.java index 8c1abd37fd..70f37e1f70 100644 --- a/uitest/src/main/java/com/vaadin/tests/components/combobox/ComboBoxVaadinIcons.java +++ b/uitest/src/main/java/com/vaadin/tests/components/combobox/ComboBoxVaadinIcons.java @@ -24,7 +24,8 @@ public class ComboBoxVaadinIcons extends AbstractTestUI { Label valueLabel = new Label(); valueLabel.setValue("Test"); valueLabel.setId("value-label"); - comboBox.addValueChangeListener(event -> valueLabel.setValue(comboBox.getValue())); + comboBox.addValueChangeListener( + event -> valueLabel.setValue(comboBox.getValue())); addComponent(comboBox); addComponent(valueLabel); } diff --git a/uitest/src/test/java/com/vaadin/tests/components/combobox/ComboBoxAddNewItemAndResetProviderAtSameRoundTest.java b/uitest/src/test/java/com/vaadin/tests/components/combobox/ComboBoxAddNewItemAndResetProviderAtSameRoundTest.java index a1a7a1f685..d00fe4c51d 100644 --- a/uitest/src/test/java/com/vaadin/tests/components/combobox/ComboBoxAddNewItemAndResetProviderAtSameRoundTest.java +++ b/uitest/src/test/java/com/vaadin/tests/components/combobox/ComboBoxAddNewItemAndResetProviderAtSameRoundTest.java @@ -108,8 +108,8 @@ public class ComboBoxAddNewItemAndResetProviderAtSameRoundTest private void assertLogMessage() { sleep(2000); - //current test is not stable for collecting all the logs, - //so that we need to do the assertion with full log and contents. + // current test is not stable for collecting all the logs, + // so that we need to do the assertion with full log and contents. assertTrue("The full log should contain the following text", getLogs().toString().contains("ComboBox value : 000")); assertTrue("The full log should contain the following text", diff --git a/uitest/src/test/java/com/vaadin/tests/components/combobox/ComboBoxVaadinIconsTest.java b/uitest/src/test/java/com/vaadin/tests/components/combobox/ComboBoxVaadinIconsTest.java index 7fe2e81543..97a9455d63 100644 --- a/uitest/src/test/java/com/vaadin/tests/components/combobox/ComboBoxVaadinIconsTest.java +++ b/uitest/src/test/java/com/vaadin/tests/components/combobox/ComboBoxVaadinIconsTest.java @@ -25,6 +25,5 @@ public class ComboBoxVaadinIconsTest extends MultiBrowserTest { Assert.assertEquals(findElement(By.id("value-label")).getText(), "PAPERPLANE"); - } } diff --git a/uitest/src/test/java/com/vaadin/tests/fieldgroup/BasicCrudGridEditorRowTest.java b/uitest/src/test/java/com/vaadin/tests/fieldgroup/BasicCrudGridEditorRowTest.java index 4401abc3fa..103aa469f5 100644 --- a/uitest/src/test/java/com/vaadin/tests/fieldgroup/BasicCrudGridEditorRowTest.java +++ b/uitest/src/test/java/com/vaadin/tests/fieldgroup/BasicCrudGridEditorRowTest.java @@ -36,7 +36,7 @@ public class BasicCrudGridEditorRowTest extends MultiBrowserTest { public void lookAndFeel() throws Exception { GridCellElement ritaBirthdate = grid.getCell(2, 3); waitUntilLoadingIndicatorNotVisible(); - assertEquals("May 16, 1992",ritaBirthdate.getText()); + assertEquals("May 16, 1992", ritaBirthdate.getText()); // Grid Editor should not present yet waitForElementNotPresent(By.className("v-grid-editor")); @@ -84,7 +84,7 @@ public class BasicCrudGridEditorRowTest extends MultiBrowserTest { assertNotEquals("Checkbox value did not change", value, cb.getValue()); } - @Test + @Test public void testNoTopStyleSetOnEditorOpenWithFooterOnTop() { GridCellElement cell = grid.getCell(2, 3); // Open editor row diff --git a/uitest/src/test/java/com/vaadin/tests/themes/valo/GridDisabledTest.java b/uitest/src/test/java/com/vaadin/tests/themes/valo/GridDisabledTest.java index 1cf847fee6..032a6c5572 100644 --- a/uitest/src/test/java/com/vaadin/tests/themes/valo/GridDisabledTest.java +++ b/uitest/src/test/java/com/vaadin/tests/themes/valo/GridDisabledTest.java @@ -19,9 +19,11 @@ public class GridDisabledTest extends MultiBrowserTest { waitUntilLoadingIndicatorNotVisible(); GridElement disabledGrid = $(GridElement.class).id("disabled-grid"); - assertFalse(disabledGrid.getClassNames().toString().contains("v-disabled")); + assertFalse( + disabledGrid.getClassNames().toString().contains("v-disabled")); $(ButtonElement.class).caption("Disable").first().click(); - assertTrue(disabledGrid.getClassNames().toString().contains("v-disabled")); + assertTrue( + disabledGrid.getClassNames().toString().contains("v-disabled")); } } diff --git a/uitest/src/test/java/com/vaadin/tests/themes/valo/ValoThemeUITest.java b/uitest/src/test/java/com/vaadin/tests/themes/valo/ValoThemeUITest.java index de11c22d82..c0350bbc15 100644 --- a/uitest/src/test/java/com/vaadin/tests/themes/valo/ValoThemeUITest.java +++ b/uitest/src/test/java/com/vaadin/tests/themes/valo/ValoThemeUITest.java @@ -217,13 +217,13 @@ public class ValoThemeUITest extends MultiBrowserTest { public void accordions() throws Exception { open("Accordions"); - // Screenshot test is very unstable here. - // We are testing the label contains the correct text in this case. + // Screenshot test is very unstable here. + // We are testing the label contains the correct text in this case. CssLayoutElement content = wrap(CssLayoutElement.class, findElement(By.className("valo-content"))); LabelElement labelElem = content.$(LabelElement.class).get(1); - String text = "Fabio vel iudice vincam, sunt in culpa qui officia. Ut " + - "enim ad minim veniam, quis nostrud exercitation."; + String text = "Fabio vel iudice vincam, sunt in culpa qui officia. Ut " + + "enim ad minim veniam, quis nostrud exercitation."; Assert.assertEquals(text, labelElem.getText()); } |