blob: a742650497ffca465b848ca39fbf7a414f780871 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package me.xmrvizzy.skyblocker.skyblock.dwarven;
import org.junit.jupiter.api.Test;
import java.util.regex.Matcher;
import static org.junit.jupiter.api.Assertions.*;
class FetchurTest {
private static final Fetchur fetchur = new Fetchur();
@Test
public void patternCaptures() {
Matcher m = fetchur.getPattern().matcher("§e[NPC] Fetchur§f: its a hint");
assertTrue(m.matches());
assertEquals(m.group(1), "a hint");
}
}
|