@Test public void testCommentReplies() { AssetDescriptor parentAsset = new AssetSummary(new Asset()); Comment testBean = new Comment(); testBean.setType(type); testBean.setGUID("TestDifferentGUID"); testBean.setURL("TestURL"); testBean.setClassifications(classifications); testBean.setUser("TestUser"); testBean.setCommentType(CommentType.USAGE_EXPERIENCE); testBean.setCommentText("TestText"); AssetCommentReplies assetCommentReplies = new MockAssetCommentReplies( parentAsset, 15, 50); AssetComment testTemplate = new AssetComment(testBean, assetCommentReplies); assertTrue(testTemplate.getCommentReplies() != null); testTemplate = new AssetComment(parentAsset, testBean, assetCommentReplies); assertTrue(testTemplate.getCommentReplies() != null); AssetComment testObject = new AssetComment(parentAsset, testTemplate); assertTrue(testObject.getCommentReplies() != null); }
public AssetCommentReplies getCommentReplies() { if (commentReplies == null) { return null; } else { return commentReplies.cloneIterator(super.getParentAsset()); } }
AssetComment extends AssetElementHeader { public AssetCommentReplies getCommentReplies() { if (commentReplies == null) { return null; } else { return commentReplies.cloneIterator(super.getParentAsset()); } } }
AssetComment extends AssetElementHeader { public AssetCommentReplies getCommentReplies() { if (commentReplies == null) { return null; } else { return commentReplies.cloneIterator(super.getParentAsset()); } } AssetComment(Comment              commentBean,
                        AssetCommentReplies  commentReplies);  AssetComment(AssetDescriptor      parentAsset,
                           Comment              commentBean,
                           AssetCommentReplies  commentReplies);  AssetComment(AssetDescriptor parentAsset, AssetComment templateComment); }
AssetComment extends AssetElementHeader { public AssetCommentReplies getCommentReplies() { if (commentReplies == null) { return null; } else { return commentReplies.cloneIterator(super.getParentAsset()); } } AssetComment(Comment              commentBean,
                        AssetCommentReplies  commentReplies);  AssetComment(AssetDescriptor      parentAsset,
                           Comment              commentBean,
                           AssetCommentReplies  commentReplies);  AssetComment(AssetDescriptor parentAsset, AssetComment templateComment); boolean isPublic(); CommentType getCommentType(); String getUser(); String getCommentText(); AssetCommentReplies getCommentReplies(); @Override String toString(); @Override boolean equals(Object objectToCompare); }
AssetComment extends AssetElementHeader { public AssetCommentReplies getCommentReplies() { if (commentReplies == null) { return null; } else { return commentReplies.cloneIterator(super.getParentAsset()); } } AssetComment(Comment              commentBean,
                        AssetCommentReplies  commentReplies);  AssetComment(AssetDescriptor      parentAsset,
                           Comment              commentBean,
                           AssetCommentReplies  commentReplies);  AssetComment(AssetDescriptor parentAsset, AssetComment templateComment); boolean isPublic(); CommentType getCommentType(); String getUser(); String getCommentText(); AssetCommentReplies getCommentReplies(); @Override String toString(); @Override boolean equals(Object objectToCompare);  }