package com.turlir.abakgists.model;

import org.junit.Test;


public class GistModelTest {

    @Test
    public void testEquals() {
        GistModel one = new GistModel();
        one.url = "url";
        one.note = null;
        one.description = null;
        one.created = "created";
        one.id = "id";
        one.ownerAvatarUrl = null;
        one.ownerLogin = "login";

        GistModel two = new GistModel();
        two.url = "url";
        two.note = null;
        two.description = null;
        two.created = "created";
        two.id = "id";
        two.ownerAvatarUrl = null;
        two.ownerLogin = "login";

        boolean equals = two.equals(one);
        org.junit.Assert.assertTrue(equals);

        two.note = "note";
        equals = two.equals(one);
        org.junit.Assert.assertFalse(equals);
    }

}

@@ -121,16 +121,20 @@
 stEquals
+True
 () %7B%0A   
@@ -640,148 +640,618 @@
     
-boolean equals = two.equals(one);%0A        org.junit.Assert.assertTrue(equals);%0A%0A        two.note = %22note%22;%0A        equals = two.equals(one);
+org.junit.Assert.assertEquals(two, one);%0A    %7D%0A%0A    @Test%0A    public void testEqualsDifferentNote() %7B%0A        GistModel one = new GistModel();%0A        one.url = %22url%22;%0A        one.note = null;%0A        one.description = null;%0A        one.created = %22created%22;%0A        one.id = %22id%22;%0A        one.ownerAvatarUrl = null;%0A        one.ownerLogin = %22login%22;%0A%0A        GistModel two = new GistModel();%0A        two.url = %22url%22;%0A        two.note = %22note%22; // alarm%0A        two.description = null;%0A        two.created = %22created%22;%0A        two.id = %22id%22;%0A        two.ownerAvatarUrl = null;%0A        two.ownerLogin = %22login%22;%0A
 %0A   
@@ -1282,20 +1282,26 @@
 sert
-False(equals
+NotEquals(two, one
 );%0A 
@@ -1306,10 +1306,11 @@
 %0A    %7D%0A%0A
+%0A
 %7D%0A

split GistModelTest