package sg.ncl.adapter.deterlab.dtos.entities;

import org.apache.commons.lang3.RandomStringUtils;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.assertEquals;
import static org.assertj.core.api.Assertions.assertThat;

/**
 * Created by Tran Ly Vu on 10/3/2016.
 */

public class DeterLabProjectEntityTest {
    private DeterLabProjectEntity deterLabUserEntity;

    @Before
    public void setup(){
        deterLabUserEntity=new DeterLabProjectEntity();
    }

    @Test
    public void testGetId(){
        final String expected = RandomStringUtils.randomAlphabetic(20);
        deterLabUserEntity.setId(expected);
        String actual=deterLabUserEntity.getId();

        assertThat(actual).isNotNull();
        assertEquals(expected,actual);
    }

    @Test
    public void testGetNclTeamId(){
        final String expected = RandomStringUtils.randomAlphabetic(20);
        deterLabUserEntity.setNclTeamId(expected);
        String actual=deterLabUserEntity.getNclTeamId();

        assertThat(actual).isNotNull();
        assertEquals(expected,actual);
    }

    @Test
    public void testGetDeterProjectId(){
        final String expected = RandomStringUtils.randomAlphabetic(20);
        deterLabUserEntity.setDeterProjectId(expected);
        String actual=deterLabUserEntity.getDeterProjectId();

        assertThat(actual).isNotNull();
        assertEquals(expected,actual);
    }


}

@@ -741,38 +741,54 @@
 ;%0A        assert
+That(actual).is
 Equal
-s
+To
 (expected,actual
@@ -772,39 +772,32 @@
 EqualTo(expected
-,actual
 );%0A    %7D%0A%0A    @T
@@ -1063,38 +1063,54 @@
 ;%0A        assert
+That(actual).is
 Equal
-s
+To
 (expected,actual
@@ -1094,39 +1094,32 @@
 EqualTo(expected
-,actual
 );%0A    %7D%0A%0A    @T
@@ -1408,22 +1408,38 @@
   assert
+That(actual).is
 Equal
-s
+To
 (expecte
@@ -1443,15 +1443,8 @@
 cted
-,actual
 );%0A 

convert junit to assertJ