Skip to content

Commit

Permalink
chore: trying to fix issue in DiaryNoteEVSRefExtractorTest that succe…
Browse files Browse the repository at this point in the history
…eded locally but fails on CI
  • Loading branch information
jy95 committed Sep 5, 2023
1 parent d610199 commit 84d2ca9
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import org.imec.ivlab.core.kmehr.model.util.TransactionUtil;
import org.imec.ivlab.core.model.evsref.EVSREF;
import org.imec.ivlab.core.model.upload.KmehrWithReference;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

import java.util.Collections;
Expand All @@ -28,15 +27,10 @@
public class DiaryNoteEVSRefExtractorTest extends TestCase {

private EVSREF evsref = new EVSREF("TESTREF");
private KmehrWithReference kmehr;

@BeforeMethod
private void init() {
this.kmehr = initKmehr();
}

@Test
public void addEvsRefToNewTextWithLayoutIfNoTextFieldExists() {
KmehrWithReference kmehr = initKmehr();
new DiaryNoteEVSRefExtractor().putEvsReference(kmehr, evsref);

List<TextWithLayoutType> textWithLayoutTypes = TransactionUtil.getTextWithLayout(kmehr.getIdentifiableTransaction());
Expand All @@ -47,6 +41,7 @@ public void addEvsRefToNewTextWithLayoutIfNoTextFieldExists() {

@Test
public void addEvsRefToExistingTextIfExists() {
KmehrWithReference kmehr = initKmehr();
TextType textType = new TextType();
textType.setValue("existing content");
kmehr.getIdentifiableTransaction().getText().add(textType);
Expand Down

0 comments on commit 84d2ca9

Please sign in to comment.