Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to create a Sandbox SiddhiAppRuntime for testing purposes. #1451

Merged
merged 4 commits into from
Aug 20, 2019

Conversation

suhothayan
Copy link
Contributor

@suhothayan suhothayan commented Aug 17, 2019

Add createSandboxSiddhiAppRuntime() to SiddhiManager to create a SiddhiApp without sources, sinks, and stores. such that it can be used for testing.

Fixes #1438

@codecov-io
Copy link

codecov-io commented Aug 17, 2019

Codecov Report

Merging #1451 into master will increase coverage by 0.09%.
The diff coverage is 93.33%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1451      +/-   ##
============================================
+ Coverage     67.75%   67.85%   +0.09%     
  Complexity       41       41              
============================================
  Files           634      634              
  Lines         26792    26807      +15     
  Branches       4232     4236       +4     
============================================
+ Hits          18154    18190      +36     
+ Misses         6868     6846      -22     
- Partials       1770     1771       +1
Impacted Files Coverage Δ Complexity Δ
...re/src/main/java/io/siddhi/core/SiddhiManager.java 62.96% <93.33%> (+6.9%) 0 <0> (ø) ⬇️
.../siddhi/core/util/event/handler/StreamHandler.java 62% <0%> (-12%) 0% <0%> (ø)
...ore/util/parser/helper/DefinitionParserHelper.java 74.89% <0%> (+0.41%) 0% <0%> (ø) ⬇️
...n/java/io/siddhi/core/stream/output/sink/Sink.java 72.93% <0%> (+0.75%) 0% <0%> (ø) ⬇️
.../io/siddhi/core/util/snapshot/SnapshotService.java 72.46% <0%> (+0.82%) 0% <0%> (ø) ⬇️
...ava/io/siddhi/core/stream/input/source/Source.java 84.05% <0%> (+1.44%) 0% <0%> (ø) ⬇️
.../io/siddhi/core/util/transport/InMemoryBroker.java 88.37% <0%> (+2.32%) 0% <0%> (ø) ⬇️
...java/io/siddhi/core/stream/input/InputHandler.java 80.64% <0%> (+3.22%) 0% <0%> (ø) ⬇️
.../io/siddhi/core/stream/output/sink/SinkMapper.java 42.1% <0%> (+7.01%) 0% <0%> (ø) ⬇️
...java/io/siddhi/core/stream/input/InputManager.java 91.3% <0%> (+8.69%) 0% <0%> (ø) ⬇️
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 30704d1...ea09ae1. Read the comment docs.

@pcnfernando pcnfernando merged commit 3ae30f2 into siddhi-io:master Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI/CD] Support starting SiddhiAppRuntime without network endpoints
3 participants