* 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:
Mark Iantorno 2021-08-25 08:40:13 -04:00 committed by GitHub
parent 5ca6d19c69
commit 94d88dd2d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -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());
}
}