瀏覽代碼

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 年之前
父節點
當前提交
dc7f858152
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9
    0
      sonar-squid/src/main/java/org/sonar/squid/api/SquidConfiguration.java

+ 9
- 0
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;
}

}

Loading…
取消
儲存