Build: #2875 failed

Job: RPM Workflow failed

Stages & jobs

  1. Build and Package

Incoming test(server settings, server settings)[148]: Test case result

The below summarizes the result of the test "Incoming test(server settings, server settings)[148]" in build 2,875 of Openfire - Nightly Maven RPM Build - RPM Workflow.
Description
Incoming test(server settings, server settings)[148]
Test class
org.jivesoftware.openfire.session.LocalIncomingServerSessionTest
Method
incomingTest(ServerSettings, ServerSettings)[148]
Duration
< 1 sec
Status
Failed (New Failure)

Error Log

org.mockito.exceptions.misusing.UnfinishedStubbingException: 
Unfinished stubbing detected here:
-> at org.jivesoftware.openfire.session.LocalIncomingServerSessionTest.setUpEach(LocalIncomingServerSessionTest.java:147)

E.g. thenReturn() may be missing.
Examples of correct stubbing:
    when(mock.isOk()).thenReturn(true);
    when(mock.isOk()).thenThrow(exception);
    doThrow(exception).when(mock).someVoidMethod();
Hints:
 1. missing thenReturn()
 2. you are trying to stub a final method, which is not supported
 3. you are stubbing the behaviour of another mock inside before 'thenReturn' instruction is completed, possibly on another thread

org.mockito.exceptions.misusing.UnfinishedStubbingException: 

Unfinished stubbing detected here:
-> at org.jivesoftware.openfire.session.LocalIncomingServerSessionTest.setUpEach(LocalIncomingServerSessionTest.java:147)

E.g. thenReturn() may be missing.
Examples of correct stubbing:
    when(mock.isOk()).thenReturn(true);
    when(mock.isOk()).thenThrow(exception);
    doThrow(exception).when(mock).someVoidMethod();
Hints:
 1. missing thenReturn()
 2. you are trying to stub a final method, which is not supported
 3. you are stubbing the behaviour of another mock inside before 'thenReturn' instruction is completed, possibly on another thread

	at org.jivesoftware.openfire.XMPPServer.getSessionManager(XMPPServer.java:1489)
	at org.jivesoftware.openfire.session.LocalIncomingServerSessionTest.setUpEach(LocalIncomingServerSessionTest.java:147)