Ant should go, gradle is the unified way #4371
This commit is contained in:
parent
fb54b7fee2
commit
ca43fdf454
|
@ -96,6 +96,7 @@
|
|||
<src path="../java_tools/proxy_server/src/test/java"/>
|
||||
<src path="io/src/main/java"/>
|
||||
<src path="io/src/test/java"/>
|
||||
<src path="io/src/testFixtures/java"/>
|
||||
<src path="luaformatter/src"/>
|
||||
<src path="models/src/main/java"/>
|
||||
<src path="models/src/test/java"/>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
plugins {
|
||||
id 'java-library'
|
||||
id 'java-test-fixtures'
|
||||
}
|
||||
|
||||
apply from: '../../android/dependencies.gradle'
|
||||
|
@ -29,5 +30,5 @@ dependencies {
|
|||
|
||||
// junit 4.13 does not mix well with httpclient :(
|
||||
testImplementation group: 'junit', name: 'junit', version: '4.8.2'
|
||||
testImplementation group: 'org.mockito', name: 'mockito-all', version: '1.10.19'
|
||||
testFixturesImplementation group: 'org.mockito', name: 'mockito-all', version: '1.10.19'
|
||||
}
|
|
@ -5,6 +5,7 @@
|
|||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/testFixtures/java" isTestSource="true" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
package com.rusefi;
|
||||
|
||||
import org.mockito.stubbing.Answer;
|
||||
|
||||
public class MockitoTestHelper {
|
||||
public static final Answer<?> NEGATIVE_ANSWER = invocation -> {
|
||||
throw new UnsupportedOperationException("Not mocked " + invocation);
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue