package tutorial.storm.trident.testutil;

import com.google.common.hash.HashFunction;
import com.google.common.hash.Hashing;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import sun.jvm.hotspot.jdi.ShortValueImpl;


/**
 * @author Enno Shioji (enno.shioji@peerindex.com)
 */
public class Content {
    private static final Logger log = LoggerFactory.getLogger(Content.class);

    private long tweetId;
    private long userId;
    private long createdAtMs;

    private String contentName;
    private String contentType;

    public Content(long tweetId, long userId, long createdAtMs) {
        this.tweetId = tweetId;
        this.userId = userId;
        this.createdAtMs = createdAtMs;
    }

    public String getContentId(){
        HashFunction md5 = Hashing.md5();
        return md5.hashString(contentType + contentName).toString();
    }

    public String getContentName() {
        return contentName;
    }

    public void setContentName(String contentName) {
        this.contentName = contentName;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    @Override
    public String toString() {
        return "Content{" +
                "contentType='" + contentType + '\'' +
                ", contentName='" + contentName + '\'' +
                '}';
    }

    public String getContentType() {
        return contentType;
    }
}

@@ -1123,24 +1123,474 @@
 ype;%0A    %7D%0A%0A
+    public long getTweetId() %7B%0A        return tweetId;%0A    %7D%0A%0A    public void setTweetId(long tweetId) %7B%0A        this.tweetId = tweetId;%0A    %7D%0A%0A    public long getUserId() %7B%0A        return userId;%0A    %7D%0A%0A    public void setUserId(long userId) %7B%0A        this.userId = userId;%0A    %7D%0A%0A    public long getCreatedAtMs() %7B%0A        return createdAtMs;%0A    %7D%0A%0A    public void setCreatedAtMs(long createdAtMs) %7B%0A        this.createdAtMs = createdAtMs;%0A    %7D%0A%0A
     @Overrid

Add missing getter/setters