-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
1 deletion.
There are no files selected for viewing
16 changes: 15 additions & 1 deletion
16
opensrp-core/src/test/java/org/smartregister/clientandeventmodel/populateform/ModelTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | ||
} | ||
|
||
} |