Commit 57cec85bb1e4fd8a965a545a1dc2de2bc48d5c4c

Authored by Swoq
1 parent 6f1a5ea5

Tests fix

@@ -38,6 +38,7 @@ import org.thingsboard.server.common.data.page.PageLink; @@ -38,6 +38,7 @@ import org.thingsboard.server.common.data.page.PageLink;
38 import org.thingsboard.server.common.data.tenant.profile.DefaultTenantProfileConfiguration; 38 import org.thingsboard.server.common.data.tenant.profile.DefaultTenantProfileConfiguration;
39 import org.thingsboard.server.dao.exception.DataValidationException; 39 import org.thingsboard.server.dao.exception.DataValidationException;
40 40
  41 +import javax.validation.ValidationException;
41 import java.nio.ByteBuffer; 42 import java.nio.ByteBuffer;
42 import java.util.ArrayList; 43 import java.util.ArrayList;
43 import java.util.Collections; 44 import java.util.Collections;
@@ -672,7 +673,7 @@ public abstract class BaseOtaPackageServiceTest extends AbstractServiceTest { @@ -672,7 +673,7 @@ public abstract class BaseOtaPackageServiceTest extends AbstractServiceTest {
672 firmwareInfo.setUrl(URL); 673 firmwareInfo.setUrl(URL);
673 firmwareInfo.setTenantId(tenantId); 674 firmwareInfo.setTenantId(tenantId);
674 675
675 - thrown.expect(DataValidationException.class); 676 + thrown.expect(ValidationException.class);
676 thrown.expectMessage("length of title must be equal or less than 255"); 677 thrown.expectMessage("length of title must be equal or less than 255");
677 678
678 otaPackageService.saveOtaPackageInfo(firmwareInfo, true); 679 otaPackageService.saveOtaPackageInfo(firmwareInfo, true);