Skip to content

Commit

Permalink
Increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza-vd committed Jan 31, 2023
1 parent b6c81cb commit eb00e14
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
package org.smartregister.clientandeventmodel.populateform;

import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.smartregister.BaseUnitTest;
import org.smartregister.clientandeventmodel.populateform.Model;

public class ModelTest extends BaseUnitTest {

private Model model;

@Before
public void setUp() {
model = new Model("tag","openMRSEntity","openMRSEntityId","OpenMRSEntityParent");
}

@Test
public void testConstructorNotNull() {
Model model = new Model("","","","");
Assert.assertNotNull(model);
}

@Test
public void testFieldMembers() {
Assert.assertEquals("tag", model.getTag());
Assert.assertEquals("openMRSEntity", model.getOpenMRSEntity());
Assert.assertEquals("openMRSEntityId", model.getOpenMRSEntityId());
Assert.assertEquals("OpenMRSEntityParent", model.getOpenMRSEntityParent());
}

}

0 comments on commit eb00e14

Please sign in to comment.