Skip to content

Commit

Permalink
fix test compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
vytskalt authored and dmulloy2 committed Jun 5, 2024
1 parent 976a0c3 commit 08ecb0e
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 08ecb0e

Please sign in to comment.