package com.github.steveice10.mc.protocol.packet.status.clientbound;

import com.github.steveice10.mc.auth.data.GameProfile;
import com.github.steveice10.mc.protocol.codec.MinecraftCodec;
import com.github.steveice10.mc.protocol.data.status.PlayerInfo;
import com.github.steveice10.mc.protocol.data.status.ServerStatusInfo;
import com.github.steveice10.mc.protocol.data.status.VersionInfo;
import com.github.steveice10.mc.protocol.packet.PacketTest;
import net.kyori.adventure.text.Component;
import org.junit.Before;

import java.util.ArrayList;
import java.util.Collections;
import java.util.UUID;

public class ClientboundStatusResponsePacketTest extends PacketTest {
    @Before
    public void setup() {
        this.setPackets(new ClientboundStatusResponsePacket(
                new ServerStatusInfo(
                        new VersionInfo(MinecraftCodec.CODEC.getMinecraftVersion(), MinecraftCodec.CODEC.getProtocolVersion()),
                        new PlayerInfo(100, 10, new ArrayList<>(
                                Collections.singleton(new GameProfile(UUID.randomUUID(), "Username"))
                        )),
                        Component.text("Description"),
                        null,
                        false
                )
        ));
    }
}
