diff --git a/spring-boot-modules/spring-boot-cassandre/pom.xml b/spring-boot-modules/spring-boot-cassandre/pom.xml
index 75163d2c2b..c4672c8887 100644
--- a/spring-boot-modules/spring-boot-cassandre/pom.xml
+++ b/spring-boot-modules/spring-boot-cassandre/pom.xml
@@ -3,66 +3,50 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
-
- org.springframework.boot
- spring-boot-starter-parent
- 2.4.5
-
-
- com.example
- demo
- 0.0.1-SNAPSHOT
- Cassandre trading bot tutorial
+ spring-boot-cassandre
+ jar
+ spring-boot-cassandre
Cassandre trading bot tutorial
-
- 11
-
-
-
- org.springframework.boot
- spring-boot-starter
-
+
+ com.baeldung
+ parent-boot-2
+ 0.0.1-SNAPSHOT
+ ../../parent-boot-2
+
+
+
tech.cassandre.trading.bot
cassandre-trading-bot-spring-boot-starter
- 4.2.1
+ ${cassandre.trading.bot.version}
org.knowm.xchange
xchange-kucoin
- 5.0.7
+ ${xchange-kucoin.version}
org.hsqldb
hsqldb
- 2.5.1
+ ${hsqldb.version}
-
- org.springframework.boot
- spring-boot-starter-test
- test
-
-
tech.cassandre.trading.bot
cassandre-trading-bot-spring-boot-starter-test
- 4.2.1
+ ${cassandre.trading.bot.version}
test
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
- 2.4.5
-
-
-
+
+ 11
+ 4.2.1
+ 5.0.7
+ 2.5.1
+
diff --git a/spring-boot-modules/spring-boot-cassandre/src/main/java/com/example/demo/MyFirstStrategy.java b/spring-boot-modules/spring-boot-cassandre/src/main/java/com/baeldung/trading/MyFirstStrategy.java
similarity index 98%
rename from spring-boot-modules/spring-boot-cassandre/src/main/java/com/example/demo/MyFirstStrategy.java
rename to spring-boot-modules/spring-boot-cassandre/src/main/java/com/baeldung/trading/MyFirstStrategy.java
index ea8ae74aa6..92ef379a66 100644
--- a/spring-boot-modules/spring-boot-cassandre/src/main/java/com/example/demo/MyFirstStrategy.java
+++ b/spring-boot-modules/spring-boot-cassandre/src/main/java/com/baeldung/trading/MyFirstStrategy.java
@@ -1,4 +1,4 @@
-package com.example.demo;
+package com.baeldung.trading;
import static tech.cassandre.trading.bot.dto.position.PositionStatusDTO.CLOSED;
import static tech.cassandre.trading.bot.dto.position.PositionStatusDTO.OPENED;
diff --git a/spring-boot-modules/spring-boot-cassandre/src/main/java/com/example/demo/DemoApplication.java b/spring-boot-modules/spring-boot-cassandre/src/main/java/com/baeldung/trading/TradingBotApplication.java
similarity index 60%
rename from spring-boot-modules/spring-boot-cassandre/src/main/java/com/example/demo/DemoApplication.java
rename to spring-boot-modules/spring-boot-cassandre/src/main/java/com/baeldung/trading/TradingBotApplication.java
index 094d95b93f..021c6c1d3b 100644
--- a/spring-boot-modules/spring-boot-cassandre/src/main/java/com/example/demo/DemoApplication.java
+++ b/spring-boot-modules/spring-boot-cassandre/src/main/java/com/baeldung/trading/TradingBotApplication.java
@@ -1,13 +1,13 @@
-package com.example.demo;
+package com.baeldung.trading;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
-public class DemoApplication {
+public class TradingBotApplication {
public static void main(String[] args) {
- SpringApplication.run(DemoApplication.class, args);
+ SpringApplication.run(TradingBotApplication.class, args);
}
}
diff --git a/spring-boot-modules/spring-boot-cassandre/src/test/java/com/example/demo/MyFirstStrategyUnitTest.java b/spring-boot-modules/spring-boot-cassandre/src/test/java/com/baeldung/trading/MyFirstStrategyLiveTest.java
similarity index 94%
rename from spring-boot-modules/spring-boot-cassandre/src/test/java/com/example/demo/MyFirstStrategyUnitTest.java
rename to spring-boot-modules/spring-boot-cassandre/src/test/java/com/baeldung/trading/MyFirstStrategyLiveTest.java
index bf7c353821..74986df971 100644
--- a/spring-boot-modules/spring-boot-cassandre/src/test/java/com/example/demo/MyFirstStrategyUnitTest.java
+++ b/spring-boot-modules/spring-boot-cassandre/src/test/java/com/baeldung/trading/MyFirstStrategyLiveTest.java
@@ -1,4 +1,4 @@
-package com.example.demo;
+package com.baeldung.trading;
import static org.awaitility.Awaitility.await;
import static org.junit.jupiter.api.Assertions.assertTrue;
@@ -22,9 +22,9 @@ import tech.cassandre.trading.bot.test.mock.TickerFluxMock;
@SpringBootTest
@Import(TickerFluxMock.class)
@DisplayName("Simple strategy test")
-public class MyFirstStrategyUnitTest {
+public class MyFirstStrategyLiveTest {
- private final Logger logger = LoggerFactory.getLogger(MyFirstStrategyUnitTest.class);
+ private final Logger logger = LoggerFactory.getLogger(MyFirstStrategyLiveTest.class);
@Autowired
private MyFirstStrategy strategy;
diff --git a/spring-boot-modules/spring-boot-cassandre/src/test/java/com/example/demo/DemoApplicationTests.java b/spring-boot-modules/spring-boot-cassandre/src/test/java/com/example/demo/DemoApplicationTests.java
deleted file mode 100644
index eaa99696e2..0000000000
--- a/spring-boot-modules/spring-boot-cassandre/src/test/java/com/example/demo/DemoApplicationTests.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.example.demo;
-
-import org.junit.jupiter.api.Test;
-import org.springframework.boot.test.context.SpringBootTest;
-
-@SpringBootTest
-class DemoApplicationTests {
-
- @Test
- void contextLoads() {
- }
-
-}