@@ -0,0 +1,1271 @@
+package com.ushahidi.android.domain.entity;%0A%0Aimport com.ushahidi.android.BuildConfig;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.robolectric.RobolectricGradleTestRunner;%0Aimport org.robolectric.annotation.Config;%0A%0Aimport static com.google.common.truth.Truth.assertThat;%0A%0A/**%0A * @author Ushahidi Team %3Cteam@ushahidi.com%3E%0A */%0A@RunWith(RobolectricGradleTestRunner.class)%0A@Config(sdk = 21, constants = BuildConfig.class)%0Apublic class FormAttributeTest %7B%0A%0A    @Test%0A    public void shouldSetFormAttribute() %7B%0A        FormAttribute formAttribute = TestFixtures.getFormAttribute();%0A        assertThat(formAttribute).isNotNull();%0A        assertThat(formAttribute.getKey()).isEqualTo(%22test_varchar%22);%0A        assertThat(formAttribute.getFormId())%0A                .isEqualTo(2l);%0A        assertThat(formAttribute.getKey())%0A                .isEqualTo(%22test_varchar%22);%0A        assertThat(formAttribute.getLabel())%0A                .isEqualTo(%22Test varchar%22);%0A        assertThat(formAttribute.getRequired())%0A                .isTrue();%0A        assertThat(formAttribute.getPriority())%0A                .isEqualTo(1);%0A        assertThat(formAttribute.getCardinality())%0A                .isEqualTo(1);%0A        assertThat(formAttribute.getOptions()).isNull();%0A    %7D%0A%7D%0A

Add test for setting form attribute