Hi.
I have a class IpLookupPage that uses markupinheritence and inherits a class
called BasePage. I is working fine when i test it manually but when i am
using testng to do unit testing on the page i get an exception.
The code looks like:
ApplicationContext context = getStubApplicationContextForPage();
BossoWicketTester app = createWicketTester(context);
app.openPage(IpLookupPage.class);
And i get this error message:
org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for
component 'com.ongame.bo.bofraud.markup.pages.IpLookupPage' not found.
Enable debug messages for org.apache.wicket.util.resource to get a list of
all filenames tried:
[Page class = com.ongame.bo.bofraud.markup.pages.IpLookupPage, id = 0,
version = 0]
at
org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:354)
at org.apache.wicket.Page.onRender(Page.java:1435)
at org.apache.wicket.Component.render(Component.java:2266)
at org.apache.wicket.Page.renderPage(Page.java:891)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:231)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:103)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1100)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1169)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:489)
at
org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:382)
at
com.ongame.bo.bofraud.WicketApplicationTest$BossoWicketTester.openPage(WicketApplicationTest.java:101)
at
com.ongame.bo.bofraud.markup.pages.IpLookupPageTest.testInvalidIpAddress(IpLookupPageTest.java:68)
Caused by: org.apache.wicket.markup.MarkupNotFoundException: Markup not
found. Component class: com.ongame.bo.bofraud.markup.pages.IpLookupPage
Enable debug messages for org.apache.wicket.util.resource to get a list of
all filenames tried
at
org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:215)
at
org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:342)
... 33 more
... Removed 21 stack frames
Anyone that knows what the problem is?
Regards
Alex
--
View this message in context:
http://www.nabble.com/MarkupNotFoundException-tp17142219p17142219.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]