Commit 57cec85bb1e4fd8a965a545a1dc2de2bc48d5c4c

Authored by Swoq
1 parent 6f1a5ea5

Tests fix

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