Search in sources :

Example 1 with DivTestPanel

use of org.odlabs.wiquery.ui.DivTestPanel in project wiquery by WiQuery.

the class DialogTestCase method setUp.

@Override
@Before
public void setUp() {
    super.setUp();
    Panel panel = new DivTestPanel("panelId");
    dialog = new Dialog("anId");
    dialog.setMarkupId(dialog.getId());
    panel.add(dialog);
    tester.startComponentInPage(panel);
}
Also used : Panel(org.apache.wicket.markup.html.panel.Panel) DivTestPanel(org.odlabs.wiquery.ui.DivTestPanel) DivTestPanel(org.odlabs.wiquery.ui.DivTestPanel) Before(org.junit.Before)

Example 2 with DivTestPanel

use of org.odlabs.wiquery.ui.DivTestPanel in project wiquery by WiQuery.

the class DroppableBehaviorTestCase method setUp.

@Override
@Before
public void setUp() {
    super.setUp();
    droppableBehavior = new DroppableBehavior();
    Panel panel = new DivTestPanel("panelId");
    WebMarkupContainer component = new WebMarkupContainer("anId");
    component.setMarkupId("anId");
    component.add(droppableBehavior);
    panel.add(component);
    tester.startComponentInPage(panel);
}
Also used : Panel(org.apache.wicket.markup.html.panel.Panel) DivTestPanel(org.odlabs.wiquery.ui.DivTestPanel) DivTestPanel(org.odlabs.wiquery.ui.DivTestPanel) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer) Before(org.junit.Before)

Example 3 with DivTestPanel

use of org.odlabs.wiquery.ui.DivTestPanel in project wiquery by WiQuery.

the class SliderTestCase method setUp.

@Override
@Before
public void setUp() {
    super.setUp();
    Panel panel = new DivTestPanel("panelId");
    slider = new Slider("anId", 5, 10);
    slider.setMarkupId(slider.getId());
    panel.add(slider);
    tester.startComponentInPage(panel);
}
Also used : Panel(org.apache.wicket.markup.html.panel.Panel) DivTestPanel(org.odlabs.wiquery.ui.DivTestPanel) DivTestPanel(org.odlabs.wiquery.ui.DivTestPanel) Before(org.junit.Before)

Example 4 with DivTestPanel

use of org.odlabs.wiquery.ui.DivTestPanel in project wiquery by WiQuery.

the class SortableBehaviorTestCase method setUp.

@Override
@Before
public void setUp() {
    super.setUp();
    sortableBehavior = new SortableBehavior();
    Panel panel = new DivTestPanel("panelId");
    WebMarkupContainer component = new WebMarkupContainer("anId");
    component.setMarkupId("anId");
    component.add(sortableBehavior);
    panel.add(component);
    tester.startComponentInPage(panel);
}
Also used : Panel(org.apache.wicket.markup.html.panel.Panel) DivTestPanel(org.odlabs.wiquery.ui.DivTestPanel) DivTestPanel(org.odlabs.wiquery.ui.DivTestPanel) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer) Before(org.junit.Before)

Example 5 with DivTestPanel

use of org.odlabs.wiquery.ui.DivTestPanel in project wiquery by WiQuery.

the class TabsTestCase method setUp.

@SuppressWarnings("deprecation")
@Override
@Before
public void setUp() {
    super.setUp();
    Panel panel = new DivTestPanel("panelId");
    tabs = new Tabs("anId");
    tabs.setMarkupId(tabs.getId());
    panel.add(tabs);
    tester.startComponentInPage(panel);
}
Also used : Panel(org.apache.wicket.markup.html.panel.Panel) DivTestPanel(org.odlabs.wiquery.ui.DivTestPanel) DivTestPanel(org.odlabs.wiquery.ui.DivTestPanel) Before(org.junit.Before)

Aggregations

Panel (org.apache.wicket.markup.html.panel.Panel)11 Before (org.junit.Before)11 DivTestPanel (org.odlabs.wiquery.ui.DivTestPanel)11 WebMarkupContainer (org.apache.wicket.markup.html.WebMarkupContainer)6