Search in sources :

Example 16 with AwsRegionVO

use of com.epam.pipeline.controller.vo.AwsRegionVO in project cloud-pipeline by epam.

the class AwsRegionManagerTest method createShouldThrowIfSpecifiedCorsRulesAreInvalid.

@Test
public void createShouldThrowIfSpecifiedCorsRulesAreInvalid() {
    final AwsRegionVO awsRegionVO = getAwsRegionVoBuilder().corsRules(INVALID_CORS_RULES).build();
    assertThrows(AwsRegionException.class, () -> awsRegionManager.create(awsRegionVO));
}
Also used : AwsRegionVO(com.epam.pipeline.controller.vo.AwsRegionVO) Test(org.junit.Test)

Aggregations

AwsRegionVO (com.epam.pipeline.controller.vo.AwsRegionVO)16 Test (org.junit.Test)15 AwsRegion (com.epam.pipeline.entity.region.AwsRegion)13 Matchers.isEmptyOrNullString (org.hamcrest.Matchers.isEmptyOrNullString)6 Preference (com.epam.pipeline.entity.preference.Preference)2 Date (java.util.Date)1