This is as designed. We are stricter in our markup checking in dev mode than in prod mode. Mostly because of performance considerations. You can fiddle with the settings to make dev and prod similar.
Search the archives or see the one of the *Settings classes for which setting to en/disable. (I don't know it by name) Martijn On Sat, May 6, 2017 at 2:37 PM, Vit Rozkovec <[email protected]> wrote: > Hi, > > when testing the application which is in deployment mode, test passes even > when the child is missing: > > Code: > > TextField<String> input = new TextField<String>("input"); > add(new WebMarkupContainer("border").add(input)); > > HTML: > > <div wicket:id="border"> > </div> > > Test: > > //start and render the test page > tester.startPage(HomePage.class); > > //assert rendered page class > tester.assertRenderedPage(HomePage.class); > > > In development mode, this test fails, in deployment passes. Is it desirable > effect or a bug? > > I've used Wicket 8.0.0-M5 quickstart which shows this behavior that I can > provide. > > Thanks, > Vit > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- Become a Wicket expert, learn from the best: http://wicketinaction.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
