TimeValueTest.java
/*-
* #%L
* JSQLParser library
* %%
* Copyright (C) 2004 - 2019 JSQLParser
* %%
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
* #L%
*/
package net.sf.jsqlparser.expression;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertThrows;
public class TimeValueTest {
@Test
public void testNullValue() {
assertThrows(IllegalArgumentException.class, () -> {
new TimeValue(null);
});
}
@Test
public void testEmptyValue() {
assertThrows(IllegalArgumentException.class, () -> {
new TimeValue("");
});
}
}