use of org.finra.herd.model.api.xml.S3PropertiesLocation in project herd by FINRAOS.
the class S3PropertiesLocationHelperTest method testValidateWhenBucketNameIsBlankThrowsError.
/**
* validate() throws an IllegalArgumentException when bucket name is blank.
*/
@Test
public void testValidateWhenBucketNameIsBlankThrowsError() {
S3PropertiesLocation s3PropertiesLocation = getS3PropertiesLocation();
s3PropertiesLocation.setBucketName(BLANK_TEXT);
testValidateThrowsError(s3PropertiesLocation, IllegalArgumentException.class, "S3 properties location bucket name must be specified.");
}
use of org.finra.herd.model.api.xml.S3PropertiesLocation in project herd by FINRAOS.
the class S3PropertiesLocationHelperTest method testValidateWhenObjectKeyIsBlankThrowsError.
/**
* validate() throws an IllegalArgumentException when key is blank.
*/
@Test
public void testValidateWhenObjectKeyIsBlankThrowsError() {
S3PropertiesLocation s3PropertiesLocation = getS3PropertiesLocation();
s3PropertiesLocation.setKey(BLANK_TEXT);
testValidateThrowsError(s3PropertiesLocation, IllegalArgumentException.class, "S3 properties location object key must be specified.");
}
use of org.finra.herd.model.api.xml.S3PropertiesLocation in project herd by FINRAOS.
the class S3PropertiesLocationHelperTest method getS3PropertiesLocation.
/**
* Creates a new {@link S3PropertiesLocation} with bucket name and key.
*
* @return {@link S3PropertiesLocation}
*/
private S3PropertiesLocation getS3PropertiesLocation() {
S3PropertiesLocation s3PropertiesLocation = new S3PropertiesLocation();
s3PropertiesLocation.setBucketName("testBucketName");
s3PropertiesLocation.setKey("testKey");
return s3PropertiesLocation;
}
Aggregations