Added simple dependency checks to all annotation processors

Change-Id: I8de5ca9a6e56bbcd32168cdb23474be4401171a7
diff --git a/Changes b/Changes
index 2a9e3d6..0bdeb59 100644
--- a/Changes
+++ b/Changes
@@ -15,6 +15,8 @@
         - Fix RWK paragraph handling.
         - Updated 'Clone' dependency in Makefile.
         - Make Sys::Info optional.
+        - Fixes a bug in XIP::Dependency and added
+          dependency checks for all annotation libraries.
 
 0.40 2020-03-03
         - Fixed XIP parser.
diff --git a/t/annotation/base_paragraphs.t b/t/annotation/base_paragraphs.t
index 9f02f27..5f81e18 100644
--- a/t/annotation/base_paragraphs.t
+++ b/t/annotation/base_paragraphs.t
@@ -2,6 +2,7 @@
 use strict;
 use warnings;
 use utf8;
+use KorAP::XML::Annotation::Base::Paragraphs;
 use Test::More;
 use lib 't/annotation';
 use TestInit;
diff --git a/t/annotation/base_sentences.t b/t/annotation/base_sentences.t
index 8096e5b..5a324f6 100644
--- a/t/annotation/base_sentences.t
+++ b/t/annotation/base_sentences.t
@@ -3,6 +3,7 @@
 use warnings;
 use utf8;
 use Test::More;
+use KorAP::XML::Annotation::Base::Sentences;
 use lib 't/annotation';
 use TestInit;
 use Scalar::Util qw/weaken/;
diff --git a/t/annotation/connexor_morpho.t b/t/annotation/connexor_morpho.t
index d426571..af29419 100644
--- a/t/annotation/connexor_morpho.t
+++ b/t/annotation/connexor_morpho.t
@@ -2,6 +2,7 @@
 use strict;
 use warnings;
 use utf8;
+use KorAP::XML::Annotation::Connexor::Morpho;
 use Test::More;
 use lib 't/annotation';
 use TestInit;
diff --git a/t/annotation/connexor_phrase.t b/t/annotation/connexor_phrase.t
index f3df759..6ad55d1 100644
--- a/t/annotation/connexor_phrase.t
+++ b/t/annotation/connexor_phrase.t
@@ -2,6 +2,7 @@
 use strict;
 use warnings;
 use utf8;
+use KorAP::XML::Annotation::Connexor::Phrase;
 use Test::More;
 use lib 't/annotation';
 use TestInit;
diff --git a/t/annotation/connexor_sentences.t b/t/annotation/connexor_sentences.t
index 37db3fb..cd90195 100644
--- a/t/annotation/connexor_sentences.t
+++ b/t/annotation/connexor_sentences.t
@@ -3,6 +3,7 @@
 use warnings;
 use utf8;
 use Test::More;
+use KorAP::XML::Annotation::Connexor::Sentences;
 use Scalar::Util qw/weaken/;
 use Data::Dumper;
 
diff --git a/t/annotation/connexor_syntax.t b/t/annotation/connexor_syntax.t
index c94fc58..296bba1 100644
--- a/t/annotation/connexor_syntax.t
+++ b/t/annotation/connexor_syntax.t
@@ -2,6 +2,7 @@
 use strict;
 use warnings;
 use utf8;
+use KorAP::XML::Annotation::Connexor::Syntax;
 use Test::More;
 use Scalar::Util qw/weaken/;
 use Data::Dumper;
diff --git a/t/annotation/corenlp_constituency.t b/t/annotation/corenlp_constituency.t
index 4198ede..00c791b 100644
--- a/t/annotation/corenlp_constituency.t
+++ b/t/annotation/corenlp_constituency.t
@@ -2,6 +2,7 @@
 use strict;
 use warnings;
 use utf8;
+use KorAP::XML::Annotation::CoreNLP::Constituency;
 use Test::More;
 use Scalar::Util qw/weaken/;
 use Data::Dumper;
diff --git a/t/annotation/corenlp_ent.t b/t/annotation/corenlp_ent.t
index 30e8081..0123d77 100644
--- a/t/annotation/corenlp_ent.t
+++ b/t/annotation/corenlp_ent.t
@@ -3,6 +3,7 @@
 use warnings;
 use utf8;
 use Test::More;
