@@ -102,16 +102,14 @@ public class FocusUtil { | |||
return focusableChildren; | |||
}-*/; | |||
public static void focusOnFirstFocusableElement(Element parent) | |||
{ | |||
public static void focusOnFirstFocusableElement(Element parent) { | |||
Element[] focusableChildren = getFocusableChildren(parent); | |||
if (focusableChildren.length > 0) { | |||
focusableChildren[0].focus(); | |||
} | |||
} | |||
public static void focusOnLastFocusableElement(Element parent) | |||
{ | |||
public static void focusOnLastFocusableElement(Element parent) { | |||
Element[] focusableChildren = getFocusableChildren(parent); | |||
if (focusableChildren.length > 0) { | |||
focusableChildren[focusableChildren.length - 1].focus(); |
@@ -4,7 +4,6 @@ import static org.junit.Assert.assertEquals; | |||
import static org.junit.Assert.assertFalse; | |||
import static org.junit.Assert.assertTrue; | |||
import org.junit.Assert; | |||
import org.junit.Test; | |||
import com.vaadin.shared.VBrowserDetails; |
@@ -10,8 +10,6 @@ import java.util.ArrayList; | |||
import java.util.Iterator; | |||
import java.util.List; | |||
import org.junit.Assert; | |||
import com.vaadin.v7.data.Container; | |||
import com.vaadin.v7.data.Container.Filterable; | |||
import com.vaadin.v7.data.Container.ItemSetChangeEvent; |
@@ -13,7 +13,6 @@ import java.util.List; | |||
import java.util.Map; | |||
import java.util.Map.Entry; | |||
import org.junit.Assert; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
@@ -9,7 +9,6 @@ import java.util.List; | |||
import org.easymock.Capture; | |||
import org.easymock.EasyMock; | |||
import org.junit.Assert; | |||
import org.junit.Test; | |||
import com.vaadin.v7.data.Container; |
@@ -8,7 +8,6 @@ import java.util.List; | |||
import org.easymock.Capture; | |||
import org.easymock.EasyMock; | |||
import org.junit.Assert; | |||
import org.junit.Test; | |||
import com.vaadin.v7.data.Container.Indexed.ItemAddEvent; |
@@ -24,7 +24,6 @@ import java.util.GregorianCalendar; | |||
import java.util.Locale; | |||
import java.util.TimeZone; | |||
import org.junit.Assert; | |||
import org.junit.Test; | |||
import com.vaadin.v7.ui.Calendar; |
@@ -21,7 +21,6 @@ import static org.junit.Assert.assertTrue; | |||
import java.util.Collection; | |||
import org.junit.Assert; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
@@ -17,7 +17,6 @@ package com.vaadin.v7.tests.server.component.grid.declarative; | |||
import org.jsoup.nodes.Element; | |||
import org.jsoup.parser.Tag; | |||
import org.junit.Assert; | |||
import org.junit.Test; | |||
import com.vaadin.shared.ui.ContentMode; |
@@ -15,7 +15,6 @@ | |||
*/ | |||
package com.vaadin.v7.tests.server.component.grid.declarative; | |||
import org.junit.Assert; | |||
import org.junit.Test; | |||
import com.vaadin.v7.data.Container; |
@@ -15,7 +15,6 @@ | |||
*/ | |||
package com.vaadin.v7.tests.server.component.table; | |||
import org.junit.Assert; | |||
import org.junit.Test; | |||
import com.vaadin.server.ExternalResource; |
@@ -19,7 +19,6 @@ import java.io.IOException; | |||
import org.jsoup.nodes.Element; | |||
import org.jsoup.parser.Tag; | |||
import org.junit.Assert; | |||
import org.junit.Test; | |||
import com.vaadin.tests.design.DeclarativeTestBase; |
@@ -8,7 +8,6 @@ import static org.junit.Assert.assertTrue; | |||
import java.lang.reflect.Field; | |||
import java.util.HashSet; | |||
import org.junit.Assert; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
@@ -430,7 +430,7 @@ public class FileUploadHandler implements RequestHandler { | |||
try { | |||
return Long.parseLong(request.getHeader("Content-Length")); | |||
} catch (NumberFormatException e) { | |||
return -1l; | |||
return -1; | |||
} | |||
} | |||
@@ -27,7 +27,6 @@ import org.jsoup.nodes.Attributes; | |||
import org.jsoup.nodes.Element; | |||
import org.jsoup.select.Elements; | |||
import com.vaadin.data.BeanPropertySet; | |||
import com.vaadin.data.HasHierarchicalDataProvider; | |||
import com.vaadin.data.HasValue; | |||
import com.vaadin.data.PropertyDefinition; |
@@ -1,5 +1,11 @@ | |||
package com.vaadin.tests.components; | |||
import static org.junit.Assert.assertEquals; | |||
import static org.junit.Assert.assertFalse; | |||
import static org.junit.Assert.assertTrue; | |||
import org.junit.Test; | |||
import com.vaadin.data.TreeData; | |||
import com.vaadin.data.provider.TreeDataProvider; | |||
import com.vaadin.event.CollapseEvent; | |||
@@ -8,12 +14,6 @@ import com.vaadin.event.ExpandEvent; | |||
import com.vaadin.event.ExpandEvent.ExpandListener; | |||
import com.vaadin.server.ThemeResource; | |||
import com.vaadin.ui.Tree; | |||
import org.junit.Assert; | |||
import org.junit.Test; | |||
import static org.junit.Assert.assertEquals; | |||
import static org.junit.Assert.assertFalse; | |||
import static org.junit.Assert.assertTrue; | |||
public class TreeTest { | |||
@@ -22,7 +22,6 @@ import java.util.Arrays; | |||
import java.util.List; | |||
import java.util.function.Consumer; | |||
import org.junit.Assert; | |||
import org.junit.Test; | |||
import com.vaadin.data.provider.Query; |
@@ -20,7 +20,6 @@ import java.util.Arrays; | |||
import java.util.HashSet; | |||
import java.util.List; | |||
import org.junit.Assert; | |||
import org.junit.Test; | |||
import com.vaadin.tests.design.DeclarativeTestBaseBase; |
@@ -20,7 +20,6 @@ import java.lang.reflect.Method; | |||
import java.util.Arrays; | |||
import java.util.List; | |||
import org.junit.Assert; | |||
import org.junit.Test; | |||
import com.vaadin.tests.design.DeclarativeTestBaseBase; |
@@ -17,7 +17,6 @@ package com.vaadin.tests.server.component.button; | |||
import org.jsoup.nodes.Element; | |||
import org.jsoup.parser.Tag; | |||
import org.junit.Assert; | |||
import org.junit.Test; | |||
import com.vaadin.event.ShortcutAction.KeyCode; |
@@ -17,7 +17,6 @@ package com.vaadin.tests.server.component.label; | |||
import org.jsoup.nodes.Element; | |||
import org.jsoup.parser.Tag; | |||
import org.junit.Assert; | |||
import org.junit.Ignore; | |||
import org.junit.Test; | |||
@@ -19,7 +19,6 @@ import java.io.IOException; | |||
import org.jsoup.nodes.Element; | |||
import org.jsoup.parser.Tag; | |||
import org.junit.Assert; | |||
import org.junit.Test; | |||
import com.vaadin.tests.server.component.abstracttextfield.AbstractTextFieldDeclarativeTest; |
@@ -2,8 +2,6 @@ package com.vaadin.tests.server.component.treegrid; | |||
import java.lang.reflect.InvocationTargetException; | |||
import org.junit.Assert; | |||
import com.vaadin.data.TreeData; | |||
import com.vaadin.data.provider.HierarchicalQuery; | |||
import com.vaadin.data.provider.TreeDataProvider; |
@@ -2,7 +2,6 @@ package com.vaadin.tests.components.abstractfield; | |||
import com.vaadin.tests.components.TestBase; | |||
import com.vaadin.tests.util.Log; | |||
import com.vaadin.v7.data.Property.ValueChangeListener; | |||
import com.vaadin.v7.ui.TextField; | |||
public class IntegerFieldWithoutDataSource extends TestBase { |
@@ -19,7 +19,6 @@ import com.vaadin.annotations.Push; | |||
import com.vaadin.server.VaadinRequest; | |||
import com.vaadin.tests.components.AbstractReindeerTestUI; | |||
import com.vaadin.ui.Button; | |||
import com.vaadin.ui.Button.ClickEvent; | |||
import com.vaadin.v7.data.util.IndexedContainer; | |||
import com.vaadin.v7.ui.Table; | |||
@@ -40,8 +40,6 @@ import com.vaadin.ui.Html5File; | |||
import com.vaadin.ui.Label; | |||
import com.vaadin.ui.VerticalLayout; | |||
import com.vaadin.ui.Window; | |||
import com.vaadin.v7.data.Property; | |||
import com.vaadin.v7.data.Property.ValueChangeEvent; | |||
import com.vaadin.v7.data.util.BeanItemContainer; | |||
import com.vaadin.v7.data.util.ContainerHierarchicalWrapper; | |||
import com.vaadin.v7.event.DataBoundTransferable; |
@@ -26,7 +26,6 @@ import com.vaadin.server.BootstrapResponse; | |||
import com.vaadin.server.VaadinRequest; | |||
import com.vaadin.tests.components.AbstractReindeerTestUI; | |||
import com.vaadin.ui.Button; | |||
import com.vaadin.ui.Button.ClickEvent; | |||
import com.vaadin.ui.UI; | |||
public class BootstrapModifyUI extends AbstractReindeerTestUI { |
@@ -23,9 +23,6 @@ import com.vaadin.testbench.elements.ButtonElement; | |||
import com.vaadin.testbench.elements.GridElement; | |||
import com.vaadin.tests.tb3.SingleBrowserTest; | |||
import static org.junit.Assert.assertEquals; | |||
import static org.junit.Assert.assertTrue; | |||
/** | |||
* @author Vaadin Ltd | |||
*/ |
@@ -20,7 +20,6 @@ import static org.junit.Assert.assertTrue; | |||
import java.util.List; | |||
import org.junit.Assert; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import org.openqa.selenium.WebElement; |