Skip to content

Commit

Permalink
fix test compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
vytskalt committed Mar 3, 2024
1 parent ac4b148 commit 2a3509a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.comphenix.protocol.wrappers;

import com.comphenix.protocol.BukkitInitialization;
import com.google.gson.JsonObject;
import com.google.gson.JsonElement;
import net.kyori.adventure.text.event.ClickEvent;
import net.kyori.adventure.text.format.NamedTextColor;
import net.kyori.adventure.text.format.Style;
Expand All @@ -24,7 +24,7 @@ public static void initializeBukkit() {
public void testComponentStyle() {
ChatModifier style = ChatModifier.a.b(EnumChatFormat.m).a(true);
WrappedComponentStyle wrapped = new WrappedComponentStyle(style);
JsonObject json = wrapped.getJson();
JsonElement json = wrapped.getJson();
assertEquals("{\"color\":\"red\",\"bold\":true}", json.toString());
assertEquals(style, WrappedComponentStyle.fromJson(json).getHandle());
}
Expand Down

0 comments on commit 2a3509a

Please sign in to comment.