Skip to content

Commit

Permalink
deps updated
Browse files Browse the repository at this point in the history
version updated
README.md updated
  • Loading branch information
Oleg Smelov committed Feb 1, 2024
1 parent 024d218 commit 3d17317
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 17 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# th2 act template (5.1.1)
# th2 act template (5.2.0)

## Overview

Expand Down Expand Up @@ -100,6 +100,9 @@ the `protobuf-description-base64` label. Such descriptors can be used to interac

## Release Notes

### 5.2.0
+ `multiSendMessage` method implemented

### 5.1.1
+ Use pins with `send` pin attribute for parsed messages sends.

Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ jar {
dependencies {
api platform('com.exactpro.th2:bom:4.5.0')

implementation 'com.exactpro.th2:common:5.7.2-dev'
implementation 'com.exactpro.th2:common:5.8.0-dev'
implementation 'com.exactpro.th2:common-utils:2.2.2-dev'
implementation 'com.exactpro.th2:grpc-act-template:4.2.0'
implementation 'com.exactpro.th2:grpc-check1:4.2.0-dev'
implementation 'com.exactpro.th2:grpc-check1:4.4.0-dev'

implementation "com.fasterxml.jackson.core:jackson-core"
implementation "com.fasterxml.jackson.core:jackson-databind"
Expand All @@ -106,7 +106,7 @@ dependencies {

testImplementation 'org.junit.jupiter:junit-jupiter:5.10.1'
testImplementation 'io.strikt:strikt-core:0.34.1'
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0"
testImplementation 'org.mockito.kotlin:mockito-kotlin:3.2.0'
}

test {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
release_version=5.1.1
release_version=5.2.0
nexus_url=
nexus_user=
nexus_password=
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/exactpro/th2/act/ActHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.exactpro.th2.act;

import com.exactpro.th2.act.grpc.ActGrpc.ActImplBase;
Expand Down Expand Up @@ -885,4 +886,4 @@ public ConnectionID getConnectionID() {
return connectionID;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021-2021 Exactpro (Exactpro Systems Limited)
* Copyright 2021-2024 Exactpro (Exactpro Systems Limited)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.exactpro.th2.act

import com.exactpro.th2.act.impl.SubscriptionManagerImpl
Expand All @@ -27,8 +28,8 @@ import com.exactpro.th2.common.utils.message.MessageHolder
import com.exactpro.th2.common.utils.message.toTransport
import com.exactpro.th2.common.utils.message.transport.toBatch
import com.exactpro.th2.common.utils.message.transport.toGroup
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.verify
import org.mockito.kotlin.mock
import org.mockito.kotlin.verify
import org.junit.jupiter.api.Test
import strikt.api.expect
import strikt.assertions.containsExactlyInAnyOrder
Expand All @@ -44,7 +45,7 @@ class TestBiDirectionalMessageReceiver {
.build()
private val manager = SubscriptionManagerImpl()
private val monitor: ResponseMonitor = mock { }
private val deliveryMetadata: DeliveryMetadata = mock { }
private val deliveryMetadata = DeliveryMetadata("test_tag_1", false)

private fun receiver(outgoing: CheckRule, incomingSupplier: (MessageHolder) -> CheckRule): AbstractMessageReceiver =
BiDirectionalMessageReceiver(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021-2022 Exactpro (Exactpro Systems Limited)
* Copyright 2021-2024 Exactpro (Exactpro Systems Limited)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.exactpro.th2.act.impl

import com.exactpro.th2.act.Listener
Expand All @@ -26,11 +27,11 @@ import com.exactpro.th2.common.schema.message.impl.rabbitmq.transport.ParsedMess
import com.exactpro.th2.common.utils.message.TransportMessageHolder
import com.exactpro.th2.common.utils.message.transport.toBatch
import com.exactpro.th2.common.utils.message.transport.toGroup
import com.nhaarman.mockitokotlin2.any
import com.nhaarman.mockitokotlin2.eq
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.never
import com.nhaarman.mockitokotlin2.verify
import org.mockito.kotlin.any
import org.mockito.kotlin.eq
import org.mockito.kotlin.mock
import org.mockito.kotlin.never
import org.mockito.kotlin.verify
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
import org.junit.jupiter.params.ParameterizedTest
Expand All @@ -39,7 +40,7 @@ import org.junit.jupiter.params.provider.EnumSource
class TestSubscriptionManagerImpl {

private val manager = SubscriptionManagerImpl()
private val deliveryMetadata: DeliveryMetadata = mock { }
private val deliveryMetadata = DeliveryMetadata("test_tag_1", false)

@Test
fun `correctly distributes the batches`() {
Expand Down

0 comments on commit 3d17317

Please sign in to comment.