diff options
Diffstat (limited to 'test/spring-boot/src')
-rw-r--r-- | test/spring-boot/src/test/java/com/example/VaadinSpringBootSmokeIT.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/spring-boot/src/test/java/com/example/VaadinSpringBootSmokeIT.java b/test/spring-boot/src/test/java/com/example/VaadinSpringBootSmokeIT.java index 76fc8790e2..d0e3b4c4ae 100644 --- a/test/spring-boot/src/test/java/com/example/VaadinSpringBootSmokeIT.java +++ b/test/spring-boot/src/test/java/com/example/VaadinSpringBootSmokeIT.java @@ -1,6 +1,8 @@ package com.example; -import org.junit.Assert; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; + import org.junit.Before; import org.junit.Rule; import org.junit.Test; @@ -43,8 +45,8 @@ public class VaadinSpringBootSmokeIT extends TestBenchTestCase { public void testPageLoadsAndButtonWorks() { getDriver().navigate().to("http://localhost:" + port + ""); $(ButtonElement.class).first().click(); - Assert.assertTrue($(NotificationElement.class).exists()); - Assert.assertEquals(ThankYouService.THANK_YOU_TEXT, + assertTrue($(NotificationElement.class).exists()); + assertEquals(ThankYouService.THANK_YOU_TEXT, $(NotificationElement.class).first().getText()); } } |