View Javadoc
1   /*
2    * MIT License
3    * Copyright (c) 2006-2025 JMockit developers
4    * See LICENSE file for full license text.
5    */
6   package mockit.internal.expectations.invocation;
7   
8   import edu.umd.cs.findbugs.annotations.NonNull;
9   
10  /**
11   * Thrown to indicate that one or more expected invocations still had not occurred by the end of the test.
12   */
13  public final class MissingInvocation extends Error {
14      private static final long serialVersionUID = 1L;
15  
16      public MissingInvocation(@NonNull String detailMessage) {
17          super(detailMessage);
18      }
19  
20      @Override
21      public String toString() {
22          return getMessage();
23      }
24  }