use of org.terasology.persistence.typeHandling.inMemory.PersistedString in project Terasology by MovingBlocks.
the class ColorTypeHandlerTest method testDeserializeHex.
@Test
public void testDeserializeHex() {
PersistedData data = new PersistedString("DEADBEEF");
Color color = handler.deserialize(data, deserializationContext);
Assert.assertEquals(0xDEADBEEF, color.rgba());
}
Aggregations