org.mockito.exceptions.misusing.UnfinishedStubbingException: Unfinished stubbing detected here:

Stack Overflow | P Kuijpers | 4 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Powermockito mocking static method returning a Mockito.mock

    Stack Overflow | 4 months ago | P Kuijpers
    org.mockito.exceptions.misusing.UnfinishedStubbingException: Unfinished stubbing detected here:

    Root Cause Analysis

    1. org.mockito.exceptions.misusing.UnfinishedStubbingException

      Unfinished stubbing detected here:

      at nl.mijnverzekering.entities.declareren.NotaPdfMetadataTest.mockFileSize()
    2. nl.mijnverzekering.entities
      NotaPdfMetadataTest.mockFileSize
      1. nl.mijnverzekering.entities.declareren.NotaPdfMetadataTest.mockFileSize(NotaPdfMetadataTest.java:273)
      1 frame