1 /*
2 * SPDX-FileCopyrightText: Copyright (c) 2011-2026 Yegor Bugayenko
3 * SPDX-License-Identifier: MIT
4 */
5 package com.qulice.pmd;
6
7 import org.hamcrest.Matchers;
8 import org.junit.jupiter.api.Test;
9
10 /**
11 * Test case for {@link PmdValidator}'s rejection of unicode
12 * characters inside method names under the
13 * {@code MethodNamingConventions} rule.
14 * @since 0.25.1
15 */
16 final class PmdMethodNamingConventionsTest {
17
18 @Test
19 void prohibitsUnicodeCharactersInMethodNames() throws Exception {
20 new PmdAssert(
21 "UnicodeCharactersInMethodNames.java",
22 Matchers.is(false),
23 Matchers.containsString("MethodNamingConventions")
24 ).assertOk();
25 }
26 }