From dc7f858152844c62f5a8394dbfa938c181107d12 Mon Sep 17 00:00:00 2001 From: fmallet Date: Wed, 22 Sep 2010 12:49:53 +0000 Subject: [PATCH] Add a new property "stopSquidOnException" to the SquidConfiguration bean. This property is pretty useful when running integration tests in order to fail the tests when something wrong happens. --- .../java/org/sonar/squid/api/SquidConfiguration.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/SquidConfiguration.java b/sonar-squid/src/main/java/org/sonar/squid/api/SquidConfiguration.java index 30321f81504..b6d36d390f9 100644 --- a/sonar-squid/src/main/java/org/sonar/squid/api/SquidConfiguration.java +++ b/sonar-squid/src/main/java/org/sonar/squid/api/SquidConfiguration.java @@ -24,6 +24,7 @@ import java.nio.charset.Charset; public class SquidConfiguration { private Charset charset = Charset.defaultCharset(); + private boolean stopSquidOnException = false; public SquidConfiguration() { } @@ -36,4 +37,12 @@ public class SquidConfiguration { return charset; } + public void setStopSquidOnException(boolean stopSquidOnException) { + this.stopSquidOnException = stopSquidOnException; + } + + public boolean stopSquidOnException() { + return stopSquidOnException; + } + } \ No newline at end of file -- 2.39.5