Fixed outdated tests
This commit is contained in:
parent
7020e60aed
commit
96d344fabd
@ -288,7 +288,7 @@ public class CustomerControllerTest extends AbstractControllerTest {
|
||||
for (int i=0;i<143;i++) {
|
||||
Customer customer = new Customer();
|
||||
customer.setTenantId(tenantId);
|
||||
String suffix = RandomStringUtils.randomAlphanumeric((int)(Math.random()*15));
|
||||
String suffix = RandomStringUtils.randomAlphanumeric((int)(5 + Math.random()*10));
|
||||
String title = title1+suffix;
|
||||
title = i % 2 == 0 ? title.toLowerCase() : title.toUpperCase();
|
||||
customer.setTitle(title);
|
||||
@ -299,7 +299,7 @@ public class CustomerControllerTest extends AbstractControllerTest {
|
||||
for (int i=0;i<175;i++) {
|
||||
Customer customer = new Customer();
|
||||
customer.setTenantId(tenantId);
|
||||
String suffix = RandomStringUtils.randomAlphanumeric((int)(Math.random()*15));
|
||||
String suffix = RandomStringUtils.randomAlphanumeric((int)(5 + Math.random()*10));
|
||||
String title = title2+suffix;
|
||||
title = i % 2 == 0 ? title.toLowerCase() : title.toUpperCase();
|
||||
customer.setTitle(title);
|
||||
|
||||
@ -149,7 +149,7 @@ public class TenantControllerTest extends AbstractControllerTest {
|
||||
List<Tenant> tenantsTitle1 = new ArrayList<>();
|
||||
for (int i=0;i<134;i++) {
|
||||
Tenant tenant = new Tenant();
|
||||
String suffix = RandomStringUtils.randomAlphanumeric((int)(Math.random()*15));
|
||||
String suffix = RandomStringUtils.randomAlphanumeric((int)(5 + Math.random()*10));
|
||||
String title = title1+suffix;
|
||||
title = i % 2 == 0 ? title.toLowerCase() : title.toUpperCase();
|
||||
tenant.setTitle(title);
|
||||
@ -159,7 +159,7 @@ public class TenantControllerTest extends AbstractControllerTest {
|
||||
List<Tenant> tenantsTitle2 = new ArrayList<>();
|
||||
for (int i=0;i<127;i++) {
|
||||
Tenant tenant = new Tenant();
|
||||
String suffix = RandomStringUtils.randomAlphanumeric((int)(Math.random()*15));
|
||||
String suffix = RandomStringUtils.randomAlphanumeric((int)(5 + Math.random()*10));
|
||||
String title = title2+suffix;
|
||||
title = i % 2 == 0 ? title.toLowerCase() : title.toUpperCase();
|
||||
tenant.setTitle(title);
|
||||
|
||||
@ -179,7 +179,7 @@ public class CustomerServiceImplTest extends AbstractServiceTest {
|
||||
for (int i = 0; i < 143; i++) {
|
||||
Customer customer = new Customer();
|
||||
customer.setTenantId(tenantId);
|
||||
String suffix = RandomStringUtils.randomAlphanumeric((int)(Math.random()*15));
|
||||
String suffix = RandomStringUtils.randomAlphanumeric((int)(5 + Math.random()*10));
|
||||
String title = title1 + suffix;
|
||||
title = i % 2 == 0 ? title.toLowerCase() : title.toUpperCase();
|
||||
customer.setTitle(title);
|
||||
@ -190,7 +190,7 @@ public class CustomerServiceImplTest extends AbstractServiceTest {
|
||||
for (int i = 0; i < 175; i++) {
|
||||
Customer customer = new Customer();
|
||||
customer.setTenantId(tenantId);
|
||||
String suffix = RandomStringUtils.randomAlphanumeric((int)(Math.random()*15));
|
||||
String suffix = RandomStringUtils.randomAlphanumeric((int)(5 + Math.random()*10));
|
||||
String title = title2 + suffix;
|
||||
title = i % 2 == 0 ? title.toLowerCase() : title.toUpperCase();
|
||||
customer.setTitle(title);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user