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