Showing
1 changed file
with
2 additions
and
1 deletions
... | ... | @@ -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); | ... | ... |