test_class.declarator: buildInformation
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private BuildInformation buildInformation;
test_class.type: BuildInformation
test_class.var_name: buildInformation
test_class.declarator: herdRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private HerdRestController herdRestController;
test_class.type: HerdRestController
test_class.var_name: herdRestController
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/HerdRestControllerTest.java
test_class.identifier: HerdRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @Test
      public void testGetTimeoutValidationTooHighNumber() throws InterruptedException {
          try
          {
              herdRestController.getTimeoutValidation(1900);
              fail("Expected an IllegalArgumentException to be thrown");
          } catch (IllegalArgumentException e) {
              assertEquals("Specified value \"1900\" does not fall within the range of 0 to 1800 seconds.", e.getMessage());
          }
      }
test_case.class_method_signature: HerdRestControllerTest.testGetTimeoutValidationTooHighNumber()
test_case.full_signature: @Test public void testGetTimeoutValidationTooHighNumber()
test_case.identifier: testGetTimeoutValidationTooHighNumber
test_case.invocations: getTimeoutValidation fail assertEquals getMessage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetTimeoutValidationTooHighNumber()
focal_class.declarator: buildInformation
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private BuildInformation buildInformation;
focal_class.type: BuildInformation
focal_class.var_name: buildInformation
focal_class.declarator: MAX_WAIT_FOR_SECONDS = 1800
focal_class.modifier: private final static
focal_class.original_string: private final static Integer MAX_WAIT_FOR_SECONDS = 1800;
focal_class.type: Integer
focal_class.var_name: MAX_WAIT_FOR_SECONDS
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/HerdRestController.java
focal_class.identifier: HerdRestController
focal_class.class_method_signature: HerdRestController.getBuildInfo()
focal_class.full_signature: @ApiOperation(value = "Gets the build information") @RequestMapping(value = "/buildInfo", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_BUILD_INFO_GET) public BuildInformation getBuildInfo()
focal_class.identifier: getBuildInfo
focal_class.modifiers: @ApiOperation(value = "Gets the build information") @RequestMapping(value = "/buildInfo", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_BUILD_INFO_GET) public
focal_class.parameters: ()
focal_class.return: BuildInformation
focal_class.signature: BuildInformation getBuildInfo()
focal_class.class_method_signature: HerdRestController.getTimeoutValidation(@RequestParam(value = "waitForSeconds") Integer waitForSeconds)
focal_class.full_signature: @ApiOperation(value = "Validates infrastructure timeouts", hidden = true) @RequestMapping(value = "/timeoutValidation", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_TIMEOUT_VALIDATION_GET) public TimeoutValidationResponse getTimeoutValidation(@RequestParam(value = "waitForSeconds") Integer waitForSeconds)
focal_class.identifier: getTimeoutValidation
focal_class.modifiers: @ApiOperation(value = "Validates infrastructure timeouts", hidden = true) @RequestMapping(value = "/timeoutValidation", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_TIMEOUT_VALIDATION_GET) public
focal_class.parameters: (@RequestParam(value = "waitForSeconds") Integer waitForSeconds)
focal_class.return: TimeoutValidationResponse
focal_class.signature: TimeoutValidationResponse getTimeoutValidation(@RequestParam(value = "waitForSeconds") Integer waitForSeconds)
focal_class.superclass: extends HerdBaseController
focal_method.body: @ApiOperation(value = "Validates infrastructure timeouts", hidden = true)
      @RequestMapping(value = "/timeoutValidation", method = RequestMethod.GET)
      @Secured(SecurityFunctions.FN_TIMEOUT_VALIDATION_GET)
      public TimeoutValidationResponse getTimeoutValidation(@RequestParam(value = "waitForSeconds") Integer waitForSeconds) throws InterruptedException
      {
          Assert.isTrue(waitForSeconds != null, "waitForSeconds query parameter is required.");
          Assert.isTrue(waitForSeconds >= 0 && waitForSeconds <= MAX_WAIT_FOR_SECONDS,
              "Specified value \"" + waitForSeconds +"\" does not fall within the range of 0 to 1800 seconds.");
          Thread.sleep(waitForSeconds * 1000L);
          return new TimeoutValidationResponse("Successfully waited for " + waitForSeconds + " seconds.");
      }
focal_method.class_method_signature: HerdRestController.getTimeoutValidation(@RequestParam(value = "waitForSeconds") Integer waitForSeconds)
focal_method.full_signature: @ApiOperation(value = "Validates infrastructure timeouts", hidden = true) @RequestMapping(value = "/timeoutValidation", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_TIMEOUT_VALIDATION_GET) public TimeoutValidationResponse getTimeoutValidation(@RequestParam(value = "waitForSeconds") Integer waitForSeconds)
focal_method.identifier: getTimeoutValidation
focal_method.invocations: isTrue isTrue sleep
focal_method.modifiers: @ApiOperation(value = "Validates infrastructure timeouts", hidden = true) @RequestMapping(value = "/timeoutValidation", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_TIMEOUT_VALIDATION_GET) public
focal_method.parameters: (@RequestParam(value = "waitForSeconds") Integer waitForSeconds)
focal_method.return: TimeoutValidationResponse
focal_method.signature: TimeoutValidationResponse getTimeoutValidation(@RequestParam(value = "waitForSeconds") Integer waitForSeconds)