+use KorAP::XML::Annotation::CoreNLP::NamedEntities;
 use Scalar::Util qw/weaken/;
 use Data::Dumper;
 use lib 't/annotation';
diff --git a/t/annotation/corenlp_morpho.t b/t/annotation/corenlp_morpho.t
index cefc94e..17633cb 100644
--- a/t/annotation/corenlp_morpho.t
+++ b/t/annotation/corenlp_morpho.t
@@ -3,6 +3,7 @@
 use warnings;
 use utf8;
 use Test::More;
+use KorAP::XML::Annotation::CoreNLP::Morpho;
 use Scalar::Util qw/weaken/;
 use Data::Dumper;
 use lib 't/annotation';
diff --git a/t/annotation/corenlp_sentences.t b/t/annotation/corenlp_sentences.t
index 09611c6..54788d5 100644
--- a/t/annotation/corenlp_sentences.t
+++ b/t/annotation/corenlp_sentences.t
@@ -3,6 +3,7 @@
 use warnings;
 use utf8;
 use Test::More;
+use KorAP::XML::Annotation::CoreNLP::Sentences;
 use Scalar::Util qw/weaken/;
 use Data::Dumper;
 use lib 't/annotation';
diff --git a/t/annotation/dereko_struct.t b/t/annotation/dereko_struct.t
index 921b58e..73b5be2 100644
--- a/t/annotation/dereko_struct.t
+++ b/t/annotation/dereko_struct.t
@@ -3,6 +3,7 @@
 use warnings;
 use utf8;
 use Test::More;
+use KorAP::XML::Annotation::DeReKo::Structure;
 use lib 't/annotation';
 use TestInit;
 use Scalar::Util qw/weaken/;
diff --git a/t/annotation/glemm_morpho.t b/t/annotation/glemm_morpho.t
index 0ac9705..7c2a487 100644
--- a/t/annotation/glemm_morpho.t
+++ b/t/annotation/glemm_morpho.t
@@ -3,6 +3,7 @@
 use warnings;
 use utf8;
 use Test::More;
+use KorAP::XML::Annotation::Glemm::Morpho;
 use Scalar::Util qw/weaken/;
 use Data::Dumper;
 use lib 't/annotation';
diff --git a/t/annotation/malt_dependency.t b/t/annotation/malt_dependency.t
index 515ae8f..cbbbf27 100644
--- a/t/annotation/malt_dependency.t
+++ b/t/annotation/malt_dependency.t
@@ -1,6 +1,7 @@
 #!/usr/bin/env perl
 use strict;
 use warnings;
+use KorAP::XML::Annotation::Malt::Dependency;
 use utf8;
 use Log::Log4perl;
 
diff --git a/t/annotation/mate_dependency.t b/t/annotation/mate_dependency.t
index 63fd571..9d5421e 100644
--- a/t/annotation/mate_dependency.t
+++ b/t/annotation/mate_dependency.t
@@ -3,6 +3,7 @@
 use warnings;
 use utf8;
 use Test::More;
+use KorAP::XML::Annotation::Mate::Dependency;
 use Scalar::Util qw/weaken/;
 use Data::Dumper;
 use lib 't/annotation';
diff --git a/t/annotation/mate_morpho.t b/t/annotation/mate_morpho.t
index 9798ba0..fc01661 100644
--- a/t/annotation/mate_morpho.t
+++ b/t/annotation/mate_morpho.t
@@ -3,6 +3,7 @@
 use warnings;
 use utf8;
 use Test::More;
+use KorAP::XML::Annotation::Mate::Morpho;
 use Scalar::Util qw/weaken/;
 use Data::Dumper;
 use lib 't/annotation';
diff --git a/t/annotation/mate_morpho_attr.t b/t/annotation/mate_morpho_attr.t
index e556d0f..712b92f 100644
--- a/t/annotation/mate_morpho_attr.t
+++ b/t/annotation/mate_morpho_attr.t
@@ -3,6 +3,7 @@
 use warnings;
 use utf8;
 use Test::More;
