@ -1,9 +1,9 @@
|
||||
package org.bukkit.metadata;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
import org.bukkit.plugin.TestPlugin;
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class FixedMetadataValueTest {
|
||||
private Plugin plugin = new TestPlugin("X");
|
||||
@ -21,7 +21,7 @@ public class FixedMetadataValueTest {
|
||||
subject = new FixedMetadataValue(plugin, new Integer(5));
|
||||
assertEquals(new Integer(5), subject.value());
|
||||
assertEquals(5, subject.asInt());
|
||||
assertEquals(true, subject.asBoolean());
|
||||
assertTrue(subject.asBoolean());
|
||||
assertEquals(5, subject.asByte());
|
||||
assertEquals(5.0, subject.asFloat(), 0.1e-8);
|
||||
assertEquals(5.0D, subject.asDouble(), 0.1e-8D);
|
||||
|
||||
Reference in New Issue
Block a user