Serialization test for EvalError
This commit is contained in:
parent
2dde302a90
commit
debe9bde37
@ -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\"}");
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user