@@ -0,0 +1,3064 @@
+package org.gwtbootstrap3.client.ui;%0A%0A/*%0A * #%25L%0A * GwtBootstrap3%0A * %25%25%0A * Copyright (C) 2013 - 2014 GwtBootstrap3%0A * %25%25%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A * %0A *      http://www.apache.org/licenses/LICENSE-2.0%0A * %0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A * #L%25%0A */%0A%0Aimport org.gwtbootstrap3.client.ui.base.HasActive;%0Aimport org.gwtbootstrap3.client.ui.base.HasFormValue;%0Aimport org.gwtbootstrap3.client.ui.constants.Styles;%0A%0Aimport com.google.gwt.dom.client.Element;%0Aimport com.google.gwt.junit.client.GWTTestCase;%0Aimport com.google.gwt.user.client.ui.HasEnabled;%0Aimport com.google.gwt.user.client.ui.HasName;%0Aimport com.google.gwt.user.client.ui.HasValue;%0Aimport com.google.gwt.user.client.ui.UIObject;%0A%0Apublic abstract class BaseGwt extends GWTTestCase %7B%0A%0A    /**%0A     * Specifies a module to use when running this test case. The returned%0A     * module must include the source for this class.%0A     *%0A     * @see com.google.gwt.junit.client.GWTTestCase#getModuleName()%0A     */%0A    @Override%0A    public String getModuleName() %7B%0A        return %22org.gwtbootstrap3.GwtBootstrap3%22;%0A    %7D%0A%0A    public %3CT extends UIObject & HasActive%3E void checkActive(T button) %7B%0A        final Element label = button.getElement();%0A        assertFalse(label.hasClassName(Styles.ACTIVE));%0A        button.setActive(true);%0A        assertTrue(label.hasClassName(Styles.ACTIVE));%0A        button.setActive(false);%0A        assertFalse(label.hasClassName(Styles.ACTIVE));%0A    %7D%0A%0A    public %3CT extends UIObject & HasName%3E void checkName(T button) %7B%0A        final String name = %22name%22;%0A        button.setName(name);%0A        assertEquals(name, button.getName());%0A    %7D%0A%0A    public %3CT extends UIObject & HasFormValue%3E void checkFormValue(T button) %7B%0A        final String formValue = %22formValue%22;%0A        button.setFormValue(formValue);%0A        assertEquals(formValue, button.getFormValue());%0A    %7D%0A%0A    public %3CT extends UIObject & HasValue%3CBoolean%3E%3E void checkValue(T button) %7B%0A        button.setValue(true);%0A        assertTrue(button.getValue());%0A        button.setValue(false);%0A        assertFalse(button.getValue());%0A    %7D%0A%0A    public %3CT extends UIObject & HasEnabled%3E void checkEnabled(T button) %7B%0A        final Element label = button.getElement();%0A        assertFalse(label.hasClassName(Styles.DISABLED));%0A        assertFalse(label.hasAttribute(Styles.DISABLED));%0A        button.setEnabled(false);%0A        assertTrue(label.hasClassName(Styles.DISABLED));%0A        assertTrue(label.hasAttribute(Styles.DISABLED));%0A        button.setEnabled(true);%0A        assertFalse(label.hasClassName(Styles.DISABLED));%0A        assertFalse(label.hasAttribute(Styles.DISABLED));%0A    %7D%0A%0A%7D

Add a base GWTTestCase