You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by GitBox <gi...@apache.org> on 2020/02/15 22:24:03 UTC

[GitHub] [wicket] helmut8080 commented on issue #403: Iteration stops with nested containers

helmut8080 commented on issue #403: Iteration stops with nested containers
URL: https://github.com/apache/wicket/pull/403#issuecomment-586646881
 
 
   Sure. Hope its ok to just post the unit test here:
   
   @Test
   	void streamChildrenNestedContainer() {
   		WebMarkupContainer wmc = new WebMarkupContainer("parent");
   		WebMarkupContainer wmc1 = new WebMarkupContainer("wmc1");
   		wmc.add(wmc1);
   		WebMarkupContainer wmc1_2= new WebMarkupContainer("wmc1_2");
   		wmc1.add(wmc1_2);
   		Label lbl2 = new Label("lbl2");
   		wmc.add(lbl2);
   		List<String> l = wmc.streamChildren().map(t -> t.getId()).collect(Collectors.toList());
   //		System.out.println(l);
   		assertEquals(l.toString(), "[wmc1, wmc1_2, lbl2]");
   	}

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services