Commit 0f74065f authored by Florian Schäfer's avatar Florian Schäfer

Rename `AbstractWikidataActionApiTest`

When building with Ant on Jenkins, that class was considered to be a test class but didn't contain any tests, so the build failed.
Fixes #16564 (in JOSM trac).
parent 4e13ffab
......@@ -12,7 +12,7 @@ import org.wikipedia.api.ApiQueryClient;
import org.wikipedia.api.wikidata_action.json.WbgetclaimsResult;
import org.wikipedia.testutils.ResourceFileLoader;
public class WbgetclaimsTest extends AbstractWikidataActionApiTest {
public class WbgetclaimsTest extends WikidataActionApiTestAbstract {
@Test
public void test() throws IOException, URISyntaxException {
......
......@@ -15,7 +15,7 @@ import org.wikipedia.api.ApiQueryClient;
import org.wikipedia.api.wikidata_action.json.WbgetentitiesResult;
import org.wikipedia.testutils.ResourceFileLoader;
public class WikidataActionApiQueryTest extends AbstractWikidataActionApiTest {
public class WikidataActionApiQueryTest extends WikidataActionApiTestAbstract {
@Test(expected = IllegalArgumentException.class)
public void testWbgetentities_nonQId() {
......
......@@ -18,7 +18,8 @@ import org.junit.Before;
import org.junit.Rule;
import org.openstreetmap.josm.testutils.JOSMTestRules;
public abstract class AbstractWikidataActionApiTest {
// Name must not end in "Test", so "Abstract" put at the end.
public abstract class WikidataActionApiTestAbstract {
@Rule
public WireMockRule wmRule = new WireMockRule(wireMockConfig().dynamicPort());
......
......@@ -6,11 +6,11 @@ import static org.junit.Assert.assertEquals;
import java.io.IOException;
import java.net.URISyntaxException;
import org.junit.Test;
import org.wikipedia.api.wikidata_action.AbstractWikidataActionApiTest;
import org.wikipedia.api.wikidata_action.WikidataActionApiTestAbstract;
import org.wikipedia.api.wikidata_action.WikidataActionApiQueryTest;
import org.wikipedia.testutils.ResourceFileLoader;
public class WikipediaSiteTest extends AbstractWikidataActionApiTest {
public class WikipediaSiteTest extends WikidataActionApiTestAbstract {
@Test
public void testSites() throws IOException, URISyntaxException {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment