Skip to content

Commit

Permalink
Fix/arxiv test (#6980)
Browse files Browse the repository at this point in the history
* Squashed 'src/main/resources/csl-styles/' changes from bf698ac..827b986

827b986 add DOI preprint to american-society-for-microbiology.csl (#4946)
7cab2f7 Create depro-ufs.csl (#4947)
2fcda1f Create journal-of-sport-science-and-medicine.csl (#4949)
cd457d4 Update american-marketing-association.csl (#4945)
cacc4ee Create nejm-catalyst.csl (#4943)
bd769b9 Update and rename dependent/chinese-medical-journal.csl to chinese-me… (#4941)
1f706cd Update health-services-research.csl (#4939)
76bcd1d Update journal-of-the-royal-society-of-western-australia.csl (#4932)
e79640e Create afro-asia.csl (#4934)
c601aa4 Update lancaster-university-harvard.csl (#4938)
184fd90 Update collection-du-centre-jean-berard.csl (#4936)
82f9aec fix et-al & add DOI thyroid.csl (#4937)
4af169f Create universidade-estadual-de-alagoas-uneal-abnt (#4885)
47165b3 Update and rename medical-physics.csl to dependent/medical-physics.csl (AMA) (#4905)
3cab27d Update thieme-german.csl (#4931)
eb2c977 Create zeitschrift-fur-zahnarztliche-implantologie.csl (#4925)
4adb1ea Create karstenia.csl (#4929)
530a136 Fix author substitute in Universita Cattolica

git-subtree-dir: src/main/resources/csl-styles
git-subtree-split: 827b986

* Squashed 'src/main/resources/csl-styles/' changes from 827b986..eb0d37e

eb0d37e Create natbib-plainnat-author-dat.csl (#4967)
fb1592a Update journal-of-fish-biology.csl (#4969)
f6876cb Update .travis.yml (#4970)
d6d400b Create london-review-of-international-law.csl (#4966)
d2a5ae1 Update harvard-stellenbosch-university.csl (#4965)
9c62141 Create phytopathologia-mediterranea.csl (#4964)
8ca2ea1 Update historical-materialism.csl (#4960)
80456dc Update historical-materialism.csl
be2d910 Update historical-materialism.csl
1d1cf09 Create atlande.csl (#4930)
89f41d4 Create juristische-zitierweise-oeffentliches-recht.csl (#4944)
8c677a0 Create korean-journal-of-gastroenterology.csl (#4954)
eadb950 Create historical-materialism.csl (#4955)
5553dcd Create revista-materia.csl (#4957)
d23a3ab Bug fix in APA 6 original publication macro (#4959)
66f9974 Always print publisher in APA 6th edition (#4899)
868809c Create agora.csl (#4940)
99c19c3 Update anthropologie-et-societes.csl (#4952)
ee17423 Create critical-reviews-in-solid-state-and-materials-science.csl (#4951)
7a13a7d Create korean-journal-of-internal-medicine.csl (#4953)

git-subtree-dir: src/main/resources/csl-styles
git-subtree-split: eb0d37e

* Adapt arxiv phrase test

Co-authored-by: github actions <jabrefmail+webfeedback@gmail.com>
  • Loading branch information
DominikVoigt and github actions committed Oct 4, 2020
1 parent d371fde commit 5829eae
Showing 1 changed file with 27 additions and 17 deletions.
44 changes: 27 additions & 17 deletions src/test/java/org/jabref/logic/importer/fetcher/ArXivTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -249,29 +249,39 @@ public String getTestJournal() {
return "\"Journal of Geometry and Physics (2013)\"";
}

/**
* A phrase is a sequence of terms wrapped in quotes.
* Only documents that contain exactly this sequence are returned.
*/
@Test
public void supportsPhraseSearch() throws Exception {
List<BibEntry> resultWithPhraseSearch = fetcher.performSearch("ti:\"Taxonomy of Distributed\"");
List<BibEntry> resultWithOutPhraseSearch = fetcher.performSearch("ti:Taxonomy AND ti:of AND ti:Distributed");
// Phrase search result has to be subset of the default search result
assertTrue(resultWithOutPhraseSearch.containsAll(resultWithPhraseSearch));
}

/**
* A phrase is a sequence of terms wrapped in quotes.
* Only documents that contain exactly this sequence are returned.
*/
@Test
public void supportsPhraseSearchAndMatchesExact() throws Exception {
BibEntry expected = new BibEntry(StandardEntryType.Article)
.withField(StandardField.AUTHOR, "Tobias Büscher and Angel L. Diez and Gerhard Gompper and Jens Elgeti")
.withField(StandardField.TITLE, "Instability and fingering of interfaces in growing tissue")
.withField(StandardField.DATE, "2020-03-10")
.withField(StandardField.ABSTRACT, "Interfaces in tissues are ubiquitous, both between tissue and environment as well as between populations of different cell types. The propagation of an interface can be driven mechanically. % e.g. by a difference in the respective homeostatic stress of the different cell types. Computer simulations of growing tissues are employed to study the stability of the interface between two tissues on a substrate. From a mechanical perspective, the dynamics and stability of this system is controlled mainly by four parameters of the respective tissues: (i) the homeostatic stress (ii) cell motility (iii) tissue viscosity and (iv) substrate friction. For propagation driven by a difference in homeostatic stress, the interface is stable for tissue-specific substrate friction even for very large differences of homeostatic stress; however, it becomes unstable above a critical stress difference when the tissue with the larger homeostatic stress has a higher viscosity. A small difference in directed bulk motility between the two tissues suffices to result in propagation with a stable interface, even for otherwise identical tissues. Larger differences in motility force, however, result in a finite-wavelength instability of the interface. Interestingly, the instability is apparently bound by nonlinear effects and the amplitude of the interface undulations only grows to a finite value in time.")
.withField(StandardField.DOI, "10.1088/1367-2630/ab9e88")
.withField(StandardField.EPRINT, "2003.04601")
.withField(StandardField.DOI, "10.1088/1367-2630/ab9e88")
.withField(StandardField.FILE, ":http\\://arxiv.org/pdf/2003.04601v1:PDF")
.withField(StandardField.AUTHOR, "Fauzi Adi Rafrastara and Qi Deyu")
.withField(StandardField.TITLE, "A Survey and Taxonomy of Distributed Data Mining Research Studies: A Systematic Literature Review")
.withField(StandardField.DATE, "2020-09-14")
.withField(StandardField.ABSTRACT, "Context: Data Mining (DM) method has been evolving year by year and as of today there is also the enhancement of DM technique that can be run several times faster than the traditional one, called Distributed Data Mining (DDM). It is not a new field in data processing actually, but in the recent years many researchers have been paying more attention on this area. Problems: The number of publication regarding DDM in high reputation journals and conferences has increased significantly. It makes difficult for researchers to gain a comprehensive view of DDM that require further research. Solution: We conducted a systematic literature review to map the previous research in DDM field. Our objective is to provide the motivation for new research by identifying the gap in DDM field as well as the hot area itself. Result: Our analysis came up with some conclusions by answering 7 research questions proposed in this literature review. In addition, the taxonomy of DDM research area is presented in this paper. Finally, this systematic literature review provides the statistic of development of DDM since 2000 to 2015, in which this will help the future researchers to have a comprehensive overview of current situation of DDM.")
.withField(StandardField.EPRINT, "2009.10618")
.withField(StandardField.FILE, ":http\\://arxiv.org/pdf/2009.10618v1:PDF")
.withField(StandardField.EPRINTTYPE, "arXiv")
.withField(StandardField.EPRINTCLASS, "q-bio.TO")
.withField(StandardField.KEYWORDS, "q-bio.TO");
.withField(StandardField.EPRINTCLASS, "cs.DC")
.withField(StandardField.KEYWORDS, "cs.DC, cs.LG");

List<BibEntry> resultWithPhraseSearch = fetcher.performSearch("au:\"Tobias Diez\"");
List<BibEntry> resultWithOutPhraseSearch = fetcher.performSearch("au:Tobias Diez");
// Ensure that phrase search result is just a subset of the default search result
assertTrue(resultWithOutPhraseSearch.containsAll(resultWithPhraseSearch));
resultWithOutPhraseSearch.removeAll(resultWithPhraseSearch);
List<BibEntry> resultWithPhraseSearch = fetcher.performSearch("ti:\"Taxonomy of Distributed\"");

// There is only a single paper found by searching for Tobias Diez as author that is not authored by "Tobias Diez".
assertEquals(Collections.singletonList(expected), resultWithOutPhraseSearch);
// There is only a single paper found by searching that contains the exact sequence "Taxonomy of Distributed" in the title.
assertEquals(Collections.singletonList(expected), resultWithPhraseSearch);
}

@Test
Expand Down

0 comments on commit 5829eae

Please sign in to comment.