Skip to content
Snippets Groups Projects

mockito 5 workaround

Merged Michi Hostettler requested to merge feature/mockito-5-workaround into master

fix JAPC SET with mockito 5

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
3 3
4 4 import pytest
5 5
6 from pyjapc.tests.conftest import japc_set
  • Philip Elson
    Philip Elson @pelson started a thread on commit aa1f061e
  • 118 118 yield mock
    119 119 mock.resetToDefault()
    120 120 mock.mockNoService()
    121
    122 @pytest.fixture
    123 def japc_set(jvm):
    124 cern = jp.JPackage('cern')
    125 JapcUtils = cern.japc.core.util.JapcUtils
    • Owner

      This works nicely. There is clearly a problem with JNI, JPype and Mockito 5, but this at least moves things forwards to allow us to have functional testing again. :thumbsup:

  • Michi Hostettler requested review from @pelson and @isinkare

    requested review from @pelson and @isinkare

  • Philip Elson mentioned in commit c47e93c6

    mentioned in commit c47e93c6

  • merged

  • Please register or sign in to reply
    Loading