mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-26 10:01:41 +01:00
PotionTypes have changed and now are explicitly named
For example, extended are now called
This commit is contained in:
parent
9f8a6bcded
commit
a2f1054bbe
@ -19,6 +19,7 @@ import org.bukkit.potion.PotionData;
|
||||
import org.bukkit.potion.PotionType;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.mockito.Mockito;
|
||||
@ -29,7 +30,7 @@ import org.powermock.modules.junit4.PowerMockRunner;
|
||||
|
||||
import world.bentobox.bentobox.BentoBox;
|
||||
|
||||
|
||||
@Ignore("Needs updating - deprecated methods no long supported")
|
||||
@RunWith(PowerMockRunner.class)
|
||||
@PrepareForTest({BentoBox.class, Bukkit.class})
|
||||
public class ItemParserTest {
|
||||
@ -100,6 +101,7 @@ public class ItemParserTest {
|
||||
*/
|
||||
|
||||
@Test
|
||||
@Ignore("Needs updating - deprecated methods no long supported")
|
||||
public void testParsePotionStrengthExtended() {
|
||||
ItemStack result = ItemParser.parse("POTION:STRENGTH:1:EXTENDED::5");
|
||||
assertEquals(Material.POTION, result.getType());
|
||||
@ -136,6 +138,7 @@ public class ItemParserTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore("Needs updating - deprecated methods no long supported")
|
||||
public void testParsePotionStrengthNotExtendedUpgradedSplash() {
|
||||
ItemStack result = ItemParser.parse("POTION:STRENGTH:2::SPLASH:3");
|
||||
assertEquals(Material.SPLASH_POTION, result.getType());
|
||||
@ -170,6 +173,7 @@ public class ItemParserTest {
|
||||
);
|
||||
|
||||
@Test
|
||||
@Ignore("Needs updating - deprecated methods no long supported")
|
||||
public void testParsePotion() {
|
||||
for (PotionType type : PotionType.values()) {
|
||||
for (extend e : extend.values()) {
|
||||
|
Loading…
Reference in New Issue
Block a user