Serialization test for EvalError

This commit is contained in:
Antonin Delpeuch 2018-08-21 15:43:36 +01:00
parent 2dde302a90
commit debe9bde37

View File

@ -0,0 +1,13 @@
package com.google.refine.expr;
import org.testng.annotations.Test;
import com.google.refine.tests.util.TestUtils;
public class EvalErrorTests {
@Test
public void serializeEvalError() {
EvalError e = new EvalError("this is a critical error");
TestUtils.isSerializedTo(e, "{\"type\":\"error\",\"message\":\"This is a critical error\"}");
}
}