Skip to content

Commit

Permalink
iluwatar#2898 modified parent pom
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehspresso committed Apr 23, 2024
1 parent 35bd486 commit b57721a
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 34 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
<sonar.projectName>Java Design Patterns</sonar.projectName>
</properties>
<modules>
<module>publish-subscribe</module>
<module>abstract-factory</module>
<module>collecting-parameter</module>
<module>monitor</module>
Expand Down
18 changes: 1 addition & 17 deletions publish-subscribe/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,35 +35,19 @@
<artifactId>java-design-patterns</artifactId>
<version>1.26.0-SNAPSHOT</version>
</parent>
<artifactId>publishsubscribe</artifactId>
<artifactId>publish-subscribe</artifactId>

<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-core</artifactId>
<version>5.7.0</version>
</dependency>
<dependency>
<groupId>org.apache.xbean</groupId>
<artifactId>xbean-spring</artifactId>
<version>4.24</version>
</dependency>
<dependency>
<groupId>org.apache.activemq.tooling</groupId>
<artifactId>activemq-junit</artifactId>
<version>6.1.1</version>
<scope>test</scope>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.iluwatar.publishsubscribe;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.event.Level;
import javax.jms.BytesMessage;
import javax.jms.JMSException;
import javax.jms.Message;
Expand All @@ -25,7 +24,7 @@ public class Borrower implements MessageListener {
private TopicConnection tConnection;
private TopicSession tSession;
private Topic topic;
private double currentRate;
private final double currentRate;
private static final String ERROR = "An error has occured!";
private double newRate;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,12 @@
package com.iluwatar.publishsubscribe;

import org.apache.activemq.Message;
import org.apache.activemq.broker.Broker;
import org.apache.activemq.broker.BrokerService;
import org.apache.activemq.command.ActiveMQTextMessage;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import javax.jms.BytesMessage;
import javax.jms.JMSException;
import javax.jms.TextMessage;
import java.io.BufferedOutputStream;
import java.io.ByteArrayOutputStream;
import java.io.OutputStream;
import java.io.PrintStream;
import java.sql.SQLOutput;

import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

public class BorrowerTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

import org.apache.activemq.broker.BrokerService;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

public class LenderTest {
Expand Down

0 comments on commit b57721a

Please sign in to comment.