Skip to content

Commit

Permalink
Update tests after API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Darren Greaves committed Apr 28, 2024
1 parent 7a87dee commit 2fc6ba5
Show file tree
Hide file tree
Showing 42 changed files with 2,672 additions and 2,638 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void testGetInstitutions() throws FlickrException {
if (inst.getName().equals("The British Library")) {
assertEquals(1386975388000L, inst.getDateLaunch().getTime());
assertEquals("www.bl.uk", inst.getSiteUrl());
assertEquals("http://www.bl.uk/aboutus/terms/copyright/index.html", inst.getLicenseUrl());
assertEquals("https://www.bl.uk/about-us/terms-and-conditions/content-on-flickr-and-wikimedia-commons", inst.getLicenseUrl());
assertEquals("http://flickr.com/photos/britishlibrary/", inst.getFlickrUrl());
museumFound = true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void testGetInfo() throws FlickrException {
assertNotNull(person);
assertEquals(testProperties.getNsid(), person.getId());
assertEquals(testProperties.getDisplayname(), person.getRealName());
assertTrue(person.getMobileurl().startsWith("https://m.flickr.com/photostream.gne"));
assertEquals(person.getMobileurl(), String.format("https://www.flickr.com/photos/%s/", testProperties.getUsername()));
assertEquals(person.getPhotosurl(), String.format("https://www.flickr.com/photos/%s/", testProperties.getUsername()));
assertEquals(person.getProfileurl(), String.format("https://www.flickr.com/people/%s/", testProperties.getUsername()));
assertTrue(person.getSecureBuddyIconUrl().startsWith("https://"));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<items page="1" pages="1" perpage="10" total="1">
<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">
<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">
<title>Cheddar</title>
<activity>
<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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<event type="tag" user="92023420@N00" username="boncey" iconserver="5442" iconfarm="6" dateadded="1530119216" is_muted="" realname="Darren Greaves">london</event>
</activity>
</item>
<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">
<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">
<title>Robot</title>
<activity>
<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>
Expand Down
Loading

0 comments on commit 2fc6ba5

Please sign in to comment.