[midPoint-git] [Evolveum/midpoint] 78fe82: Fix error in test.log "ObjectNotFoundException:Obj...

charlesc noreply at github.com
Fri Jun 23 11:41:22 CEST 2023


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: 78fe825e67592930c79ad07528acf0f9afc22bd2
      https://github.com/Evolveum/midpoint/commit/78fe825e67592930c79ad07528acf0f9afc22bd2
  Author: charlesc <charles.dc.chen at gmail.com>
  Date:   2023-06-23 (Fri, 23 Jun 2023)

  Changed paths:
    M model/model-test/src/main/java/com/evolveum/midpoint/model/test/AbstractModelIntegrationTest.java

  Log Message:
  -----------
  Fix error in test.log "ObjectNotFoundException:Object of type 'SystemConfigurationType' with OID '00000000-0000-0000-0000-000000000001' was not found" (#201)

In method AbstractModelIntegrationTest.initSystemm, systemConfiguration object may be not initialized, it is up to subclass.
If subclass invokes super.initSystem method before adding systemConfiguration object, there is no systemConfiguration object available over the span of initSystem method.

Otherwise, we can suppose that systemConfiguration object must be available in method postInitSystem, so we can move codes required access systemConfiguration object to postInitSystem from initSystem.

Co-authored-by: cc <cc at xpie.cn>




More information about the midPoint-svn mailing list