Skip to content

Commit

Permalink
test: fix import test
Browse files Browse the repository at this point in the history
  • Loading branch information
briacp committed May 9, 2023
1 parent f6c1332 commit 6d1a775
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/java/org/omegat/core/data/ODTReviewPluginTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public void testImport() throws Exception {

private static IProject fakeProject() throws Exception {
List<FileInfo> projectFiles = new ArrayList<>();
List<SourceTextEntry> allEntriesList = new ArrayList<>();
Map<SourceTextEntry, TMXEntry> allEntries = new HashMap<>();

ProjectProperties projectProperties = new ProjectProperties(
Expand Down Expand Up @@ -103,6 +104,7 @@ private static IProject fakeProject() throws Exception {
pte.source = sourceText;
pte.translation = sourceTranslation;
allEntries.put(entry, new TMXEntry(pte, false, null));
allEntriesList.add(entry);

fileInfo.entries.add(entry);
}
Expand Down Expand Up @@ -251,7 +253,7 @@ public AllTranslations getAllTranslations(SourceTextEntry ste) {

@Override
public List<SourceTextEntry> getAllEntries() {
return null;
return allEntriesList;
}

@Override
Expand Down

0 comments on commit 6d1a775

Please sign in to comment.