Skip to content

Commit 2fc6ba5

Browse files
author
Darren Greaves
committed
Update tests after API changes
1 parent 7a87dee commit 2fc6ba5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2672
-2638
lines changed

src/test/java/com/flickr4java/flickr/test/CommonsInterfaceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public void testGetInstitutions() throws FlickrException {
3030
if (inst.getName().equals("The British Library")) {
3131
assertEquals(1386975388000L, inst.getDateLaunch().getTime());
3232
assertEquals("www.bl.uk", inst.getSiteUrl());
33-
assertEquals("http://www.bl.uk/aboutus/terms/copyright/index.html", inst.getLicenseUrl());
33+
assertEquals("https://www.bl.uk/about-us/terms-and-conditions/content-on-flickr-and-wikimedia-commons", inst.getLicenseUrl());
3434
assertEquals("http://flickr.com/photos/britishlibrary/", inst.getFlickrUrl());
3535
museumFound = true;
3636
}

src/test/java/com/flickr4java/flickr/test/PeopleInterfaceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void testGetInfo() throws FlickrException {
5151
assertNotNull(person);
5252
assertEquals(testProperties.getNsid(), person.getId());
5353
assertEquals(testProperties.getDisplayname(), person.getRealName());
54-
assertTrue(person.getMobileurl().startsWith("https://m.flickr.com/photostream.gne"));
54+
assertEquals(person.getMobileurl(), String.format("https://www.flickr.com/photos/%s/", testProperties.getUsername()));
5555
assertEquals(person.getPhotosurl(), String.format("https://www.flickr.com/photos/%s/", testProperties.getUsername()));
5656
assertEquals(person.getProfileurl(), String.format("https://www.flickr.com/people/%s/", testProperties.getUsername()));
5757
assertTrue(person.getSecureBuddyIconUrl().startsWith("https://"));

src/test/resources/payloads/get/flickr.activity.userComments.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<rsp stat="ok">
33
<items page="1" pages="1" perpage="10" total="1">
4-
<item type="photo" id="6551229785" owner="92023420@N00" ownername="boncey" realname="Darren Greaves" iconserver="5442" iconfarm="6" secret="09e9969ed9" server="7007" farm="8" media="photo" comments="1" notes="0" views="746" faves="0">
4+
<item type="photo" id="6551229785" owner="92023420@N00" ownername="boncey" realname="Darren Greaves" iconserver="5442" iconfarm="6" secret="09e9969ed9" server="7007" farm="8" media="photo" comments="1" notes="0" views="775" faves="0">
55
<title>Cheddar</title>
66
<activity>
77
<event type="comment" user="24573443@N04" username="boncey_test" iconserver="7008" iconfarm="8" dateadded="1328131942" is_muted="" realname="Darren Greaves" commentid="72157629134118271">Test comment.</event>

src/test/resources/payloads/get/flickr.activity.userPhotos.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<event type="tag" user="92023420@N00" username="boncey" iconserver="5442" iconfarm="6" dateadded="1530119216" is_muted="" realname="Darren Greaves">london</event>
88
</activity>
99
</item>
10-
<item type="photo" id="5628095432" owner="24573443@N04" ownername="boncey_test" realname="Darren Greaves" iconserver="7008" iconfarm="8" secret="678f9b91c1" server="5150" farm="6" media="photo" comments="1" notes="0" views="86" faves="2">
10+
<item type="photo" id="5628095432" owner="24573443@N04" ownername="boncey_test" realname="Darren Greaves" iconserver="7008" iconfarm="8" secret="678f9b91c1" server="5150" farm="6" media="photo" comments="1" notes="0" views="107" faves="2">
1111
<title>Robot</title>
1212
<activity>
1313
<event type="comment" user="92023420@N00" username="boncey" iconserver="5442" iconfarm="6" dateadded="1328212836" is_muted="" realname="Darren Greaves" commentid="72157629147135805">This looks familiar</event>

0 commit comments

Comments
 (0)