1 /*
2 * SPDX-FileCopyrightText: Copyright (c) 2013-2025 Yegor Bugayenko
3 * SPDX-License-Identifier: MIT
4 */
5 package com.jcabi.github;
6
7 import org.hamcrest.MatcherAssert;
8 import org.hamcrest.Matchers;
9 import org.junit.jupiter.api.Test;
10
11 /**
12 * Test case for {@link RtPublicKey}.
13 * @since 0.8
14 */
15 @OAuthScope(OAuthScope.Scope.READ_PUBLIC_KEY)
16 final class RtPublicKeyITCase {
17 @Test
18 void retrievesUri() {
19 MatcherAssert.assertThat(
20 "String does not end with expected value",
21 GitHubIT.connect().users().self().keys().get(1).toString(),
22 Matchers.endsWith("/keys/1")
23 );
24 }
25 }