-
Notifications
You must be signed in to change notification settings - Fork 687
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
@W-17808637 Improving code coverage for core/internal module #14244
Closed
Closed
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
7cce1cd
Removed duplicate classes and consolidated tests
chris-ebert 6587d7c
Merge branch 'master' into W-17808637/improve_coverage
chris-ebert 525b5d9
Merge branch 'master' into W-17808637/improve_coverage
chris-ebert 024864d
Added tests for coverage
chris-ebert 6003669
Merge branch 'master' into W-17808637/improve_coverage
chris-ebert 67c6237
Merge branch 'master' into W-17808637/improve_coverage
chris-ebert a51fe2f
More tests
chris-ebert d0551ab
Added more tests
chris-ebert 9ed975e
Added more tests
chris-ebert d62b053
Added some basic coverage for the builders.
chris-ebert dd43bb4
Argh. More tests - coverage going up but not there yet.
chris-ebert f628ea4
Renamed tests to conform to convention
chris-ebert e6b4716
Added more tests. Refactored a tiny bit to make code more testable
chris-ebert a3ae9b4
Hooray. Coverage over 80%
chris-ebert 674226e
Merged two test classes that were testing the same thing.
chris-ebert 38f51f6
Fixed names of tests to conform with convention
chris-ebert 01cdb9a
Review item: reverted indirection for decorator constructor.
chris-ebert ef0a6f7
Merge branch 'master' into W-17808637/improve_coverage
chris-ebert d2926c3
W-17607446: Handle missing fields in DefaultMessageBuilder (#14281)
d4nielyan9 b08355f
W-17802891: [Windows] Fix race condition on LeakedThread by using lat…
lbarrios a10b628
W-18023026: add delegate methods for sse (#14291)
marianogonzalez 571ff54
W-17068193: Replace uses of javax.inject with jakarta.inject in Mule…
elrodro83 fde9ca1
Added some basic coverage for the builders.
chris-ebert 3c7df81
Updates from review
chris-ebert d7dd524
W-17774312: Move ArtifactDeclaration uses from spring-config to tooli…
elrodro83 c0e899d
W-17068193: Replace uses of javax.inject with jakarta.inject in Mule…
elrodro83 b69a296
Updates from review
chris-ebert 1c78012
Merge branch 'master' into W-17808637/improve_coverage
chris-ebert fd5f52e
Review: inject is supposed to be transient... so don't declare it here.
chris-ebert 6b7f772
Review: Added comments to tests
chris-ebert ef8a681
Merge branch 'master' into W-17808637/improve_coverage
chris-ebert 3f751b7
Added some checks where SonarQube was complaining.
chris-ebert 605e3f3
Added some basic coverage for the builders.
chris-ebert f71df17
W-17774312: Move ArtifactDeclaration uses from spring-config to tooli…
elrodro83 94ebc08
Fixed the test assert to allow for multiple calls of apply (some vers…
chris-ebert File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
95 changes: 0 additions & 95 deletions
95
core-tests/src/test/java/org/mule/runtime/core/internal/util/java/VersionRangeTestCase.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
*/ | ||
package org.mule.runtime.core.internal.processor.strategy; | ||
|
||
import static java.lang.Thread.currentThread; | ||
import static org.mule.runtime.core.api.construct.BackPressureReason.MAX_CONCURRENCY_EXCEEDED; | ||
import static org.mule.runtime.core.api.processor.ReactiveProcessor.ProcessingType.CPU_LITE; | ||
import static org.mule.runtime.core.api.processor.ReactiveProcessor.ProcessingType.CPU_LITE_ASYNC; | ||
|
@@ -70,7 +71,7 @@ public abstract class AbstractReactorStreamProcessingStrategy extends AbstractSt | |
int parallelism, | ||
int maxConcurrency, | ||
boolean maxConcurrencyEagerCheck) { | ||
super(subscribers, maxConcurrency, maxConcurrencyEagerCheck); | ||
super(subscribers, maxConcurrency, maxConcurrencyEagerCheck, () -> currentThread()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Made this testable so I could check that interrupt was being passed on when interrupted... |
||
this.cpuLightSchedulerSupplier = cpuLightSchedulerSupplier; | ||
this.parallelism = parallelism; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently nothing was using these methods... so yoink...