|
|
@@ -11,6 +11,7 @@ import scot.carricksoftware.grants.domains.people.Person;
|
|
|
|
|
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
|
|
import static org.junit.jupiter.api.Assertions.assertNull;
|
|
|
+import static scot.carricksoftware.grants.GenerateCertificateRandomValues.GetRandomString;
|
|
|
import static scot.carricksoftware.grants.GenerateRandomNumberValues.GetRandomLong;
|
|
|
import static scot.carricksoftware.grants.GenerateRandomPeopleValues.GetRandomPerson;
|
|
|
|
|
|
@@ -47,5 +48,53 @@ class PersonTextCommandTest {
|
|
|
assertEquals(person, personTextCommand.getPerson());
|
|
|
}
|
|
|
|
|
|
+ @Test
|
|
|
+ void getLevelTest() {
|
|
|
+ assertNull(personTextCommand.getLevel());
|
|
|
+ }
|
|
|
+
|
|
|
+ @Test
|
|
|
+ void setLevelTest() {
|
|
|
+ Long level = GetRandomLong();
|
|
|
+ personTextCommand.setLevel(level);
|
|
|
+ assertEquals(level, personTextCommand.getLevel());
|
|
|
+ }
|
|
|
+
|
|
|
+ @Test
|
|
|
+ void getOrderTest() {
|
|
|
+ assertNull(personTextCommand.getOrder());
|
|
|
+ }
|
|
|
+
|
|
|
+ @Test
|
|
|
+ void setOrderTest() {
|
|
|
+ Long order = GetRandomLong();
|
|
|
+ personTextCommand.setOrder(order);
|
|
|
+ assertEquals(order, personTextCommand.getOrder());
|
|
|
+ }
|
|
|
+
|
|
|
+ @Test
|
|
|
+ void getHeadingTest() {
|
|
|
+ assertNull(personTextCommand.getHeading());
|
|
|
+ }
|
|
|
+
|
|
|
+ @Test
|
|
|
+ void setHeadingTest() {
|
|
|
+ String heading = GetRandomString();
|
|
|
+ personTextCommand.setHeading(heading);
|
|
|
+ assertEquals(heading, personTextCommand.getHeading());
|
|
|
+ }
|
|
|
+
|
|
|
+ @Test
|
|
|
+ void getContentTest() {
|
|
|
+ assertNull(personTextCommand.getContent());
|
|
|
+ }
|
|
|
+
|
|
|
+ @Test
|
|
|
+ void setContentTest() {
|
|
|
+ String content = GetRandomString();
|
|
|
+ personTextCommand.setContent(content);
|
|
|
+ assertEquals(content, personTextCommand.getContent());
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|