@Test public void testList() throws Exception { SimpleBean data = new SimpleBean().setList(ImmutableList.<String>of("d1", "d2")); SimpleBeanInterface dataBean = (SimpleBeanInterface) beanDelegator.createDelegator(data); SimpleBeanInterface newData = (SimpleBeanInterface) beanFilter.createFilteredBean( dataBean, ImmutableSet.<String>of("s")); assertEquals(null, newData.getList()); newData = (SimpleBeanInterface) beanFilter.createFilteredBean( dataBean, ImmutableSet.<String>of("list")); assertArrayEquals(data.getList().toArray(), newData.getList().toArray()); }
@Test public void testList() throws Exception { SimpleBean data = new SimpleBean().setList(ImmutableList.<String>of("d1", "d2")); SimpleBeanInterface dataBean = (SimpleBeanInterface) beanDelegator.createDelegator(data); SimpleBeanInterface newData = (SimpleBeanInterface) beanFilter.createFilteredBean( dataBean, ImmutableSet.<String>of("s")); assertEquals(null, newData.getList()); newData = (SimpleBeanInterface) beanFilter.createFilteredBean( dataBean, ImmutableSet.<String>of("list")); assertArrayEquals(data.getList().toArray(), newData.getList().toArray()); }
@Test public void testList() throws Exception { SimpleBean data = new SimpleBean().setList(ImmutableList.<String>of("d1", "d2")); SimpleBeanInterface dataBean = (SimpleBeanInterface) beanDelegator.createDelegator(data); SimpleBeanInterface newData = (SimpleBeanInterface) beanFilter.createFilteredBean( dataBean, ImmutableSet.<String>of("s")); assertEquals(null, newData.getList()); newData = (SimpleBeanInterface) beanFilter.createFilteredBean( dataBean, ImmutableSet.<String>of("list")); assertArrayEquals(data.getList().toArray(), newData.getList().toArray()); }
@Test public void testList() throws Exception { SimpleBean data = new SimpleBean().setList(ImmutableList.<String>of("d1", "d2")); SimpleBeanInterface dataBean = (SimpleBeanInterface) beanDelegator.createDelegator(data); SimpleBeanInterface newData = (SimpleBeanInterface) beanFilter.createFilteredBean( dataBean, ImmutableSet.<String>of("s")); assertEquals(null, newData.getList()); newData = (SimpleBeanInterface) beanFilter.createFilteredBean( dataBean, ImmutableSet.<String>of("list")); assertArrayEquals(data.getList().toArray(), newData.getList().toArray()); }
@Test public void testList() throws Exception { SimpleBean data = new SimpleBean().setList(ImmutableList.<String>of("d1", "d2")); SimpleBeanInterface dataBean = (SimpleBeanInterface) beanDelegator.createDelegator(data); SimpleBeanInterface newData = (SimpleBeanInterface) beanFilter.createFilteredBean( dataBean, ImmutableSet.<String>of("s")); assertEquals(null, newData.getList()); newData = (SimpleBeanInterface) beanFilter.createFilteredBean( dataBean, ImmutableSet.<String>of("list")); assertArrayEquals(data.getList().toArray(), newData.getList().toArray()); }