🔇 Suppress deprecation warning on tests for deprecated methods
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Wed, 17 Dec 2025 17:11:58 +0000 (18:11 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Wed, 17 Dec 2025 17:11:58 +0000 (18:11 +0100)
src/test/java/net/pterodactylus/fcp/plugin/WebOfTrustPluginTest.java

index 27b1da2..82918eb 100644 (file)
@@ -183,6 +183,7 @@ public class WebOfTrustPluginTest {
                }
 
                @Test
+               @SuppressWarnings("deprecation")
                public void gettingOwnIdentitiesUsingDeprecatedMethodSendsCorrectMessage() throws Exception {
                        TestFcpConnection fcpConnection = createConnectionThatDeliversOwnIdentities();
                        WebOfTrustPlugin webOfTrustPlugin = createWebOfTrustPlugin(fcpConnection);
@@ -196,6 +197,7 @@ public class WebOfTrustPluginTest {
                }
 
                @Test
+               @SuppressWarnings("deprecation")
                public void gettingOwnIdentitiesUsingDeprecatedMethodParsesOwnIdentitiesCorrectly() throws Exception {
                        TestFcpConnection fcpConnection = createConnectionThatDeliversOwnIdentities();
                        WebOfTrustPlugin webOfTrustPlugin = createWebOfTrustPlugin(fcpConnection);