package org.bukkit; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; import org.junit.Test; public class CropStateTest { @Test public void getByData() { for (CropState cropState : CropState.values()) { assertThat(CropState.getByData(cropState.getData()), is(cropState)); } } }