Skip to content

Commit

Permalink
Fixed PotionWrapper not available for Minecraft 1.20.5+
Browse files Browse the repository at this point in the history
  • Loading branch information
fulminazzo committed Dec 24, 2024
1 parent 05c15b4 commit 817c9ac
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
package it.fulminazzo.yagl;

import it.fulminazzo.jbukkit.BukkitUtils;
import it.fulminazzo.jbukkit.annotations.Before1_;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertThrowsExactly;

public class PotionWrapperTest {
public class PotionWrapperTest extends BukkitUtils {

@Test
@Before1_(20.4)
void testCreationOfPotionWrapperFromForeignObject() {
super.setUp();
assertThrowsExactly(IllegalArgumentException.class, () -> new PotionWrapper("Mock potion"));
}

Expand Down

0 comments on commit 817c9ac

Please sign in to comment.