|
|
|
@ -673,7 +673,7 @@ public abstract class BaseOtaPackageServiceTest extends AbstractServiceTest { |
|
|
|
firmwareInfo.setTenantId(tenantId); |
|
|
|
|
|
|
|
thrown.expect(DataValidationException.class); |
|
|
|
thrown.expectMessage("The length of title should be equal or shorter than 255"); |
|
|
|
thrown.expectMessage("The length of title must be equal or shorter than 255"); |
|
|
|
|
|
|
|
otaPackageService.saveOtaPackageInfo(firmwareInfo, true); |
|
|
|
} |
|
|
|
@ -688,7 +688,7 @@ public abstract class BaseOtaPackageServiceTest extends AbstractServiceTest { |
|
|
|
firmwareInfo.setTitle(TITLE); |
|
|
|
|
|
|
|
firmwareInfo.setVersion(RandomStringUtils.random(257)); |
|
|
|
thrown.expectMessage("The length of version should be equal or shorter than 255"); |
|
|
|
thrown.expectMessage("The length of version must be equal or shorter than 255"); |
|
|
|
|
|
|
|
otaPackageService.saveOtaPackageInfo(firmwareInfo, true); |
|
|
|
} |
|
|
|
|