Skip to content

Function name is incorrect. #2955

@ByoungJoonIm

Description

@ByoungJoonIm

I saw DoAnswerStyleStubbing class code.
I thought that below is correct.

boolean isSet() {
    return !answers.isEmpty();
}

After execute setAnswers function with answers, instance will return isSet is false.
I think it looks strange.

And InvocationContainerImpl also need to be changed as follow.

public boolean hasAnswersForStubbing() {
    return doAnswerStyleStubbing.isSet();
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions