]> source.dussan.org Git - archiva.git/commitdiff
Fix test order dependency in class `BasicManagedRepositoryValidatorTest` (#82)
authorKaiyao Ke <47203510+kaiyaok2@users.noreply.github.com>
Thu, 21 Apr 2022 23:37:59 +0000 (07:37 +0800)
committerGitHub <noreply@github.com>
Thu, 21 Apr 2022 23:37:59 +0000 (09:37 +1000)
* fix order dependency
* change import order

archiva-modules/archiva-base/archiva-repository-layer/src/test/java/org/apache/archiva/repository/base/managed/BasicManagedRepositoryValidatorTest.java

index a5ed4b5b005eceea1fc3f5351ddb1fa33b30b65e..789e0d8a284dc2330dd3989d60f64497f52c5490 100644 (file)
@@ -26,6 +26,8 @@ import org.apache.archiva.repository.ManagedRepository;
 import org.apache.archiva.repository.RepositoryException;
 import org.apache.archiva.repository.RepositoryRegistry;
 import org.apache.archiva.repository.base.ConfigurationHandler;
+import org.apache.archiva.repository.base.managed.ManagedRepositoryHandler;
+import org.apache.archiva.repository.base.remote.RemoteRepositoryHandler;
 import org.apache.archiva.repository.base.group.RepositoryGroupHandler;
 import org.apache.archiva.repository.mock.ManagedRepositoryContentMock;
 import org.apache.archiva.repository.storage.fs.FilesystemStorage;
@@ -62,6 +64,12 @@ class BasicManagedRepositoryValidatorTest
     @Inject
     RepositoryGroupHandler repositoryGroupHandler;
 
+    @Inject
+    ManagedRepositoryHandler managedRepositoryHandler;
+
+    @Inject
+    RemoteRepositoryHandler remoteRepositoryHandler;
+
     Path repoBaseDir;
 
     @AfterEach