-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Citavi Importer - Import all knowledge items (#9043)
* Import all knowledge items Filter out empty strings and replace quot * Use HtmlToLatexFormatter * Use StringJoiner (instead of StringBuilder) * Add trimming * HtmlFormatter keeps < * Fix 3 bib * Add cleanUpText Co-authored-by: Christoph <[email protected]> * Fix bib files Co-authored-by: Christoph <[email protected]> * fix checkstyle * checkstyle import * Add quotationIndex and quotationTypes as well * Adjust tests * nake checkstyle happy * fix empty line Co-authored-by: Oliver Kopp <[email protected]>
- Loading branch information
1 parent
0b58079
commit bd77d73
Showing
10 changed files
with
3,433 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/test/java/org/jabref/logic/importer/fileformat/CitaviXmlImporterTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package org.jabref.logic.importer.fileformat; | ||
|
||
import java.util.stream.Stream; | ||
|
||
import org.junit.jupiter.params.ParameterizedTest; | ||
import org.junit.jupiter.params.provider.Arguments; | ||
import org.junit.jupiter.params.provider.MethodSource; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
||
class CitaviXmlImporterTest { | ||
|
||
CitaviXmlImporter citaviXmlImporter = new CitaviXmlImporter(); | ||
|
||
public static Stream<Arguments> cleanUpText() { | ||
return Stream.of( | ||
Arguments.of("no action", "no action"), | ||
Arguments.of("\\{action\\}", "{action}"), | ||
Arguments.of("\\}", "}")); | ||
} | ||
|
||
@ParameterizedTest | ||
@MethodSource | ||
void cleanUpText(String expected, String input) { | ||
assertEquals(expected, citaviXmlImporter.cleanUpText(input)); | ||
} | ||
} |
Oops, something went wrong.