package com.yeontaekj.chorekeeper;

import java.util.UUID;

/**
 * Created by yeontaekj on 8/24/2017.
 */

public class Chore {

    private String name;
    private String description;
    private UUID mUUID;

    public Chore() {
        this(null, null);
    }

    public Chore(String name) {
        this(name, null);
    }

    public Chore(String name, String description) {
        this.name = name;
        this.description = description;
        mUUID = UUID.randomUUID();
    }

    public String getName() {
        return name;
    }

    public String getDescription() { return description;}

    public String getUUID() {
        return mUUID.toString();
    }
}

@@ -243,16 +243,22 @@
 is(null,
+ null,
  null);%0A
@@ -314,16 +314,22 @@
 is(name,
+ null,
  null);%0A
@@ -383,24 +383,135 @@
 cription) %7B%0A
+        this(name, description, null);%0A    %7D%0A%0A    public Chore(String name, String description, String uuid) %7B%0A
         this
@@ -549,16 +549,17 @@
 ription 
+ 
 = descri
@@ -577,34 +577,262 @@
     
-mUUID = UUID.randomUUID();
+if (uuid == null) %7B%0A            mUUID = UUID.randomUUID();%0A        %7D else %7B%0A            try %7B%0A                mUUID = UUID.fromString(uuid);%0A            %7D catch (IllegalArgumentException ex) %7B%0A                ex.printStackTrace();%0A            %7D%0A        %7D
 %0A   
@@ -1020,11 +1020,183 @@
 );%0A    %7D
+%0A%0A    public void setName(String name) %7B%0A        this.name = name;%0A    %7D%0A%0A    public void setDescription(String description) %7B%0A        this.description = description;%0A    %7D
 %0A%7D%0A

Update Chore model v2