aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2017-11-22 15:57:10 +0200
committerTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2017-11-24 11:46:58 +0200
commita3d39c98bba1d7c099b8ade6c68af2e236a95bdd (patch)
tree9e42b4f53149db16e3e3a9a10f13510b58076101
parente4d3a51263c068e1c533d896e1ca12b1d17523ae (diff)
downloadvaadin-framework-a3d39c98bba1d7c099b8ade6c68af2e236a95bdd.tar.gz
vaadin-framework-a3d39c98bba1d7c099b8ade6c68af2e236a95bdd.zip
Fix RadioButtonGroupTest imports (#10354)
-rw-r--r--uitest/src/test/java/com/vaadin/tests/components/radiobuttongroup/RadioButtonGroupTest.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/uitest/src/test/java/com/vaadin/tests/components/radiobuttongroup/RadioButtonGroupTest.java b/uitest/src/test/java/com/vaadin/tests/components/radiobuttongroup/RadioButtonGroupTest.java
index 0fa7c3f265..96fc66fd1d 100644
--- a/uitest/src/test/java/com/vaadin/tests/components/radiobuttongroup/RadioButtonGroupTest.java
+++ b/uitest/src/test/java/com/vaadin/tests/components/radiobuttongroup/RadioButtonGroupTest.java
@@ -125,7 +125,7 @@ public class RadioButtonGroupTest extends MultiBrowserTest {
selectMenuPath("Component", "State", "Enabled");
List<WebElement> options = getSelect().findElements(By.tagName("span"));
- Assert.assertTrue(options.size() > 0);
+ assertTrue(options.size() > 0);
options.stream().map(element -> element.getAttribute("className"))
.forEach(className -> verifyRadioButtonDisabledClassNames(
className, true));
@@ -133,7 +133,7 @@ public class RadioButtonGroupTest extends MultiBrowserTest {
selectMenuPath("Component", "State", "Enabled");
options = getSelect().findElements(By.tagName("span"));
- Assert.assertTrue(options.size() > 0);
+ assertTrue(options.size() > 0);
options.stream().map(element -> element.getAttribute("className"))
.forEach(className -> verifyRadioButtonDisabledClassNames(
className, false));
@@ -145,7 +145,7 @@ public class RadioButtonGroupTest extends MultiBrowserTest {
List<WebElement> options = getSelect().findElements(By.tagName("span"));
- Assert.assertTrue(options.size() > 0);
+ assertTrue(options.size() > 0);
options.stream().map(element -> element.getAttribute("className"))
.forEach(cs -> verifyRadioButtonDisabledClassNames(cs, false));
@@ -171,7 +171,7 @@ public class RadioButtonGroupTest extends MultiBrowserTest {
options = getSelect().findElements(By.tagName("span"));
- Assert.assertTrue(options.size() > 0);
+ assertTrue(options.size() > 0);
options.stream().map(element -> element.getAttribute("className"))
.forEach(cs -> verifyRadioButtonDisabledClassNames(cs, true));
@@ -180,7 +180,7 @@ public class RadioButtonGroupTest extends MultiBrowserTest {
options = getSelect().findElements(By.tagName("span"));
- Assert.assertTrue(options.size() > 0);
+ assertTrue(options.size() > 0);
options.stream().map(element -> element.getAttribute("className"))
.forEach(cs -> verifyRadioButtonDisabledClassNames(cs, true));
@@ -189,7 +189,7 @@ public class RadioButtonGroupTest extends MultiBrowserTest {
options = getSelect().findElements(By.tagName("span"));
className = options.remove(5).getAttribute("className");
- Assert.assertTrue(options.size() > 0);
+ assertTrue(options.size() > 0);
options.stream().map(element -> element.getAttribute("className"))
.forEach(cs -> verifyRadioButtonDisabledClassNames(cs, false));
verifyRadioButtonDisabledClassNames(className, true);
@@ -330,12 +330,12 @@ public class RadioButtonGroupTest extends MultiBrowserTest {
private static void verifyRadioButtonDisabledClassNames(String className,
boolean disabled) {
- Assert.assertEquals(
+ assertEquals(
disabled ? "No"
: "Extra" + " v-radiobutton-disabled class, was "
+ className,
disabled, className.contains("v-radiobutton-disabled"));
- Assert.assertEquals(
+ assertEquals(
disabled ? "No"
: "Extra" + " v-disabled class, was " + className,
disabled, className.contains("v-disabled"));