HashPage extends BaseInitedPage implements IUpdatable { @Override public void update(AjaxRequestTarget target) { Invitation i = WebSession.get().getInvitation(); if (i.getRoom() != null && rp != null) { rp.show(target); } else if (i.getRecording() != null) { target.add(vi.update(target, i.getRecording()).setVisible(true) , vp.update(target, i.getRecording()).setVisible(true)); } } HashPage(PageParameters p); @Override void update(AjaxRequestTarget target); static final String APP; static final String APP_TYPE_NETWORK; static final String APP_TYPE_SETTINGS; static final String SWF; static final String PANEL_MAIN; static final String PANEL_RECORDING; static final String INVITATION_HASH; }
@Test void testValidOneTimeRecording() { Recording rec = new Recording(); rec.setOwnerId(1L); recDao.update(rec); Invitation i = get(1L, null, null, rec.getId(), Valid.ONE_TIME, null, null, null); checkRecordingPanel(new PageParameters().add(INVITATION_HASH, i.getHash()), VideoInfo.class); }