diff --git a/core/src/test/java/ch/cyberduck/core/NullDeleteFeature.java b/core/src/test/java/ch/cyberduck/core/NullDeleteFeature.java new file mode 100644 index 00000000000..b2739685110 --- /dev/null +++ b/core/src/test/java/ch/cyberduck/core/NullDeleteFeature.java @@ -0,0 +1,28 @@ +package ch.cyberduck.core;/* + * Copyright (c) 2002-2023 iterate GmbH. All rights reserved. + * https://cyberduck.io/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +import ch.cyberduck.core.exception.BackgroundException; +import ch.cyberduck.core.features.Delete; +import ch.cyberduck.core.transfer.TransferStatus; + +import java.util.Map; + +public class NullDeleteFeature implements Delete { + + @Override + public void delete(final Map files, final PasswordCallback prompt, final Callback callback) throws BackgroundException { + + } +} diff --git a/core/src/test/java/ch/cyberduck/core/NullSession.java b/core/src/test/java/ch/cyberduck/core/NullSession.java index 4fefe662221..dfb1954f9f3 100644 --- a/core/src/test/java/ch/cyberduck/core/NullSession.java +++ b/core/src/test/java/ch/cyberduck/core/NullSession.java @@ -2,6 +2,7 @@ import ch.cyberduck.core.exception.BackgroundException; import ch.cyberduck.core.exception.LoginCanceledException; +import ch.cyberduck.core.features.Delete; import ch.cyberduck.core.features.Directory; import ch.cyberduck.core.features.Move; import ch.cyberduck.core.features.Read; @@ -56,6 +57,9 @@ public T _getFeature(Class type) { if(type == Move.class) { return (T) new NullMoveFeature(); } + if(type == Delete.class) { + return (T) new NullDeleteFeature(); + } if(type == Directory.class) { return (T) new NullDirectoryFeature(); }