You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Jens Jahnke <ja...@gmx.net> on 2013/10/20 10:10:05 UTC

Testing panels

Hi,

I'm using wicket 6.11.0 and try to test some panels.
The test code looks like this:

public class NewRelicHeaderTest {
    private WicketTester tester;

    @Before
    public void setUp() throws Exception {
        tester = new WicketTester(new MyApplication());
    }

    @Test
    public void testNewRelicHeaderPanel() {
        tester.startComponentInPage(new NewRelicHeader("newRelicHeader"));
    }
}

But what I get is always an exception:

MarkupNotFoundException: Failed to find markup file associated. NewRelicHeader: [NewRelicHeader [Component id = newRelicHeader]]

Is there something I am missing?

Regards,

Jens

-- 
20. Gilbhart 2013, 09:43
Homepage : http://www.jan0sch.de

You will engage in a profitable business activity.