* https://github.com/hapifhir/org.hl7.fhir.core/issues/447 * fix tests Co-authored-by: Grahame Grieve <grahameg@gmail.com>
This commit is contained in:
parent
5ca6d19c69
commit
94d88dd2d1
|
@ -0,0 +1,18 @@
|
||||||
|
package org.hl7.fhir.r5.utils;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Assertions;
|
||||||
|
import org.junit.jupiter.api.DisplayName;
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
|
|
||||||
|
class FHIRLexerTest {
|
||||||
|
@Test
|
||||||
|
@DisplayName("Test that a 'null' current value returns 'false' when FHIRLexer.isConstant() is called, and not NPE.")
|
||||||
|
void getCurrent() {
|
||||||
|
FHIRLexer lexer = new FHIRLexer(null, null);
|
||||||
|
String lexerCurrent = lexer.getCurrent();
|
||||||
|
Assertions.assertNull(lexerCurrent);
|
||||||
|
Assertions.assertFalse(lexer.isConstant());
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue