From: Kaiyao Ke <47203510+kaiyaok2@users.noreply.github.com> Date: Thu, 21 Apr 2022 23:37:59 +0000 (+0800) Subject: Fix test order dependency in class `BasicManagedRepositoryValidatorTest` (#82) X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c3d53dac903ce7eb32aab35d93741e6a20fbaba2;p=archiva.git Fix test order dependency in class `BasicManagedRepositoryValidatorTest` (#82) * fix order dependency * change import order --- diff --git a/archiva-modules/archiva-base/archiva-repository-layer/src/test/java/org/apache/archiva/repository/base/managed/BasicManagedRepositoryValidatorTest.java b/archiva-modules/archiva-base/archiva-repository-layer/src/test/java/org/apache/archiva/repository/base/managed/BasicManagedRepositoryValidatorTest.java index a5ed4b5b0..789e0d8a2 100644 --- a/archiva-modules/archiva-base/archiva-repository-layer/src/test/java/org/apache/archiva/repository/base/managed/BasicManagedRepositoryValidatorTest.java +++ b/archiva-modules/archiva-base/archiva-repository-layer/src/test/java/org/apache/archiva/repository/base/managed/BasicManagedRepositoryValidatorTest.java @@ -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