Browse Source

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.

tags/2.6
fmallet 13 years ago
parent
commit
dc7f858152

+ 9
- 0
sonar-squid/src/main/java/org/sonar/squid/api/SquidConfiguration.java View File

@@ -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;
}

}

Loading…
Cancel
Save