|
|
@@ -0,0 +1,40 @@
|
|
|
+/*
|
|
|
+ * Copyright (c) Andrew Grant of Carrick Software 20/03/2025, 11:15. All rights reserved.
|
|
|
+ *
|
|
|
+ */
|
|
|
+
|
|
|
+package scot.carricksoftware.grants.commands.census;
|
|
|
+
|
|
|
+
|
|
|
+import org.junit.jupiter.api.BeforeEach;
|
|
|
+import org.junit.jupiter.api.Test;
|
|
|
+import scot.carricksoftware.grants.enums.census.CensusBoundaryType;
|
|
|
+
|
|
|
+import static org.junit.jupiter.api.Assertions.assertEquals;
|
|
|
+import static org.junit.jupiter.api.Assertions.assertNull;
|
|
|
+import static scot.carricksoftware.grants.GenerateCensusRandomEnums.GetRandomCensusBoundaryType;
|
|
|
+
|
|
|
+class CensusCommandEnumTest {
|
|
|
+
|
|
|
+ private CensusCommand command;
|
|
|
+
|
|
|
+ @BeforeEach
|
|
|
+ void setUp() {
|
|
|
+ command = new CensusCommandImpl();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Test
|
|
|
+ void getBoundaryType() {
|
|
|
+ assertNull(command.getBoundaryType());
|
|
|
+ }
|
|
|
+
|
|
|
+ @Test
|
|
|
+ void setBoundaryTypeTest() {
|
|
|
+ CensusBoundaryType boundaryType = GetRandomCensusBoundaryType();
|
|
|
+ command.setBoundaryType(boundaryType);
|
|
|
+ assertEquals(boundaryType, command.getBoundaryType());
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|