Ant should go, gradle is the unified way #4371

This commit is contained in:
rusefillc 2022-07-28 16:24:20 -04:00
parent fb54b7fee2
commit ca43fdf454
4 changed files with 13 additions and 1 deletions

View File

@ -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"/>

View File

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

View File

@ -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" />

View File

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