From 75545b6469ab7cff0473b38cd7434382438f71dd Mon Sep 17 00:00:00 2001 From: bivashy Date: Wed, 22 May 2024 01:15:37 +0500 Subject: [PATCH 1/6] Replace mention of yvasyliev with bivashy --- README.md | 26 ++++++++++++++------------ pom.xml | 29 ++++++++++++++--------------- 2 files changed, 28 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 5407513f..dce2327c 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.yvasyliev/java-vk-bots-longpoll-api/badge.svg?kill_cache=1)](https://search.maven.org/artifact/com.github.yvasyliev/java-vk-bots-longpoll-api) -[![javadoc](https://javadoc.io/badge2/com.github.yvasyliev/java-vk-bots-longpoll-api/javadoc.svg?kill_cache=1)](https://javadoc.io/doc/com.github.yvasyliev/java-vk-bots-longpoll-api) -[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/yvasyliev/java-vk-bots-long-poll-api/blob/master/LICENSE) -![Build status](https://github.com/yvasyliev/java-vk-bots-long-poll-api/actions/workflows/build-maven-project.yml/badge.svg?branch=master) -![CodeQL](https://github.com/yvasyliev/java-vk-bots-long-poll-api/workflows/CodeQL/badge.svg) -[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) -[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) +[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.bivashy/java-vk-bots-longpoll-api/badge.svg?kill_cache=1)](https://search.maven.org/artifact/io.github.bivashy/java-vk-bots-longpoll-api) +[![javadoc](https://javadoc.io/badge2/io.github.bivashy/java-vk-bots-longpoll-api/javadoc.svg?kill_cache=1)](https://javadoc.io/doc/io.github.bivashy/java-vk-bots-longpoll-api) +[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/bivashy/java-vk-bots-long-poll-api/blob/master/LICENSE) +![Build status](https://github.com/bivashy/java-vk-bots-long-poll-api/actions/workflows/build-maven-project.yml/badge.svg?branch=master) +![CodeQL](https://github.com/bivashy/java-vk-bots-long-poll-api/workflows/CodeQL/badge.svg) +[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) +[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) [![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) @@ -50,12 +50,12 @@ This library uses the next third-party dependencies: 3. Add the library to your `Maven` project: ```xml - com.github.yvasyliev + io.github.bivashy java-vk-bots-longpoll-api VERSION ``` - * Replace `VERSION` with [the latest release](https://github.com/yvasyliev/java-vk-bots-long-poll-api/releases). + * Replace `VERSION` with [the latest release](https://github.com/bivashy/java-vk-bots-long-poll-api/releases). 4. Extend `LongPollBot` class and override necessary methods: ```java import api.longpoll.bots.LongPollBot; @@ -122,7 +122,7 @@ public class HelloBot extends LongPollBot { ## More Examples -Find more examples of bot usage [here](https://github.com/yvasyliev/java-vk-bots-long-poll-api-examples). +Find more examples of bot usage [here](https://github.com/bivashy/java-vk-bots-long-poll-api-examples). ## Async execution @@ -131,9 +131,11 @@ Each API method can be executed asynchronously: ```java import api.longpoll.bots.LongPollBot; import api.longpoll.bots.exceptions.VkApiException; -import api.longpoll.bots.methods.impl.messages.Send;import api.longpoll.bots.model.events.messages.MessageNew; +import api.longpoll.bots.methods.impl.messages.Send; +import api.longpoll.bots.model.events.messages.MessageNew; import api.longpoll.bots.model.objects.basic.Message; -import java.io.File;import java.util.concurrent.CompletableFuture; +import java.io.File; +import java.util.concurrent.CompletableFuture; public class HelloBot extends LongPollBot { @Override diff --git a/pom.xml b/pom.xml index caef34a0..c5b55e6b 100644 --- a/pom.xml +++ b/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - com.github.yvasyliev + io.github.bivashy java-vk-bots-longpoll-api jar 4.1.8 Java VK Bots Long Poll API A Java library to create VK bots using Bots Long Poll API - https://github.com/yvasyliev/java-vk-bots-long-poll-api + https://github.com/bivashy/java-vk-bots-long-poll-api @@ -86,14 +86,13 @@ 3.11.0 - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 + org.sonatype.central + central-publishing-maven-plugin + 0.4.0 true - ossrh - https://oss.sonatype.org/ - true + central + true @@ -210,17 +209,17 @@ - scm:git:ssh://github.com/yvasyliev/java-vk-bots-long-poll-api.git - scm:git:ssh://github.com/yvasyliev/java-vk-bots-long-poll-api.git - https://github.com/yvasyliev/java-vk-bots-longpoll-api + scm:git:ssh://github.com/bivashy/java-vk-bots-long-poll-api.git + scm:git:ssh://github.com/bivashy/java-vk-bots-long-poll-api.git + https://github.com/bivashy/java-vk-bots-longpoll-api - Yevhen Vasyliev - ye.vasyliev@gmail.com - com.github.yvasyliev - https://github.com/yvasyliev + Bivashy + biivashy@gmail.com + io.github.bivashy + https://github.com/bivashy \ No newline at end of file From f4ff6c13f56c2f7cdd877998df1c220939c438f8 Mon Sep 17 00:00:00 2001 From: bivashy Date: Wed, 22 May 2024 01:19:39 +0500 Subject: [PATCH 2/6] Update link to the project in the badges --- .github/dependabot.yml | 2 +- README.md | 21 +++++++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5fe6738d..f54bd199 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -10,4 +10,4 @@ updates: schedule: interval: "daily" assignees: - - "yvasyliev" + - "bivashy" diff --git a/README.md b/README.md index dce2327c..a49011cd 100644 --- a/README.md +++ b/README.md @@ -3,16 +3,17 @@ [![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/bivashy/java-vk-bots-long-poll-api/blob/master/LICENSE) ![Build status](https://github.com/bivashy/java-vk-bots-long-poll-api/actions/workflows/build-maven-project.yml/badge.svg?branch=master) ![CodeQL](https://github.com/bivashy/java-vk-bots-long-poll-api/workflows/CodeQL/badge.svg) -[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) -[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) -[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) -[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) -[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) -[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) -[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) -[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) -[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=bugs)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) -[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) +[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) +[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) +[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) +[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) +[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) +[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) +[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code? +id=bivashy_java-vk-bots-long-poll-api) +[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) +[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=bugs)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) +[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)](http://makeapullrequest.com) # IMPORTANT From 631e1b72dd347fc0bf47072ba6e0a9d7a0b90e1a Mon Sep 17 00:00:00 2001 From: bivashy Date: Wed, 22 May 2024 01:28:22 +0500 Subject: [PATCH 3/6] Remove redundant indentation --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index a49011cd..85e7d4ef 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,7 @@ [![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) -[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code? -id=bivashy_java-vk-bots-long-poll-api) +[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) [![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) [![Bugs](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=bugs)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) From b2d891eea2707279ebb8af3ab32181c5fc057e54 Mon Sep 17 00:00:00 2001 From: bivashy Date: Wed, 22 May 2024 01:40:59 +0500 Subject: [PATCH 4/6] Revert badges to the old ones --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 85e7d4ef..dce2327c 100644 --- a/README.md +++ b/README.md @@ -3,16 +3,16 @@ [![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/bivashy/java-vk-bots-long-poll-api/blob/master/LICENSE) ![Build status](https://github.com/bivashy/java-vk-bots-long-poll-api/actions/workflows/build-maven-project.yml/badge.svg?branch=master) ![CodeQL](https://github.com/bivashy/java-vk-bots-long-poll-api/workflows/CodeQL/badge.svg) -[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) -[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) -[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) -[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) -[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) -[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) -[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) -[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) -[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=bugs)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) -[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=bivashy_java-vk-bots-long-poll-api) +[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) +[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) +[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) +[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) +[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) +[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) +[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) +[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) +[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=bugs)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) +[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)](http://makeapullrequest.com) # IMPORTANT From 39fec9db01f83a5bc486641de4b0356e2a27fbac Mon Sep 17 00:00:00 2001 From: bivashy Date: Wed, 22 May 2024 01:42:29 +0500 Subject: [PATCH 5/6] Replace bivashy' in the sonarcloud link --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dce2327c..551f049a 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ [![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/bivashy/java-vk-bots-long-poll-api/blob/master/LICENSE) ![Build status](https://github.com/bivashy/java-vk-bots-long-poll-api/actions/workflows/build-maven-project.yml/badge.svg?branch=master) ![CodeQL](https://github.com/bivashy/java-vk-bots-long-poll-api/workflows/CodeQL/badge.svg) -[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) -[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=bivashy_java-vk-bots-long-poll-api&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) +[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) +[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) [![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api) From 186e3e092ba1186b8e037c4cf7984634d3b717e9 Mon Sep 17 00:00:00 2001 From: bivashy Date: Wed, 22 May 2024 01:46:43 +0500 Subject: [PATCH 6/6] Change link to the repository in the tests --- src/test/java/updates/message/MessageNewTest.java | 6 +++--- src/test/resource/updates/message_new/attached_link.json | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/java/updates/message/MessageNewTest.java b/src/test/java/updates/message/MessageNewTest.java index 529d6562..d26b7ad4 100644 --- a/src/test/java/updates/message/MessageNewTest.java +++ b/src/test/java/updates/message/MessageNewTest.java @@ -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); diff --git a/src/test/resource/updates/message_new/attached_link.json b/src/test/resource/updates/message_new/attached_link.json index 909b51ed..dca0950b 100644 --- a/src/test/resource/updates/message_new/attached_link.json +++ b/src/test/resource/updates/message_new/attached_link.json @@ -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,