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();
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;
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;
import java.util.Map;
import java.util.Map.Entry;
-import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.easymock.Capture;
import org.easymock.EasyMock;
-import org.junit.Assert;
import org.junit.Test;
import com.vaadin.v7.data.Container;
import org.easymock.Capture;
import org.easymock.EasyMock;
-import org.junit.Assert;
import org.junit.Test;
import com.vaadin.v7.data.Container.Indexed.ItemAddEvent;
import java.util.Locale;
import java.util.TimeZone;
-import org.junit.Assert;
import org.junit.Test;
import com.vaadin.v7.ui.Calendar;
import java.util.Collection;
-import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.jsoup.nodes.Element;
import org.jsoup.parser.Tag;
-import org.junit.Assert;
import org.junit.Test;
import com.vaadin.shared.ui.ContentMode;
*/
package com.vaadin.v7.tests.server.component.grid.declarative;
-import org.junit.Assert;
import org.junit.Test;
import com.vaadin.v7.data.Container;
*/
package com.vaadin.v7.tests.server.component.table;
-import org.junit.Assert;
import org.junit.Test;
import com.vaadin.server.ExternalResource;
import org.jsoup.nodes.Element;
import org.jsoup.parser.Tag;
-import org.junit.Assert;
import org.junit.Test;
import com.vaadin.tests.design.DeclarativeTestBase;
import java.lang.reflect.Field;
import java.util.HashSet;
-import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
try {
return Long.parseLong(request.getHeader("Content-Length"));
} catch (NumberFormatException e) {
- return -1l;
+ return -1;
}
}
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;
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;
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 {
import java.util.List;
import java.util.function.Consumer;
-import org.junit.Assert;
import org.junit.Test;
import com.vaadin.data.provider.Query;
import java.util.HashSet;
import java.util.List;
-import org.junit.Assert;
import org.junit.Test;
import com.vaadin.tests.design.DeclarativeTestBaseBase;
import java.util.Arrays;
import java.util.List;
-import org.junit.Assert;
import org.junit.Test;
import com.vaadin.tests.design.DeclarativeTestBaseBase;
import org.jsoup.nodes.Element;
import org.jsoup.parser.Tag;
-import org.junit.Assert;
import org.junit.Test;
import com.vaadin.event.ShortcutAction.KeyCode;
import org.jsoup.nodes.Element;
import org.jsoup.parser.Tag;
-import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
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;
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;
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 {
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;
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;
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 {
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
*/
import java.util.List;
-import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.WebElement;