-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
base: master
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,18 @@ | |||
project.description = 'VIVIDUS plugin for Apache Kafka' |
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.
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') |
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.
to be removed
{ | ||
public static void main(String[] args) | ||
{ | ||
System.out.println("Hello world!"); |
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.
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") |
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.
@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); |
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.
please make sure to reuse parts which shared across threads
private String username = "admin"; | ||
private String password = "admin"; | ||
private String brokerUrl = "tcp://0.0.0.0:61616"; |
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.
make sure these will be configurable
No description provided.