Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 836752

Summary: dev-java/fop-2.7: does not enable tests of module fop-core due to absence of a suitable mockito version
Product: Gentoo Linux Reporter: Volkmar W. Pogatzki <gentoo>
Component: Current packagesAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal CC: fordfrog
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/24920
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 784263    
Attachments: Build log with mockito 4.4.0
build log

Description Volkmar W. Pogatzki 2022-04-04 08:13:26 UTC
# error: cannot find symbol
# import static org.mockito.ArgumentMatchers.anyInt;
Comment 1 Volkmar W. Pogatzki 2022-04-05 18:20:18 UTC
Created attachment 768905 [details]
Build log with mockito 4.4.0

With mockito 4.4.0 the errors are:

 * Compiling ...
warning: [options] bootstrap class path not set in conjunction with -source 8
fop-core/src/test/java/org/apache/fop/render/intermediate/BorderPainterTestCase.java:33: error: cannot find symbol
import static org.mockito.Mockito.verifyZeroInteractions;
^
  symbol:   static verifyZeroInteractions
  location: class Mockito
fop-core/src/test/java/org/apache/fop/render/intermediate/BorderPainterTestCase.java:99: error: cannot find symbol
        verifyZeroInteractions(graphicsPainter);
        ^
  symbol:   method verifyZeroInteractions(GraphicsPainter)
  location: class BorderPainterTestCase
fop-core/src/test/java/org/apache/fop/render/intermediate/BorderPainterTestCase.java:122: error: cannot find symbol
        verifyZeroInteractions(graphicsPainter);
        ^
  symbol:   method verifyZeroInteractions(GraphicsPainter)
  location: class BorderPainterTestCase
Comment 2 Volkmar W. Pogatzki 2022-04-06 12:02:27 UTC
Created attachment 769016 [details]
build log

With mockito-4.4.0:4 I am getting NPEs
Comment 3 Volkmar W. Pogatzki 2022-04-06 12:05:47 UTC
Comment on attachment 769016 [details]
build log

Invalid, wrong bug number, sorry.
Comment 4 Larry the Git Cow gentoo-dev 2022-04-10 15:16:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad23555f42b141a10663229c379349a6408b02c5

commit ad23555f42b141a10663229c379349a6408b02c5
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2022-04-05 18:06:30 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2022-04-10 15:12:53 +0000

    dev-java/fop: Enable tests on fop-core
    
    Closes: https://bugs.gentoo.org/836752
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/24920
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 dev-java/fop/fop-2.7.ebuild | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)