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:
+1
-1
@@ -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;
|
||||
+3
-3
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
+3
-3
@@ -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;
|
||||
-13
@@ -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() {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user