PagingResults<CopyInfo> copies = copyService.getCopies( actionedUponNodeRef, destinationParent,
PagingResults<CopyInfo> copies = copyService.getCopies( actionedUponNodeRef, destinationParent,
PagingResults<CopyInfo> copies = copyService.getCopies( actionedUponNodeRef, destinationParent,
ContentModel.ASSOC_CHILDREN, QName.createQName("{test}copyAssoc"+i)); copies = copyService.getCopies(currentOriginal, pageRequest); assertEquals("Incorrect number of copies on iteration " + i, 1, copies.getPage().size()); copies = copyService.getCopies(currentOriginal, pageRequest); assertEquals("Incorrect number of copies on iteration " + i, 1, copies.getPage().size()); copyNodeRef = copies.getPage().get(0).getNodeRef();
PagingResults<CopyInfo> copies = copyService.getCopies( actionedUponNodeRef, destinationParent,
copies = copyService.getCopies(sourceNodeRef, pageRequest); assertEquals("Incorrect number of copies", 0, copies.getPage().size()); QName.createQName("{test}copyAssoc")); checkCopiedNode(sourceNodeRef, copy, true, true, false); copies = copyService.getCopies(sourceNodeRef, pageRequest); assertEquals("Incorrect number of copies", 1, copies.getPage().size()); true); checkCopiedNode(sourceNodeRef, copy2, true, true, true); copies = copyService.getCopies(sourceNodeRef, pageRequest); assertEquals("Incorrect number of copies", 2, copies.getPage().size());
copies = copyService.getCopies(nodeRef, pageRequest); assertEquals("Total count not correct", new Pair<Integer, Integer>(i, i), copies.getTotalResultCount()); assertEquals("Incorrect number of copies", (i > 10 ? 10 : i), copies.getPage().size()); copies = copyService.getCopies(nodeRef, rootNodeRef, pageRequest); assertEquals("Total count not correct", new Pair<Integer, Integer>(i, i), copies.getTotalResultCount()); assertEquals("Incorrect number of copies", (i > 10 ? 10 : i), copies.getPage().size()); copies = copyService.getCopies(nodeRef, rootNodeRef, pageRequest); assertEquals("Total count not correct", new Pair<Integer, Integer>(i, i), copies.getTotalResultCount()); assertEquals("Incorrect number of copies", (i > 10 ? 10 : i), copies.getPage().size()); copies = copyService.getCopies(nodeRef, sourceNodeRef, pageRequest); // Some arbitrary parent assertEquals("Expected to find no copies", 0, copies.getPage().size());