5859606162636465
@Override public void loadDocument(BasicBean bean) { this.filename = DocumentIO.validateFilename(bean.getId().toString()); this.bean = new BeanEncapsulator(bean); this.bean.addPropertyChangeListener(this); }
89101112131415
private final BeanEncapsulator bean; private final String filename; public DocumentLocal(BasicBean bean) { this.bean = new BeanEncapsulator(bean); filename = DocumentIO.validateFilename(this.bean.getId().toString()); }
3738394041424344
} @Test public void testBeanEncapsulator() { Player current = CampaignClient.getInstance().getCurrentPlayer(); BeanEncapsulator playerEncapsulator = new BeanEncapsulator(current); playerEncapsulator.beanRemoved(); }