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

[plugin-activeMQ] WIP Add possibility to send messages in ActiveMQ #4855

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vkepin
Copy link
Contributor

@vkepin vkepin commented Feb 27, 2024

No description provided.

@@ -0,0 +1,18 @@
project.description = 'VIVIDUS plugin for Apache Kafka'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
project.description = 'VIVIDUS plugin for Apache Kafka'
project.description = 'VIVIDUS plugin for Apache ActiveMQ'

testImplementation(group: 'org.junit.jupiter', name: 'junit-jupiter')
testImplementation platform(group: 'org.mockito', name: 'mockito-bom', version: '5.10.0')
testImplementation(group: 'org.mockito', name: 'mockito-junit-jupiter')
testImplementation(group: 'org.springframework.kafka', name: 'spring-kafka-test')
Copy link
Collaborator

Choose a reason for hiding this comment

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

to be removed

{
public static void main(String[] args)
{
System.out.println("Hello world!");
Copy link
Collaborator

Choose a reason for hiding this comment

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

private String password = "admin";
private String brokerUrl = "tcp://0.0.0.0:61616";

@When("I send message to activeMQ $type with name `$name` and payload:$payload")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
@When("I send message to activeMQ $type with name `$name` and payload:$payload")
@When("I send message to ActiveMQ $channel with name `$name` and payload:`$payload`")

@When("I send message to activeMQ $type with name `$name` and payload:$payload")
public void sendMessageToActiveMQ(MessageType type, String name, String payload) throws JMSException
{
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(brokerUrl);
Copy link
Collaborator

Choose a reason for hiding this comment

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

please make sure to reuse parts which shared across threads

Comment on lines +13 to +15
private String username = "admin";
private String password = "admin";
private String brokerUrl = "tcp://0.0.0.0:61616";
Copy link
Collaborator

Choose a reason for hiding this comment

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

make sure these will be configurable

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