Commits
md_5 authored fc496179714
1 1 | package org.bukkit; |
2 2 | |
3 3 | import static org.bukkit.support.MatcherAssert.*; |
4 4 | import static org.hamcrest.CoreMatchers.*; |
5 + | import org.bukkit.support.AbstractTestingBase; |
5 6 | import org.junit.jupiter.api.Test; |
6 7 | |
7 - | public class InstrumentTest { |
8 + | public class InstrumentTest extends AbstractTestingBase { |
8 9 | |
9 10 | public void getByType() { |
10 11 | for (Instrument instrument : Instrument.values()) { |
11 12 | if (instrument.getType() < 0) { |
12 13 | continue; |
13 14 | } |
14 15 | |
15 16 | assertThat(Instrument.getByType(instrument.getType()), is(instrument)); |
16 17 | } |
17 18 | } |
18 19 | } |