aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2017-11-22 15:57:10 +0200
committerAleksi Hietanen <aleksi@vaadin.com>2017-11-22 15:57:10 +0200
commite98bc8353c5751730a0e7f4ad9a1c1ebbf8a0fae (patch)
tree7101be8b6814ad6ea93338cf8c16434c9faee128
parent66f530355417e809b20cd452b449363fe6b0c060 (diff)
downloadvaadin-framework-e98bc8353c5751730a0e7f4ad9a1c1ebbf8a0fae.tar.gz
vaadin-framework-e98bc8353c5751730a0e7f4ad9a1c1ebbf8a0fae.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"));