Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
yvasyliev committed Nov 4, 2023
1 parent 02aaa4b commit 8f49c41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 37 deletions.
31 changes: 0 additions & 31 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,47 +99,16 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.apache.logging.log4j</groupId>-->
<!-- <artifactId>log4j-spring-boot</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>org.telegram</groupId>
<artifactId>telegrambots-spring-boot-starter</artifactId>
<version>6.8.0</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.telegram</groupId>-->
<!-- <artifactId>telegrambots</artifactId>-->
<!-- <version>6.8.0</version>-->
<!-- <exclusions>-->
<!-- &lt;!&ndash; To omit java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlElement on startup &ndash;&gt;-->
<!-- <exclusion>-->
<!-- <groupId>com.fasterxml.jackson.module</groupId>-->
<!-- <artifactId>jackson-module-jaxb-annotations</artifactId>-->
<!-- </exclusion>-->
<!-- &lt;!&ndash; To omit transitive vulnerability &ndash;&gt;-->
<!-- <exclusion>-->
<!-- <groupId>commons-codec</groupId>-->
<!-- <artifactId>commons-codec</artifactId>-->
<!-- </exclusion>-->
<!-- </exclusions>-->
<!-- </dependency>-->
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.15.4</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.apache.logging.log4j</groupId>-->
<!-- <artifactId>log4j-slf4j2-impl</artifactId>-->
<!-- <version>2.20.0</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.apache.logging.log4j</groupId>-->
<!-- <artifactId>log4j-core</artifactId>-->
<!-- <version>2.20.0</version>-->
<!-- </dependency>-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
package com.github.yvasyliev.tc;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.github.yvasyliev.config.RedTelBotConfiguration;
import com.github.yvasyliev.Application;
import com.github.yvasyliev.model.dto.post.Post;
import com.github.yvasyliev.service.state.StateManager;
import com.github.yvasyliev.service.telegram.PostManager;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.core.io.ClassPathResource;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringExtension;

import java.io.IOException;

@ExtendWith(SpringExtension.class)
@ContextConfiguration(classes = RedTelBotConfiguration.class)
@SpringBootTest(classes = Application.class)
abstract class AbstractRedditPostTest {
@Autowired
ObjectMapper objectMapper;
Expand Down

0 comments on commit 8f49c41

Please sign in to comment.