From 31e3fbd883c549f4bb94c475ed07cafefc1fbd07 Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Tue, 10 Mar 2020 09:02:08 +0100 Subject: [PATCH] Fixing mock classes --- .../mock/ManagedRepositoryContentMock.java | 12 ------------ .../scanner/mock/ManagedRepositoryContentMock.java | 12 ------------ .../mock/ManagedRepositoryContentMock.java | 12 ------------ 3 files changed, 36 deletions(-) diff --git a/archiva-modules/archiva-base/archiva-repository-layer/src/test/java/org/apache/archiva/repository/mock/ManagedRepositoryContentMock.java b/archiva-modules/archiva-base/archiva-repository-layer/src/test/java/org/apache/archiva/repository/mock/ManagedRepositoryContentMock.java index d24710135..9eb4b819a 100644 --- a/archiva-modules/archiva-base/archiva-repository-layer/src/test/java/org/apache/archiva/repository/mock/ManagedRepositoryContentMock.java +++ b/archiva-modules/archiva-base/archiva-repository-layer/src/test/java/org/apache/archiva/repository/mock/ManagedRepositoryContentMock.java @@ -168,24 +168,12 @@ public class ManagedRepositoryContentMock implements ManagedRepositoryContent return null; } - @Override - public List getArtifacts( Namespace namespace, boolean recurse ) throws ContentAccessException - { - return null; - } - @Override public Stream getArtifactStream( ContentItem item ) throws ContentAccessException { return null; } - @Override - public Stream getArtifactStream( Namespace namespace, boolean recurse ) throws ContentAccessException - { - return null; - } - @Override public boolean hasContent( ItemSelector selector ) { diff --git a/archiva-modules/archiva-base/archiva-repository-scanner/src/test/java/org/apache/archiva/repository/scanner/mock/ManagedRepositoryContentMock.java b/archiva-modules/archiva-base/archiva-repository-scanner/src/test/java/org/apache/archiva/repository/scanner/mock/ManagedRepositoryContentMock.java index 55d424019..6db475b92 100644 --- a/archiva-modules/archiva-base/archiva-repository-scanner/src/test/java/org/apache/archiva/repository/scanner/mock/ManagedRepositoryContentMock.java +++ b/archiva-modules/archiva-base/archiva-repository-scanner/src/test/java/org/apache/archiva/repository/scanner/mock/ManagedRepositoryContentMock.java @@ -169,24 +169,12 @@ public class ManagedRepositoryContentMock implements ManagedRepositoryContent return null; } - @Override - public List getArtifacts( Namespace namespace, boolean recurse ) throws ContentAccessException - { - return null; - } - @Override public Stream getArtifactStream( ContentItem item ) throws ContentAccessException { return null; } - @Override - public Stream getArtifactStream( Namespace namespace, boolean recurse ) throws ContentAccessException - { - return null; - } - @Override public boolean hasContent( ItemSelector selector ) { diff --git a/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/repository/mock/ManagedRepositoryContentMock.java b/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/repository/mock/ManagedRepositoryContentMock.java index 09c5aab4b..23300ff93 100644 --- a/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/repository/mock/ManagedRepositoryContentMock.java +++ b/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/repository/mock/ManagedRepositoryContentMock.java @@ -173,24 +173,12 @@ public class ManagedRepositoryContentMock implements ManagedRepositoryContent return null; } - @Override - public List getArtifacts( Namespace namespace, boolean recurse ) throws ContentAccessException - { - return null; - } - @Override public Stream getArtifactStream( ContentItem item ) throws ContentAccessException { return null; } - @Override - public Stream getArtifactStream( Namespace namespace, boolean recurse ) throws ContentAccessException - { - return null; - } - @Override public boolean hasContent( ItemSelector selector ) { -- 2.39.5