Skip to content

Comments

LWDEV-8274 Use Context in multilimit order#263

Open
olpapchenko wants to merge 19 commits intomasterfrom
LWDEV-8274
Open

LWDEV-8274 Use Context in multilimit order#263
olpapchenko wants to merge 19 commits intomasterfrom
LWDEV-8274

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 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.

2 participants