// Path: SpongePowered/SpongeTests/src/main/java/ch/vorburger/minecraft/testsinfra/CommandTestHelper.java
// public static interface Chat {
// 	List<Text> getMessages();
// }


import static org.junit.Assert.assertEquals;
import java.util.Collections;
import org.junit.Test;
import org.spongepowered.api.text.Text;
import org.spongepowered.api.text.Texts;
import org.spongepowered.api.text.translation.FixedTranslation;
import org.spongepowered.api.util.command.CommandResult;
import org.spongepowered.common.text.format.SpongeTextStyle;
import ch.vorburger.minecraft.testsinfra.CommandTestHelper.Chat;
import net.minecraft.util.EnumChatFormatting;
package ch.vorburger.minecraft.testsinfra;





public class CommandTestHelperTest {

	@Test public void textToString() {
		Text text = Texts.of("something");
		assertEquals("something", new CommandTestHelper(null).toString(text));
	}

	@Test public void translatedTextToString() {
		Text text = Texts.builder(new FixedTranslation("something")).build();
		assertEquals("something", new CommandTestHelper(null).toString(text));
	}

	@Test public void chatToString() {
// Path: SpongePowered/SpongeTests/src/main/java/ch/vorburger/minecraft/testsinfra/CommandTestHelper.java
// public static interface Chat {
// 	List<Text> getMessages();
// }


// Path: SpongePowered/SpongeTests/src/test/java/ch/vorburger/minecraft/testsinfra/CommandTestHelperTest.java
import static org.junit.Assert.assertEquals;
import java.util.Collections;
import org.junit.Test;
import org.spongepowered.api.text.Text;
import org.spongepowered.api.text.Texts;
import org.spongepowered.api.text.translation.FixedTranslation;
import org.spongepowered.api.util.command.CommandResult;
import org.spongepowered.common.text.format.SpongeTextStyle;
import ch.vorburger.minecraft.testsinfra.CommandTestHelper.Chat;
import net.minecraft.util.EnumChatFormatting;

package ch.vorburger.minecraft.testsinfra;





public class CommandTestHelperTest {

	@Test public void textToString() {
		Text text = Texts.of("something");
		assertEquals("something", new CommandTestHelper(null).toString(text));
	}

	@Test public void translatedTextToString() {
		Text text = Texts.builder(new FixedTranslation("something")).build();
		assertEquals("something", new CommandTestHelper(null).toString(text));
	}

	@Test public void chatToString() {
		Chat chat = () -> Collections.singletonList(Texts.of("something"));