Search in sources :

Example 6 with DivTestPanel

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

the class SelectableBehaviorTestCase method setUp.

@Override
@Before
public void setUp() {
    super.setUp();
    selectableBehavior = new SelectableBehavior();
    Panel panel = new DivTestPanel("panelId");
    WebMarkupContainer component = new WebMarkupContainer("anId");
    component.setMarkupId("anId");
    component.add(selectableBehavior);
    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 7 with DivTestPanel

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

the class DraggableBehaviorTestCase method setUp.

@Override
@Before
public void setUp() {
    super.setUp();
    draggableBehavior = new DraggableBehavior();
    Panel panel = new DivTestPanel("panelId");
    WebMarkupContainer component = new WebMarkupContainer("anId");
    component.setMarkupId("anId");
    component.add(draggableBehavior);
    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 8 with DivTestPanel

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

the class ProgressBarTestCase method setUp.

@Override
@Before
public void setUp() {
    super.setUp();
    Panel panel = new DivTestPanel("panelId");
    progressBar = new ProgressBar("anId");
    progressBar.setMarkupId(progressBar.getId());
    panel.add(progressBar);
    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 9 with DivTestPanel

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

the class AccordionTestCase method setUp.

@SuppressWarnings("deprecation")
@Override
@Before
public void setUp() {
    super.setUp();
    Panel panel = new DivTestPanel("panelId");
    accordion = new Accordion("anId");
    accordion.setMarkupId(accordion.getId());
    panel.add(accordion);
    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 10 with DivTestPanel

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

the class ResizableBehaviorTestCase method setUp.

@Override
@Before
public void setUp() {
    super.setUp();
    resizableBehavior = new ResizableBehavior();
    Panel panel = new DivTestPanel("panelId");
    WebMarkupContainer component = new WebMarkupContainer("anId");
    component.setMarkupId("anId");
    component.add(resizableBehavior);
    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)

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