mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-02 19:27:57 +08:00
PL-8228 Ability to change logging options for tests using command line parameters
This commit is contained in:
parent
3f9edce5ee
commit
28c1034fd7
@ -23,6 +23,7 @@ import com.haulmont.cuba.core.global.*;
|
||||
import com.haulmont.cuba.core.sys.AppContext;
|
||||
import mockit.Mocked;
|
||||
import mockit.NonStrictExpectations;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@ -71,6 +72,13 @@ public class CubaClientTestCase {
|
||||
|
||||
protected TestMessageTools messageTools;
|
||||
|
||||
public CubaClientTestCase() {
|
||||
String property = System.getProperty("logback.configurationFile");
|
||||
if (StringUtils.isBlank(property)) {
|
||||
System.setProperty("logback.configurationFile", "test-logback.xml");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add entities package to build metadata from. Should be invoked by concrete test classes in their @Before method.
|
||||
* @param pack package FQN, e.g. <code>com.haulmont.cuba.core.entity</code>
|
||||
|
Loading…
Reference in New Issue
Block a user