Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlayerMock#assertSaid not working correctly with BungeeCord Components #550

Open
2 tasks done
PeachesMLG opened this issue Jul 16, 2022 · 0 comments
Open
2 tasks done
Labels
bug-behaviour Issue describes a behaviour of MockBukkit that does not correctly mimick the behaviour of Bukkit

Comments

@PeachesMLG
Copy link
Contributor

PeachesMLG commented Jul 16, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Are you using the latest version of MockBukkit?

  • I am using the latest version of MockBukkit.

Minecraft Version

1.19

Describe the bug

Looks like my component isnt being asserted correctly, looks like its messing up due to the colour or something.

Reproducible Test

    @Test
    public void test(){
        PlayerMock playerMock = serverMock.addPlayer();
        TextComponent previousButton = new TextComponent(ChatColor.translateAlternateColorCodes('&', "&c<<"));
        playerMock.spigot().sendMessage(previousButton);
        playerMock.assertSaid(ChatColor.translateAlternateColorCodes('&',"&c<<"));
    }

Anything else?

Side note, since the update we are serialising messages into json chat components which makes failing tests alot harder to debug, would be cool if we could find a way to make it easier to see the differences
image

@Insprill Insprill added the bug-behaviour Issue describes a behaviour of MockBukkit that does not correctly mimick the behaviour of Bukkit label Jul 19, 2022
@Insprill Insprill changed the title PlayerMock#AssertSaid not working correctly PlayerMock#assertSaid not working correctly with BungeeCord Components Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-behaviour Issue describes a behaviour of MockBukkit that does not correctly mimick the behaviour of Bukkit
Projects
None yet
Development

No branches or pull requests

2 participants