From 5f3c185a78588a9d4f6a5f3cc459571de6d80c89 Mon Sep 17 00:00:00 2001 From: gotty Date: Thu, 7 Nov 2019 00:44:35 +0000 Subject: [PATCH] [LIB-8] New entities fields tests git-svn-id: https://svn.hedgecode.org/lib/snooker-score-api/trunk@175 fb0bcced-7025-49ed-a12f-f98bce993226 --- src/test/java/org/hedgecode/snooker/json/JsonEventTest.java | 7 ++++--- src/test/java/org/hedgecode/snooker/json/JsonMatchTest.java | 2 +- src/test/java/org/hedgecode/snooker/json/JsonPlayerTest.java | 5 +++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/hedgecode/snooker/json/JsonEventTest.java b/src/test/java/org/hedgecode/snooker/json/JsonEventTest.java index bdbdf69..e31b605 100644 --- a/src/test/java/org/hedgecode/snooker/json/JsonEventTest.java +++ b/src/test/java/org/hedgecode/snooker/json/JsonEventTest.java @@ -63,7 +63,6 @@ public class JsonEventTest extends AbstractJsonTest { assertEquals(expected.country(), actual.country()); assertEquals(expected.discipline(), actual.discipline()); assertEquals(expected.mainEventId(), actual.mainEventId()); - assertEquals(expected.mainEvent(), actual.mainEvent()); assertEquals(expected.sex(), actual.sex()); assertEquals(expected.ageGroup(), actual.ageGroup()); assertEquals(expected.url(), actual.url()); @@ -78,7 +77,9 @@ public class JsonEventTest extends AbstractJsonTest { assertEquals(expected.format(), actual.format()); assertEquals(expected.formatType(), actual.formatType()); assertEquals(expected.twitter(), actual.twitter()); + assertEquals(expected.twitterUrl(), actual.twitterUrl()); assertEquals(expected.hashTag(), actual.hashTag()); + assertEquals(expected.hashTagUrl(), actual.hashTagUrl()); assertEquals(expected.conversionRate(), actual.conversionRate(), 0.001); assertEquals(expected.allRoundsAdded(), actual.allRoundsAdded()); assertEquals(expected.photoUrls(), actual.photoUrls()); @@ -88,8 +89,8 @@ public class JsonEventTest extends AbstractJsonTest { assertEquals(expected.numResults(), actual.numResults()); assertEquals(expected.note(), actual.note()); assertEquals(expected.commonNote(), actual.commonNote()); - assertEquals(expected.defendingChampion(), actual.defendingChampion()); - assertEquals(expected.previousEdition(), actual.previousEdition()); + assertEquals(expected.defendingChampionId(), actual.defendingChampionId()); + assertEquals(expected.previousEditionId(), actual.previousEditionId()); } } diff --git a/src/test/java/org/hedgecode/snooker/json/JsonMatchTest.java b/src/test/java/org/hedgecode/snooker/json/JsonMatchTest.java index 0895582..220205f 100644 --- a/src/test/java/org/hedgecode/snooker/json/JsonMatchTest.java +++ b/src/test/java/org/hedgecode/snooker/json/JsonMatchTest.java @@ -71,7 +71,7 @@ public class JsonMatchTest extends AbstractJsonTest { assertEquals(expected.estimated(), actual.estimated()); assertEquals(expected.type(), actual.type()); assertEquals(expected.tableNo(), actual.tableNo()); - assertEquals(expected.videoURL(), actual.videoURL()); + assertEquals(expected.videoUrl(), actual.videoUrl()); assertEquals(expected.initDate(), actual.initDate()); assertEquals(expected.modDate(), actual.modDate()); assertEquals(expected.startDate(), actual.startDate()); diff --git a/src/test/java/org/hedgecode/snooker/json/JsonPlayerTest.java b/src/test/java/org/hedgecode/snooker/json/JsonPlayerTest.java index 9b3ae63..cb04b08 100644 --- a/src/test/java/org/hedgecode/snooker/json/JsonPlayerTest.java +++ b/src/test/java/org/hedgecode/snooker/json/JsonPlayerTest.java @@ -59,16 +59,21 @@ public class JsonPlayerTest extends AbstractJsonTest { assertEquals(expected.teamNumber(), actual.teamNumber()); assertEquals(expected.teamSeason(), actual.teamSeason()); assertEquals(expected.shortName(), actual.shortName()); + assertEquals(expected.fullName(), actual.fullName()); assertEquals(expected.nationality(), actual.nationality()); assertEquals(expected.sex(), actual.sex()); assertEquals(expected.bioPage(), actual.bioPage()); assertEquals(expected.born(), actual.born()); assertEquals(expected.twitter(), actual.twitter()); + assertEquals(expected.twitterUrl(), actual.twitterUrl()); assertEquals(expected.surnameFirst(), actual.surnameFirst()); assertEquals(expected.license(), actual.license()); assertEquals(expected.club(), actual.club()); assertEquals(expected.url(), actual.url()); assertEquals(expected.photo(), actual.photo()); + assertEquals(expected.photoSource(), actual.photoSource()); + assertEquals(expected.firstSeasonAsPro(), actual.firstSeasonAsPro()); + assertEquals(expected.lastSeasonAsPro(), actual.lastSeasonAsPro()); assertEquals(expected.info(), actual.info()); } -- 2.10.0