APISonar


com.hitherejoe.mvvm_hackernews.model.Comment.time

> com > hitherejoe > mvvm_hackernews > model > Comment > time
com APIs hitherejoe APIs mvvm_hackernews APIs model APIs Comment APIs time APIs

Example 1
public static Comment createMockComment() {
        Comment comment = new Comment();
        comment.by = generateRandomString();
        comment.comments = new ArrayList<>();
        comment.depth = generateRandomInt();
        comment.id = generateRandomLong();
        comment.isTopLevelComment = false;
        comment.text = generateRandomString();
        comment.time = new Date().getTime();
        return comment;
    }
Example 2
private Comment mComment;

    public void shouldGetCommentDate() throws Exception {
        String date = new PrettyTime().format(new Date(mComment.time * 1000));
        assertEquals(mCommentViewModel.getCommentDate(), date);
    }