summaryrefslogtreecommitdiffstats
path: root/src/test/java/org/bukkit/ParticleTest.java
blob: c00869ba65d2298fed51d48150509fcfca99022f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package org.bukkit;

import net.minecraft.server.EnumParticle;
import org.bukkit.craftbukkit.CraftParticle;
import org.junit.Assert;
import org.junit.Test;

public class ParticleTest {

    @Test
    public void verifyMapping() {
        for (Particle bukkit : Particle.values()) {
            Assert.assertNotNull("Missing Bukkit->NMS particle mapping", CraftParticle.toNMS(bukkit));
        }
        for (EnumParticle nms : EnumParticle.values()) {
            Assert.assertNotNull("Missing NMS->Bukkit particle mapping", CraftParticle.toBukkit(nms));
        }
    }
}