new TimeFieldSpec("incomingTime", LONG, TimeUnit.MILLISECONDS, "outgoingTime", INT, TimeUnit.SECONDS, -1); Assert.assertEquals(timeFieldSpec1, timeFieldSpec2, ERROR_MESSAGE); Assert.assertEquals(timeFieldSpec1.getDefaultNullValue(), -1, ERROR_MESSAGE);
Assert.assertEquals(timeFieldSpec.getDataType(), FieldSpec.DataType.LONG); Assert.assertEquals(timeFieldSpec.isSingleValueField(), true); Assert.assertEquals(timeFieldSpec.getDefaultNullValue(), Long.MIN_VALUE);