summaryrefslogtreecommitdiffstats
path: root/src/test/java/org/bukkit/potion
diff options
context:
space:
mode:
authort00thpick1 <t00thpick1dirko@gmail.com>2016-03-02 20:43:58 -0500
committermd_5 <git@md-5.net>2016-03-12 12:38:22 +1100
commit4a8818c5fd4be406c59b518b86f10f39b4e6dcdd (patch)
tree372af2cd4688e8f5142eedd7601a919e58f65b8b /src/test/java/org/bukkit/potion
parent75286088fe01abc77edb96b5c240f9de6da86c7c (diff)
downloadcraftbukkit-4a8818c5fd4be406c59b518b86f10f39b4e6dcdd.tar
craftbukkit-4a8818c5fd4be406c59b518b86f10f39b4e6dcdd.tar.gz
craftbukkit-4a8818c5fd4be406c59b518b86f10f39b4e6dcdd.tar.lz
craftbukkit-4a8818c5fd4be406c59b518b86f10f39b4e6dcdd.tar.xz
craftbukkit-4a8818c5fd4be406c59b518b86f10f39b4e6dcdd.zip
SPIGOT-1638 / SPIGOT-1673: Rework Potions API
Diffstat (limited to 'src/test/java/org/bukkit/potion')
-rw-r--r--src/test/java/org/bukkit/potion/PotionTest.java15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/test/java/org/bukkit/potion/PotionTest.java b/src/test/java/org/bukkit/potion/PotionTest.java
index 691c3e50..77d858bc 100644
--- a/src/test/java/org/bukkit/potion/PotionTest.java
+++ b/src/test/java/org/bukkit/potion/PotionTest.java
@@ -14,19 +14,6 @@ import org.bukkit.support.AbstractTestingBase;
import org.junit.Test;
public class PotionTest extends AbstractTestingBase {
-
- @Test
- public void getEffects() {
- for (PotionType type : PotionType.values()) {
- for (PotionEffect effect : new Potion(type).getEffects()) {
- PotionEffectType potionType = effect.getType();
- assertThat(effect.getType(), is(sameInstance(PotionEffectType.getById(potionType.getId()))));
-
- assertNotNull(potionType.getName(), PotionType.getByEffect(potionType));
- }
- }
- }
-
@Test
public void testEffectCompleteness() throws Throwable {
Map<PotionType, String> effects = new EnumMap(PotionType.class);
@@ -43,6 +30,6 @@ public class PotionTest extends AbstractTestingBase {
effects.put(enumType, enumType.name());
}
- assertEquals(effects.entrySet().size(), PotionType.values().length - /* WATER */ 1);
+ assertEquals(effects.entrySet().size(), PotionType.values().length - /* PotionTypes with no Effects */ 5);
}
}