JAVA-6222: Fix issues in the spring-boot-cassandre (#10988)

* JAVA-6222: Use parent-boot-2 in spring-boot-cassandre

* JAVA-6222: Fix PMD violation

* JAVA-6222: Cleanup pom.xml

* JAVA-6222: Fix app and package names

* JAVA-6222: Rename unit test to live test

Co-authored-by: Krzysztof Woyke <krzysztof.woyke.sp@lhsystems.com>
This commit is contained in:
kwoyke
2021-07-02 17:48:53 +02:00
committed by GitHub
parent 6be73ffa3f
commit fda111a5a1
5 changed files with 28 additions and 57 deletions
@@ -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;
@@ -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);
}
}
@@ -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;
@@ -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() {
}
}