Comments (8)
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.
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.
Mmh, can you programmatically tell your process engine to be the default one? I rely just on ProcessEngines.getDefaultProcessEngine() ...
from camunda-bpm-assert.
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.
Will do. Tomorrow hopefully
from camunda-bpm-assert.
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.
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.
Many thx for checking!
from camunda-bpm-assert.
Related Issues (20)
- Incorrect method name reference in IllegalArgumentException message HOT 2
- CAM-9915: Provide helper methods to handle external tasks HOT 1
- [CMMN] isCompleted does not work on completed executions HOT 1
- Missing docs for Sending Messages HOT 1
- .hasVariables should support Type information HOT 2
- Enable AssertThat to have the String Description argument rather than having to use describedAs HOT 2
- change module layout and groupId HOT 3
- CAM-10022: Introduce a maven wrapper HOT 4
- CAM-9915: Assertions on external tasks HOT 3
- job(activity) HelperMehod not working when there are multiple jobs HOT 1
- Tanslate bpmn files to english HOT 1
- please delete this issue
- Typo in the assertion error message HOT 1
- Bump assertj version to 3.20.2 HOT 4
- Why did you remove the UserGuide? HOT 2
- Improve log assertion failed HOT 2
- cmmn_assertions branch broken since camunda 7.6 HOT 2
- troubles using camunda-bpm-assert via bom from gradle HOT 10
- Release master branch as 2.0-alpha2 HOT 13
- hasPassed(activityId) throws java.lang.NoSuchMethodError HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from camunda-bpm-assert.