+use KorAP::XML::Annotation::Mate::MorphoAttr;
 use Scalar::Util qw/weaken/;
 use Data::Dumper;
 use lib 't/annotation';
diff --git a/t/annotation/opennlp_morpho.t b/t/annotation/opennlp_morpho.t
index 64d9008..3504995 100644
--- a/t/annotation/opennlp_morpho.t
+++ b/t/annotation/opennlp_morpho.t
@@ -3,6 +3,7 @@
 use warnings;
 use utf8;
 use Test::More;
+use KorAP::XML::Annotation::OpenNLP::Morpho;
 use Scalar::Util qw/weaken/;
 use Data::Dumper;
 use lib 't/annotation';
diff --git a/t/annotation/opennlp_sentences.t b/t/annotation/opennlp_sentences.t
index 02eac83..cd06e58 100644
--- a/t/annotation/opennlp_sentences.t
+++ b/t/annotation/opennlp_sentences.t
@@ -3,6 +3,7 @@
 use warnings;
 use utf8;
 use Test::More;
+use KorAP::XML::Annotation::OpenNLP::Sentences;
 use Scalar::Util qw/weaken/;
 use Data::Dumper;
 use lib 't/annotation';
diff --git a/t/annotation/tt_morpho.t b/t/annotation/tt_morpho.t
index cf97fa6..616f08c 100644
--- a/t/annotation/tt_morpho.t
+++ b/t/annotation/tt_morpho.t
@@ -3,6 +3,7 @@
 use warnings;
 use utf8;
 use Test::More;
+use KorAP::XML::Annotation::TreeTagger::Morpho;
 use Scalar::Util qw/weaken/;
 use Data::Dumper;
 use lib 't/annotation';
diff --git a/t/annotation/tt_sentences.t b/t/annotation/tt_sentences.t
index a7894b8..1ac2781 100644
--- a/t/annotation/tt_sentences.t
+++ b/t/annotation/tt_sentences.t
@@ -3,6 +3,7 @@
 use warnings;
 use utf8;
 use Test::More;
+use KorAP::XML::Annotation::TreeTagger::Sentences;
 use Scalar::Util qw/weaken/;
 use Data::Dumper;
 use lib 't/annotation';
diff --git a/t/annotation/xip_constituency.t b/t/annotation/xip_constituency.t
index 0f8a0b8..5ecf73d 100644
--- a/t/annotation/xip_constituency.t
+++ b/t/annotation/xip_constituency.t
@@ -3,6 +3,7 @@
 use warnings;
 use utf8;
 use Test::More;
+use KorAP::XML::Annotation::XIP::Constituency;
 use Scalar::Util qw/weaken/;
 use Data::Dumper;
 use lib 't/annotation';
diff --git a/t/annotation/xip_dependency.t b/t/annotation/xip_dependency.t
index 1f8a169..ca0e71b 100644
--- a/t/annotation/xip_dependency.t
+++ b/t/annotation/xip_dependency.t
@@ -2,6 +2,7 @@
 use strict;
 use warnings;
 use utf8;
+use KorAP::XML::Annotation::XIP::Dependency;
 use Test::More skip_all => 'Not yet implemented';
 use Scalar::Util qw/weaken/;
 use Data::Dumper;
diff --git a/t/annotation/xip_morpho.t b/t/annotation/xip_morpho.t
index 7a4404c..4335c20 100644
--- a/t/annotation/xip_morpho.t
+++ b/t/annotation/xip_morpho.t
@@ -3,6 +3,7 @@
 use warnings;
 use utf8;
 use Test::More;
+use KorAP::XML::Annotation::XIP::Morpho;
 use Scalar::Util qw/weaken/;
 use Data::Dumper;
 use lib 't/annotation';
diff --git a/t/annotation/xip_sentences.t b/t/annotation/xip_sentences.t
index 88b3e21..9efdb5a 100644
--- a/t/annotation/xip_sentences.t
+++ b/t/annotation/xip_sentences.t
@@ -3,6 +3,7 @@
 use warnings;
 use utf8;
 use Test::More;
+use KorAP::XML::Annotation::XIP::Sentences;
 use Scalar::Util qw/weaken/;
 use Data::Dumper;
 use lib 't/annotation';