程序包 org.junit.runner

类 Result

  • 所有已实现的接口:
    Serializable

    public class Result
    extends Object
    implements Serializable
    A Result collects and summarizes information from running multiple tests. All tests are counted -- additional information is collected from tests that fail.
    从以下版本开始:
    4.0
    另请参阅:
    序列化表格
    • 构造器详细资料

    • 方法详细资料

      • getRunCount

        public int getRunCount()
        返回:
        the number of tests run
      • getFailureCount

        public int getFailureCount()
        返回:
        the number of tests that failed during the run
      • getRunTime

        public long getRunTime()
        返回:
        the number of milliseconds it took to run the entire suite to run
      • getIgnoreCount

        public int getIgnoreCount()
        返回:
        the number of tests ignored during the run
      • wasSuccessful

        public boolean wasSuccessful()
        返回:
        true if all tests succeeded