refactor: inline method
This commit is contained in:
parent
c80b7eae10
commit
b785940a2b
|
@ -22,8 +22,7 @@ class ConceptMapEngineTest {
|
||||||
@Test
|
@Test
|
||||||
@DisplayName("Coding is converted according to ConceptMap")
|
@DisplayName("Coding is converted according to ConceptMap")
|
||||||
void translate() throws IOException {
|
void translate() throws IOException {
|
||||||
ConceptMap conceptMap = getConceptMap();
|
ConceptMapEngine conceptMapEngine = getConceptMapEngine();
|
||||||
ConceptMapEngine conceptMapEngine = getConceptMapEngine(conceptMap);
|
|
||||||
Coding coding = new Coding(null, SOURCE_CODE_STRING, "Body Weight");
|
Coding coding = new Coding(null, SOURCE_CODE_STRING, "Body Weight");
|
||||||
|
|
||||||
Coding actual = conceptMapEngine.translate(coding, CONCEPT_MAP_URL);
|
Coding actual = conceptMapEngine.translate(coding, CONCEPT_MAP_URL);
|
||||||
|
@ -32,7 +31,9 @@ class ConceptMapEngineTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
private ConceptMapEngine getConceptMapEngine(ConceptMap conceptMap) throws IOException {
|
private ConceptMapEngine getConceptMapEngine() throws IOException {
|
||||||
|
ConceptMap conceptMap = getConceptMap();
|
||||||
|
|
||||||
SimpleWorkerContext simpleWorkerContext = new SimpleWorkerContext();
|
SimpleWorkerContext simpleWorkerContext = new SimpleWorkerContext();
|
||||||
simpleWorkerContext.cacheResource(conceptMap);
|
simpleWorkerContext.cacheResource(conceptMap);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue