From e069a80fd8218656bd6e47c452a6302ef4ee177b Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 9 Mar 2019 15:10:40 +1100 Subject: [PATCH] Use TestPlugin for ConversationTest By: md_5 --- .../test/java/org/bukkit/conversations/ConversationTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/paper-api/src/test/java/org/bukkit/conversations/ConversationTest.java b/paper-api/src/test/java/org/bukkit/conversations/ConversationTest.java index 814d7f5d7b..544f1f3c28 100644 --- a/paper-api/src/test/java/org/bukkit/conversations/ConversationTest.java +++ b/paper-api/src/test/java/org/bukkit/conversations/ConversationTest.java @@ -1,5 +1,6 @@ package org.bukkit.conversations; +import org.bukkit.plugin.TestPlugin; import org.junit.Test; import static org.junit.Assert.*; @@ -32,7 +33,7 @@ public class ConversationTest { public void testConversationFactory() { FakeConversable forWhom = new FakeConversable(); NullConversationPrefix prefix = new NullConversationPrefix(); - ConversationFactory factory = new ConversationFactory(null) + ConversationFactory factory = new ConversationFactory(new TestPlugin("Test")) .withFirstPrompt(new FirstPrompt()) .withModality(false) .withPrefix(prefix); @@ -75,7 +76,7 @@ public class ConversationTest { @Test public void testNotPlayer() { FakeConversable forWhom = new FakeConversable(); - ConversationFactory factory = new ConversationFactory(null) + ConversationFactory factory = new ConversationFactory(new TestPlugin("Test")) .thatExcludesNonPlayersWithMessage("bye"); Conversation conversation = factory.buildConversation(forWhom);