فهرست منبع

ValidateNotSamePersonTest (2)

Andrew Grant 3 ماه پیش
والد
کامیت
eb119988d5
1فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 5 2
      src/test/java/scot/carricksoftware/grants/validators/helpers/ValidateNotSamePersonTest.java

+ 5 - 2
src/test/java/scot/carricksoftware/grants/validators/helpers/ValidateNotSamePersonTest.java

@@ -38,8 +38,11 @@ class ValidateNotSamePersonTest {
     void setUp() {
     void setUp() {
         validateTwoFieldTypes = new ValidateTwoFieldTypesImpl();
         validateTwoFieldTypes = new ValidateTwoFieldTypesImpl();
         message = "message";
         message = "message";
-        firstPerson = GetRandomPerson();
-        secondPerson = GetRandomPerson();
+        do {
+            firstPerson = GetRandomPerson();
+            secondPerson = GetRandomPerson();
+        } while (firstPerson == secondPerson);
+        secondPerson.setFirstName("blogs");
         firstPersonFieldName = GetRandomString();
         firstPersonFieldName = GetRandomString();
         secondPersonFieldName = GetRandomString();
         secondPersonFieldName = GetRandomString();
     }
     }