Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836752 - dev-java/fop-2.7: does not enable tests of module fop-core due to absence of a suitable mockito version
Summary: dev-java/fop-2.7: does not enable tests of module fop-core due to absence of ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 784263
  Show dependency tree
 
Reported: 2022-04-04 08:13 UTC by Volkmar W. Pogatzki
Modified: 2022-04-10 15:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log with mockito 4.4.0 (build.log,42.03 KB, text/plain)
2022-04-05 18:20 UTC, Volkmar W. Pogatzki
Details
build log (xmlgraphics-commons-2.7-build.log,22.50 KB, text/plain)
2022-04-06 12:02 UTC, Volkmar W. Pogatzki
Details

Note You need to log in before you can comment on or make changes to this bug.
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(-)