Skip to content

Commit f8ebd5a

Browse files
committed
Run tests as dry runs
1 parent cf23a3f commit f8ebd5a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

schemacrawler-ai-mcp/src/main/java/schemacrawler/tools/command/aichat/mcp/SchemaCrawlerMcpServer.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;
5-
6-
5+
import schemacrawler.tools.command.aichat.mcp.SpringAIUtility;
76

87
/**
98
* Spring Boot application for the SchemaCrawler AI MCP server. This class enables the Spring AI MCP
@@ -12,8 +11,12 @@
1211
@SpringBootApplication
1312
public class SchemaCrawlerMcpServer {
1413

15-
public static void main(final String[] args) {
14+
// Set isDryRun to true in a static initializer block so it's always set before any tests run
15+
static {
1616
SpringAIUtility.isDryRun = true;
17+
}
18+
19+
public static void main(final String[] args) {
1720
start();
1821
}
1922

0 commit comments

Comments
 (0)