package de.fau.osr.core.vcs.base;

import org.junit.Test;

import static org.junit.Assert.*;

/**
 * Created by Rajab Kaoneka on 18.05.2015.
 */
public class CommitTest {

    @Test
    public void CommitConstructor_idField_Test(){
        Commit commitToTest = new Commit("new_id", null, null, null);
        assertEquals("commit id should be equal the initialization id", "new_id", commitToTest.id);
    }
}
@@ -400,10 +400,260 @@
 );%0A    %7D
+%0A%0A    @Test%0A    public void CommitConstructor_messageField_Test()%7B%0A        Commit commitToTest = new Commit(null, %22msg ok%22, null, null);%0A        assertEquals(%22message should be equal the initialization message%22, %22msg ok%22, commitToTest.message);%0A    %7D
 %0A%7D

Test for Commit, testing message initialization