mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-13 19:25:49 -07:00
19 lines
467 B
Java
19 lines
467 B
Java
package org.bukkit;
|
|
|
|
import static org.bukkit.support.MatcherAssert.*;
|
|
import static org.hamcrest.CoreMatchers.*;
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
public class InstrumentTest {
|
|
@Test
|
|
public void getByType() {
|
|
for (Instrument instrument : Instrument.values()) {
|
|
if (instrument.getType() < 0) {
|
|
continue;
|
|
}
|
|
|
|
assertThat(Instrument.getByType(instrument.getType()), is(instrument));
|
|
}
|
|
}
|
|
}
|