@Test public void testApproveEmpty() throws Exception { ComplexContentApprover complexApprover = new ComplexContentApprover(); assertTrue(complexApprover.approve(content)); }
@Override public boolean approve(String id, byte[] content) { for (IdentifiableContentApprover currentApprover : approvers) { if (!currentApprover.approve(id, content)) { return false; } } return true; }
ComplexIdentifiableContentApprover implements IdentifiableContentApprover { @Override public boolean approve(String id, byte[] content) { for (IdentifiableContentApprover currentApprover : approvers) { if (!currentApprover.approve(id, content)) { return false; } } return true; } }
ComplexIdentifiableContentApprover implements IdentifiableContentApprover { @Override public boolean approve(String id, byte[] content) { for (IdentifiableContentApprover currentApprover : approvers) { if (!currentApprover.approve(id, content)) { return false; } } return true; } ComplexIdentifiableContentApprover(List<IdentifiableContentApprover> approvers);  ComplexIdentifiableContentApprover(IdentifiableContentApprover... approvers); }
ComplexIdentifiableContentApprover implements IdentifiableContentApprover { @Override public boolean approve(String id, byte[] content) { for (IdentifiableContentApprover currentApprover : approvers) { if (!currentApprover.approve(id, content)) { return false; } } return true; } ComplexIdentifiableContentApprover(List<IdentifiableContentApprover> approvers);  ComplexIdentifiableContentApprover(IdentifiableContentApprover... approvers); @Override boolean approve(String id, byte[] content); }
ComplexIdentifiableContentApprover implements IdentifiableContentApprover { @Override public boolean approve(String id, byte[] content) { for (IdentifiableContentApprover currentApprover : approvers) { if (!currentApprover.approve(id, content)) { return false; } } return true; } ComplexIdentifiableContentApprover(List<IdentifiableContentApprover> approvers);  ComplexIdentifiableContentApprover(IdentifiableContentApprover... approvers); @Override boolean approve(String id, byte[] content);  }