Giter VIP home page Giter VIP logo

Comments (8)

martinschimak avatar martinschimak commented on September 23, 2024

I am hesitating to add that, since camunda-bpm-assert is at the moment totally unaware of any specific test framework used. Furthermore, you actually do not need to init() as long as you are using a default process engine... which is probably the case for 99.9% of test code. If you agree, I'd prefer to close that one.

from camunda-bpm-assert.

jangalinski avatar jangalinski commented on September 23, 2024

I really could use such a rule ... I prefer not to use the spring/xml configuration for the in memory engine, so I have to pass my programmatically configured process engine to camunda-bpm-assert, and I do this on every test. Maybe this would not belong into the core camunda-bpm-assert, but could be a separate module (with a -junit suffix maybe) that contains additional, framework specific tools?

from camunda-bpm-assert.

martinschimak avatar martinschimak commented on September 23, 2024

Mmh, can you programmatically tell your process engine to be the default one? I rely just on ProcessEngines.getDefaultProcessEngine() ...

from camunda-bpm-assert.

martinschimak avatar martinschimak commented on September 23, 2024

Since release of camunda-bpm-assert 1.1 it will also automatically look up any process engine which is the only one known to class 'ProcessEngines'. Can you please provide me some feedback whether this works for your scenario?

from camunda-bpm-assert.

jangalinski avatar jangalinski commented on September 23, 2024

Will do. Tomorrow hopefully

from camunda-bpm-assert.

martinschimak avatar martinschimak commented on September 23, 2024

I just changed the lookup code another time and I am quite convinced :-) that this should now also work in your scenario. Could you eventually test, whether you can use 1.2-SNAPSHOT of camunda-bpm-assert to work WITHOUT calling init(), just after having constructed your programmatically configured process engine? Many thx.

from camunda-bpm-assert.

jangalinski avatar jangalinski commented on September 23, 2024

Thanks Martin. I finally managed to test this, and it works perfectly as you described it, see latest needle example test: https://github.com/camunda/camunda-bpm-needle/blob/master/src/test/java/org/camunda/bpm/needle/example/TestProcessTest.java

So you can close this, I wont need any junit rule-chains to combine bpm-assert and bpm-needle anymore.

from camunda-bpm-assert.

martinschimak avatar martinschimak commented on September 23, 2024

Many thx for checking!

from camunda-bpm-assert.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.