Skip to content

Commit

Permalink
Fix formatting and add necessary suppressions
Browse files Browse the repository at this point in the history
Closes #43738
Signed-off-by: Vanio Begic <[email protected]>
  • Loading branch information
thecooldrop committed Feb 16, 2025
1 parent bd92a31 commit bd96459
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ class BeanDeclarationConfig {
MongoDBContainer container() {
return new MongoDBContainer(DockerImageName.parse("mongo:latest"));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

@SpringBootTest
@Import(BeanDeclarationConfig.class)
public class SpringTest {
class SpringTest {

@Autowired
private MongoDBContainer mongo;
Expand All @@ -34,4 +34,5 @@ public class SpringTest {
void doTest() {
System.out.println("Mongo db is running: " + this.mongo.isRunning());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@
@TestConfiguration(proxyBeanMethods = false)
@ImportTestcontainers(MyInterface.class)
class MyConfiguration {

}
1 change: 1 addition & 0 deletions src/checkstyle/checkstyle-suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
<suppress files="spring-boot-configuration-processor[\\/]src[\\/]test[\\/]java[\\/]org[\\/]springframework[\\/]boot[\\/]configurationsample[\\/]" checks="SpringDeprecatedCheck"/>
<suppress files="ImportTestcontainersTests\.java" checks="InterfaceIsType" />
<suppress files="MyContainers\.java" checks="InterfaceIsType" />
<suppress files="MyInterface\.java" checks="InterfaceIsType" />
<suppress files="SpringBootBanner\.java" checks="SpringLeadingWhitespace" />
<suppress files="LoadTimeWeaverAwareConsumerContainers\.java" checks="InterfaceIsType" />
</suppressions>

0 comments on commit bd96459

Please sign in to comment.