[LIB-8] New entities fields tests
authorgotty <gotty@fb0bcced-7025-49ed-a12f-f98bce993226>
Thu, 7 Nov 2019 00:44:35 +0000 (00:44 +0000)
committergotty <gotty@fb0bcced-7025-49ed-a12f-f98bce993226>
Thu, 7 Nov 2019 00:44:35 +0000 (00:44 +0000)
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
src/test/java/org/hedgecode/snooker/json/JsonMatchTest.java
src/test/java/org/hedgecode/snooker/json/JsonPlayerTest.java

index bdbdf69..e31b605 100644 (file)
@@ -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());
     }
 
 }
index 0895582..220205f 100644 (file)
@@ -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());
index 9b3ae63..cb04b08 100644 (file)
@@ -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());
     }