Skip to content

Commit

Permalink
Change link to the repository in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bivashy committed May 21, 2024
1 parent 39fec9d commit 186e3e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/test/java/updates/message/MessageNewTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ void attachedLink() {

AttachedLink attachedLink = attachment.getLink();
assertNotNull(attachedLink);
assertEquals("https://github.com/yvasyliev/java-vk-bots-long-poll-api", attachedLink.getUrl());
assertEquals("yvasyliev/java-vk-bots-long-poll-api", attachedLink.getTitle());
assertEquals("https://github.com/bivashy/java-vk-bots-long-poll-api", attachedLink.getUrl());
assertEquals("bivashy/java-vk-bots-long-poll-api", attachedLink.getTitle());
assertEquals("github.com", attachedLink.getCaption());
assertEquals("A Java library to create VK bots using Bots Long Poll API - yvasyliev/java-vk-bots-long-poll-api", attachedLink.getDescription());
assertEquals("A Java library to create VK bots using Bots Long Poll API - bivashy/java-vk-bots-long-poll-api", attachedLink.getDescription());

Photo photo = attachedLink.getPhoto();
assertNotNull(photo);
Expand Down
6 changes: 3 additions & 3 deletions src/test/resource/updates/message_new/attached_link.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
{
"type": "link",
"link": {
"url": "https://github.com/yvasyliev/java-vk-bots-long-poll-api",
"title": "yvasyliev/java-vk-bots-long-poll-api",
"url": "https://github.com/bivashy/java-vk-bots-long-poll-api",
"title": "bivashy/java-vk-bots-long-poll-api",
"caption": "github.com",
"description": "A Java library to create VK bots using Bots Long Poll API - yvasyliev/java-vk-bots-long-poll-api",
"description": "A Java library to create VK bots using Bots Long Poll API - bivashy/java-vk-bots-long-poll-api",
"photo": {
"album_id": -27,
"date": 1619335586,
Expand Down

0 comments on commit 186e3e0

Please sign in to comment.