// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See License.txt in the project root.

package com.microsoft.alm.plugin.idea.common.ui.checkout.mocks;

import com.microsoft.alm.plugin.idea.common.ui.checkout.CheckoutPage;
import com.microsoft.alm.plugin.idea.common.ui.common.ServerContextTableModel;

import javax.swing.JComponent;
import javax.swing.ListSelectionModel;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.List;

public class MockCheckoutPage implements CheckoutPage {
    private List<ActionListener> actionListeners = new ArrayList<ActionListener>();
    private String displayError;
    private int selectedTabIndex = 0;
    private boolean loginShowing = false;
    private boolean cloneEnabled = false;
    private String repositoryFilter;

    @Override
    public void addActionListener(ActionListener listener) {
        actionListeners.add(listener);
    }

    @Override
    public void setLoginShowing(boolean showLogin) {
        loginShowing = showLogin;
    }

    @Override
    public void setLoading(boolean loading) {
    }

    @Override
    public void setAuthenticating(final boolean authenticating) {
    }

    @Override
    public void setAdvanced(boolean advanced) {
    }

    @Override
    public boolean getAdvanced() {
        return false;
    }

    @Override
    public boolean isTfvcServerCheckout() {
        return false;
    }

    @Override
    public void setRepositoryFilter(String filter) {
        repositoryFilter = filter;
    }

    @Override
    public String getRepositoryFilter() {
        return repositoryFilter;
    }

    @Override
    public void setRepositoryTable(ServerContextTableModel tableModel, ListSelectionModel selectionModel) {

    }

    @Override
    public void setParentDirectory(String path) {

    }

    @Override
    public String getParentDirectory() {
        return null;
    }

    @Override
    public JComponent getComponent(String name) {
        return null;
    }

    @Override
    public void setDirectoryName(String name) {

    }

    @Override
    public String getDirectoryName() {
        return null;
    }

    @Override
    public void setUserName(String name) {

    }

    @Override
    public void setServerName(String name) {

    }

    @Override
    public String getServerName() {
        return null;
    }

    @Override
    public JComponent getPreferredFocusedComponent() {
        return null;
    }
}

@@ -441,59 +441,8 @@
 ner;
-%0Aimport java.util.ArrayList;%0Aimport java.util.List;
 %0A%0Apu
@@ -499,247 +499,8 @@
 e %7B%0A
-    private List%3CActionListener%3E actionListeners = new ArrayList%3CActionListener%3E();%0A    private String displayError;%0A    private int selectedTabIndex = 0;%0A    private boolean loginShowing = false;%0A    private boolean cloneEnabled = false;%0A
     
@@ -612,47 +612,8 @@
 ) %7B%0A
-        actionListeners.add(listener);%0A
     
@@ -686,42 +686,8 @@
 ) %7B%0A
-        loginShowing = showLogin;%0A
     

Fix #381: delete the unused test fields