mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 04:33:56 -07:00
@@ -1,5 +1,6 @@
|
|||||||
package org.bukkit.conversations;
|
package org.bukkit.conversations;
|
||||||
|
|
||||||
|
import org.bukkit.plugin.TestPlugin;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
@@ -32,7 +33,7 @@ public class ConversationTest {
|
|||||||
public void testConversationFactory() {
|
public void testConversationFactory() {
|
||||||
FakeConversable forWhom = new FakeConversable();
|
FakeConversable forWhom = new FakeConversable();
|
||||||
NullConversationPrefix prefix = new NullConversationPrefix();
|
NullConversationPrefix prefix = new NullConversationPrefix();
|
||||||
ConversationFactory factory = new ConversationFactory(null)
|
ConversationFactory factory = new ConversationFactory(new TestPlugin("Test"))
|
||||||
.withFirstPrompt(new FirstPrompt())
|
.withFirstPrompt(new FirstPrompt())
|
||||||
.withModality(false)
|
.withModality(false)
|
||||||
.withPrefix(prefix);
|
.withPrefix(prefix);
|
||||||
@@ -75,7 +76,7 @@ public class ConversationTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testNotPlayer() {
|
public void testNotPlayer() {
|
||||||
FakeConversable forWhom = new FakeConversable();
|
FakeConversable forWhom = new FakeConversable();
|
||||||
ConversationFactory factory = new ConversationFactory(null)
|
ConversationFactory factory = new ConversationFactory(new TestPlugin("Test"))
|
||||||
.thatExcludesNonPlayersWithMessage("bye");
|
.thatExcludesNonPlayersWithMessage("bye");
|
||||||
Conversation conversation = factory.buildConversation(forWhom);
|
Conversation conversation = factory.buildConversation(forWhom);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user