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

LWDEV-8274 Use Context in multilimit order #263

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open

Conversation

olpapchenko
Copy link
Contributor

No description provided.

# Conflicts:
#	src/main/kotlin/com/lykke/matching/engine/services/MultiLimitOrderService.kt
#	src/test/kotlin/com/lykke/matching/engine/config/TestApplicationContext.kt
#	src/test/kotlin/com/lykke/matching/engine/incoming/preprocessor/impl/SingleLimitOrderPreprocessorTest.kt
#	src/test/kotlin/com/lykke/matching/engine/utils/MessageBuilder.kt
# Conflicts:
#	src/dist/cfg/log4j.properties
#	src/main/kotlin/com/lykke/matching/engine/services/MultiLimitOrderService.kt
#	src/test/kotlin/com/lykke/matching/engine/config/TestApplicationContext.kt
#	src/test/kotlin/com/lykke/matching/engine/config/TestExecutionContext.kt
#	src/test/kotlin/com/lykke/matching/engine/performance/AbstractPerformanceTest.kt
return false
}

return true
}

fun writeResponse(messageWrapper: MessageWrapper, assetPairId: String, status: MessageStatus, message: String? = null) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is needed to override parrent writeResponse because it is invoked from the parent class and MultiOrderResponse must be returned always (I think it is not a problem not to return assetPairId in those invokes)

@RunWith(SpringRunner::class)
@SpringBootTest(classes = [(TestApplicationContext::class)])
@DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD)
class MultilimitOrerPreprocessorTest: AbstractTest() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong name

@@ -40,13 +43,21 @@ class MultilimitOrderPreprocessor(private val messageProcessingStatusHolder: Mes
if (fatallyInvalidValidationResult != null) {
logger.error("Fatal validation error occurred, ${fatallyInvalidValidationResult.message} " +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently this log is still not displayed properly due to context.multiLimitOrder.orders

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

# Conflicts:
#	src/test/kotlin/com/lykke/matching/engine/services/LimitOrderMassCancelServiceTest.kt
# Conflicts:
#	src/main/kotlin/com/lykke/matching/engine/services/validators/business/impl/LimitOrderBusinessValidatorImpl.kt
#	src/main/kotlin/com/lykke/matching/engine/services/validators/business/impl/StopOrderBusinessValidatorImpl.kt
#	src/main/kotlin/com/lykke/matching/engine/services/validators/common/OrderValidationUtils.kt
#	src/test/kotlin/com/lykke/matching/engine/config/TestApplicationContext.kt
#	src/test/kotlin/com/lykke/matching/engine/performance/AbstractPerformanceTest.kt
#	src/test/kotlin/com/lykke/matching/engine/services/validator/business/LimitOrderBusinessValidatorTest.kt
#	src/test/kotlin/com/lykke/matching/engine/utils/MessageBuilder.kt
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.

None yet

2 participants