Skip to content

Commit

Permalink
Organizing all imports of the project.
Browse files Browse the repository at this point in the history
  • Loading branch information
khituras committed Mar 28, 2019
1 parent 2df5d1d commit 90936c7
Show file tree
Hide file tree
Showing 46 changed files with 165 additions and 159 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
package de.julielab.jcore.ae.banner;

import static org.junit.Assert.assertEquals;

import java.util.ArrayList;
import java.util.List;

import de.julielab.jcore.types.EntityMention;
import de.julielab.jcore.types.Gene;
import de.julielab.jcore.types.Sentence;
import org.apache.uima.analysis_engine.AnalysisEngine;
import org.apache.uima.fit.factory.AnalysisEngineFactory;
import org.apache.uima.fit.factory.JCasFactory;
import org.apache.uima.fit.util.JCasUtil;
import org.apache.uima.jcas.JCas;
import org.junit.Test;

import de.julielab.jcore.types.Gene;
import de.julielab.jcore.types.Sentence;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.ArrayList;
import java.util.List;

import static org.junit.Assert.assertEquals;

public class BannerAETest {
private final static Logger log = LoggerFactory.getLogger(BannerAETest.class);
@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package de.julielab.jcore.ae.biosem.bionlpst09;

import de.julielab.jcore.types.Gene;
import org.apache.uima.analysis_engine.AnalysisEngine;
import org.apache.uima.fit.factory.AnalysisEngineFactory;
import org.apache.uima.fit.factory.JCasFactory;
import org.apache.uima.jcas.JCas;
import org.junit.Test;

import de.julielab.jcore.types.Gene;

public class TestData {
@Test
public void testAE() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package de.julielab.jcore.ae.biosem.bionlpst09;

import static org.junit.Assert.assertTrue;

import java.io.FileInputStream;

import de.julielab.jcore.types.EventMention;
import org.apache.uima.analysis_engine.AnalysisEngine;
import org.apache.uima.cas.FSIterator;
import org.apache.uima.cas.impl.XmiCasDeserializer;
Expand All @@ -13,7 +10,9 @@
import org.apache.uima.jcas.tcas.Annotation;
import org.junit.Test;

import de.julielab.jcore.types.EventMention;
import java.io.FileInputStream;

import static org.junit.Assert.assertTrue;

/**
* With 'difficult document' we mean a document that used to make problems with BioSem
Expand Down
5 changes: 4 additions & 1 deletion jcore-biosem-ae-bionlp-st09/src/test/resources/10806352.xmi

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion jcore-biosem-ae-bionlp-st09/src/test/resources/11250876.xmi

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion jcore-biosem-ae-bionlp-st09/src/test/resources/20935495.xmi

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion jcore-biosem-ae-bionlp-st09/src/test/resources/21681342.xmi

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion jcore-biosem-ae-bionlp-st09/src/test/resources/22675210.xmi

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion jcore-biosem-ae-bionlp-st09/src/test/resources/23380144.xmi

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package de.julielab.jcore.ae.biosem.bionlpst11;

import de.julielab.jcore.types.Gene;
import org.apache.uima.analysis_engine.AnalysisEngine;
import org.apache.uima.fit.factory.AnalysisEngineFactory;
import org.apache.uima.fit.factory.JCasFactory;
import org.apache.uima.jcas.JCas;
import org.junit.Test;

import de.julielab.jcore.types.Gene;

public class TestData {
@Test
public void testAE() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package de.julielab.jcore.ae.biosem.bionlpst11;

import static org.junit.Assert.assertTrue;

import java.io.FileInputStream;

import de.julielab.jcore.types.EventMention;
import org.apache.uima.analysis_engine.AnalysisEngine;
import org.apache.uima.cas.FSIterator;
import org.apache.uima.cas.impl.XmiCasDeserializer;
Expand All @@ -13,7 +10,9 @@
import org.apache.uima.jcas.tcas.Annotation;
import org.junit.Test;

import de.julielab.jcore.types.EventMention;
import java.io.FileInputStream;

import static org.junit.Assert.assertTrue;

/**
* With 'difficult document' we mean a document that used to make problems with BioSem
Expand Down
5 changes: 4 additions & 1 deletion jcore-biosem-ae-bionlp-st11/src/test/resources/10806352.xmi

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion jcore-biosem-ae-bionlp-st11/src/test/resources/11250876.xmi

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion jcore-biosem-ae-bionlp-st11/src/test/resources/20935495.xmi

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion jcore-biosem-ae-bionlp-st11/src/test/resources/21681342.xmi

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion jcore-biosem-ae-bionlp-st11/src/test/resources/22675210.xmi

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion jcore-biosem-ae-bionlp-st11/src/test/resources/23380144.xmi

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package de.julielab.jcore.ae.biosem.bionlpst13;

import de.julielab.jcore.types.Gene;
import org.apache.uima.analysis_engine.AnalysisEngine;
import org.apache.uima.fit.factory.AnalysisEngineFactory;
import org.apache.uima.fit.factory.JCasFactory;
import org.apache.uima.jcas.JCas;
import org.junit.Test;

import de.julielab.jcore.types.Gene;

public class TestData {
@Test
public void testAE() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package de.julielab.jcore.ae.biosem.bionlpst13;

import static org.junit.Assert.assertTrue;

import java.io.FileInputStream;

import de.julielab.jcore.types.EventMention;
import org.apache.uima.analysis_engine.AnalysisEngine;
import org.apache.uima.cas.FSIterator;
import org.apache.uima.cas.impl.XmiCasDeserializer;
Expand All @@ -13,7 +10,9 @@
import org.apache.uima.jcas.tcas.Annotation;
import org.junit.Test;

import de.julielab.jcore.types.EventMention;
import java.io.FileInputStream;

import static org.junit.Assert.assertTrue;

/**
* With 'difficult document' we mean a document that used to make problems with BioSem
Expand Down
5 changes: 4 additions & 1 deletion jcore-biosem-ae-bionlp-st13/src/test/resources/10806352.xmi

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion jcore-biosem-ae-bionlp-st13/src/test/resources/11250876.xmi

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion jcore-biosem-ae-bionlp-st13/src/test/resources/20935495.xmi

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion jcore-biosem-ae-bionlp-st13/src/test/resources/21681342.xmi

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion jcore-biosem-ae-bionlp-st13/src/test/resources/22675210.xmi

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion jcore-biosem-ae-bionlp-st13/src/test/resources/23380144.xmi

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package de.julielab.jcore.ae.jnet;

import static org.junit.Assert.assertTrue;

import java.io.File;

import org.apache.uima.UIMAFramework;
import org.apache.uima.analysis_engine.AnalysisEngine;
import org.apache.uima.resource.ResourceSpecifier;
Expand All @@ -12,6 +8,10 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.File;

import static org.junit.Assert.assertTrue;

public class TestPipeline {

private static final Logger LOGGER = LoggerFactory.getLogger(TestPipeline.class);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package de.julielab.jcore.ae.jpos;

import static org.junit.Assert.assertTrue;

import java.io.File;

import org.apache.uima.UIMAFramework;
import org.apache.uima.analysis_engine.AnalysisEngine;
import org.apache.uima.resource.ResourceSpecifier;
Expand All @@ -12,6 +8,10 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.File;

import static org.junit.Assert.assertTrue;

public class TestPipeline {

private static final Logger LOGGER = LoggerFactory.getLogger(TestPipeline.class);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package de.julielab.jcore.ae.jsbd;

import static org.junit.Assert.assertTrue;

import java.io.File;

import de.julielab.jcore.types.Sentence;
import org.apache.uima.UIMAFramework;
import org.apache.uima.analysis_engine.AnalysisEngine;
import org.apache.uima.cas.FSIterator;
Expand All @@ -17,7 +14,9 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import de.julielab.jcore.types.Sentence;
import java.io.File;

import static org.junit.Assert.assertTrue;

public class TestPipeline {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package de.julielab.jcore.ae.jsbd;

import static org.junit.Assert.assertTrue;

import java.io.File;

import org.apache.uima.UIMAFramework;
import de.julielab.jcore.types.Sentence;
import org.apache.uima.analysis_engine.AnalysisEngine;
import org.apache.uima.cas.FSIterator;
import org.apache.uima.fit.factory.AnalysisEngineFactory;
Expand All @@ -18,7 +14,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import de.julielab.jcore.types.Sentence;
import static org.junit.Assert.assertTrue;

public class TestPipeline {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
package de.julielab.jcore.ae.jtbd.biomedical.english;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

import de.julielab.jcore.types.Sentence;
import de.julielab.jcore.types.Token;
import org.apache.uima.analysis_engine.AnalysisEngine;
import org.apache.uima.cas.FSIterator;
import org.apache.uima.fit.factory.AnalysisEngineFactory;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.tcas.Annotation;
import org.junit.Test;

import de.julielab.jcore.types.Sentence;
import de.julielab.jcore.types.Token;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

public class JTBDBiomedEnglishTest {
@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
package de.julielab.jcore.ae.jtbd;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

import de.julielab.jcore.types.Sentence;
import de.julielab.jcore.types.Token;
import org.apache.uima.analysis_engine.AnalysisEngine;
import org.apache.uima.cas.FSIterator;
import org.apache.uima.fit.factory.AnalysisEngineFactory;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.tcas.Annotation;
import org.junit.Test;

import de.julielab.jcore.types.Sentence;
import de.julielab.jcore.types.Token;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

public class JTBDMedicalGermanTest {
@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
import org.apache.uima.fit.util.JCasUtil;
import org.apache.uima.jcas.JCas;
import org.junit.Test;
import static org.assertj.core.api.Assertions.*;

import static org.assertj.core.api.Assertions.assertThat;
public class LingscopeNegationAeTest {
@Test
public void testWithoutLikelihoodDict() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package de.julielab.jcore.ae.linnaeus;

import static org.junit.Assert.assertNotNull;

import java.io.IOException;

import org.apache.uima.analysis_engine.AnalysisEngine;
import org.apache.uima.fit.factory.AnalysisEngineFactory;
import org.apache.uima.resource.ResourceInitializationException;
import org.apache.uima.util.InvalidXMLException;
import org.junit.Ignore;
import org.junit.Test;

import java.io.IOException;

import static org.junit.Assert.assertNotNull;

// The test should be run when something is changed, but it takes too long to run on an automated basis.
@Ignore
public class DescriptorTest {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package de.julielab.jcore.ae.linnaeus;

import static org.junit.Assert.assertNotNull;

import java.io.IOException;

import org.apache.uima.analysis_engine.AnalysisEngine;
import org.apache.uima.fit.factory.AnalysisEngineFactory;
import org.apache.uima.resource.ResourceInitializationException;
import org.apache.uima.util.InvalidXMLException;
import org.junit.Ignore;
import org.junit.Test;

import java.io.IOException;

import static org.junit.Assert.assertNotNull;

// The test should be run when something is changed, but it takes too long to run on an automated basis.
@Ignore
public class DescriptorTest {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package de.julielab.jcore.ae.linnaeus;

import static org.junit.Assert.assertNotNull;

import java.io.IOException;

import org.apache.uima.analysis_engine.AnalysisEngine;
import org.apache.uima.fit.factory.AnalysisEngineFactory;
import org.apache.uima.resource.ResourceInitializationException;
import org.apache.uima.util.InvalidXMLException;
import org.junit.Ignore;
import org.junit.Test;

import java.io.IOException;

import static org.junit.Assert.assertNotNull;

// The test should be run when something is changed, but it takes too long to run on an automated basis.
@Ignore
public class DescriptorTest {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package de.julielab.jcore.reader.xml;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

import de.julielab.jcore.types.AbstractText;
import de.julielab.jcore.types.AuthorInfo;
import de.julielab.jcore.types.Keyword;
import de.julielab.jcore.types.pubmed.Header;
import de.julielab.jcore.types.pubmed.ManualDescriptor;
import de.julielab.jcore.types.pubmed.OtherID;
import org.apache.uima.cas.FSIterator;
import org.apache.uima.collection.CollectionReader;
import org.apache.uima.collection.CollectionReaderDescription;
Expand All @@ -16,12 +17,7 @@
import org.apache.uima.jcas.tcas.Annotation;
import org.junit.Test;

import de.julielab.jcore.types.AbstractText;
import de.julielab.jcore.types.AuthorInfo;
import de.julielab.jcore.types.Keyword;
import de.julielab.jcore.types.pubmed.Header;
import de.julielab.jcore.types.pubmed.ManualDescriptor;
import de.julielab.jcore.types.pubmed.OtherID;
import static org.junit.Assert.*;

public class MedlineReaderTest {
@Test
Expand Down
Loading

0 comments on commit 90936c7

Please sign in to comment.