Class AssertionResult.Success

java.lang.Object
cloud.opencode.base.test.assertion.AssertionResult.Success
All Implemented Interfaces:
AssertionResult
Enclosing interface:
AssertionResult

public static final class AssertionResult.Success extends Object implements AssertionResult
Success assertion result. 成功断言结果。
Since:
JDK 25, opencode-base-test V1.0.0
Author:
Leon Soo www.LeonSoo.com
  • Method Details

    • passed

      public boolean passed()
      Description copied from interface: AssertionResult
      Whether the assertion passed. 断言是否通过。
      Specified by:
      passed in interface AssertionResult
      Returns:
      true if passed | 如果通过返回 true
    • toString

      public String toString()
      Overrides:
      toString in class Object