test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/S3PropertiesLocationHelperTest.java
test_class.identifier: S3PropertiesLocationHelperTest
test_class.superclass: extends AbstractServiceTest
test_case.body: @Test
      public void testValidateNoErrorsAndTrimmed()
      {
          S3PropertiesLocation s3PropertiesLocation = getS3PropertiesLocation();
  
          String expectedBucketName = s3PropertiesLocation.getBucketName();
          String expectedKey = s3PropertiesLocation.getKey();
  
          s3PropertiesLocation.setBucketName(BLANK_TEXT + s3PropertiesLocation.getBucketName() + BLANK_TEXT);
          s3PropertiesLocation.setKey(BLANK_TEXT + s3PropertiesLocation.getKey() + BLANK_TEXT);
  
          try
          {
              s3PropertiesLocationHelper.validate(s3PropertiesLocation);
  
              Assert.assertEquals("s3PropertiesLocation bucketName", expectedBucketName, s3PropertiesLocation.getBucketName());
              Assert.assertEquals("s3PropertiesLocation key", expectedKey, s3PropertiesLocation.getKey());
          }
          catch (Exception e)
          {
              Assert.fail("unexpected exception was thrown. " + e);
          }
      }
test_case.class_method_signature: S3PropertiesLocationHelperTest.testValidateNoErrorsAndTrimmed()
test_case.full_signature: @Test public void testValidateNoErrorsAndTrimmed()
test_case.identifier: testValidateNoErrorsAndTrimmed
test_case.invocations: getS3PropertiesLocation getBucketName getKey setBucketName getBucketName setKey getKey validate assertEquals getBucketName assertEquals getKey fail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testValidateNoErrorsAndTrimmed()
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/S3PropertiesLocationHelper.java
focal_class.identifier: S3PropertiesLocationHelper
focal_class.class_method_signature: S3PropertiesLocationHelper.validate(S3PropertiesLocation s3PropertiesLocation)
focal_class.full_signature: public void validate(S3PropertiesLocation s3PropertiesLocation)
focal_class.identifier: validate
focal_class.modifiers: public
focal_class.parameters: (S3PropertiesLocation s3PropertiesLocation)
focal_class.return: void
focal_class.signature: void validate(S3PropertiesLocation s3PropertiesLocation)
focal_method.body: public void validate(S3PropertiesLocation s3PropertiesLocation)
      {
          String bucketName = s3PropertiesLocation.getBucketName();
          String key = s3PropertiesLocation.getKey();
  
          Assert.hasText(bucketName, "S3 properties location bucket name must be specified.");
          Assert.hasText(key, "S3 properties location object key must be specified.");
  
          s3PropertiesLocation.setBucketName(bucketName.trim());
          s3PropertiesLocation.setKey(key.trim());
      }
focal_method.class_method_signature: S3PropertiesLocationHelper.validate(S3PropertiesLocation s3PropertiesLocation)
focal_method.full_signature: public void validate(S3PropertiesLocation s3PropertiesLocation)
focal_method.identifier: validate
focal_method.invocations: getBucketName getKey hasText hasText setBucketName trim setKey trim
focal_method.modifiers: public
focal_method.parameters: (S3PropertiesLocation s3PropertiesLocation)
focal_method.return: void
focal_method.signature: void validate(S3PropertiesLocation s3PropertiesLocation)