Package: org.gradle.testkit.runner

## [Java] Class UnexpectedBuildSuccess

- org.gradle.testkit.runner.UnexpectedBuildSuccess

- Thrown when executing a build that was expected to fail, but succeeded.

  See Also:
    GradleRunner.buildAndFail
  Since:
    2.6

- - ### Constructor Summary

    Constructors
    Constructor and description
    `UnexpectedBuildSuccess (String message, BuildResult buildResult)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class UnexpectedBuildResultException` | `getBuildResult`
    `class RuntimeException` | `printStackTrace, printStackTrace, printStackTrace, fillInStackTrace, getCause, initCause, toString, getMessage, getLocalizedMessage, getStackTrace, setStackTrace, addSuppressed, getSuppressed, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll`

- - ### Constructor Detail

    - #### public UnexpectedBuildSuccess(String message, BuildResult buildResult)