diff options
author | donald.g.dunne | 2015-12-11 21:07:01 +0000 |
---|---|---|
committer | Ryan D. Brooks | 2015-12-11 21:07:01 +0000 |
commit | 46b4dfa08c74df928df15598271a878928eec629 (patch) | |
tree | d7159e3338cc1343851603fd3720b0ab03170163 /plugins/org.eclipse.osee.ats.core.client.test | |
parent | b3267be249fa7928646bb9a8b603bb909f3d9af6 (diff) | |
download | org.eclipse.osee-46b4dfa08c74df928df15598271a878928eec629.tar.gz org.eclipse.osee-46b4dfa08c74df928df15598271a878928eec629.tar.xz org.eclipse.osee-46b4dfa08c74df928df15598271a878928eec629.zip |
refactor: Cleanup unused and un-necessary ATS mocks
Change-Id: I98d5833b8f4f22a261d1a5b70232ff6761914cd6
Diffstat (limited to 'plugins/org.eclipse.osee.ats.core.client.test')
2 files changed, 1 insertions, 55 deletions
diff --git a/plugins/org.eclipse.osee.ats.core.client.test/src/org/eclipse/osee/ats/core/client/review/defect/MockValueProvider.java b/plugins/org.eclipse.osee.ats.core.client.test/src/org/eclipse/osee/ats/core/client/review/defect/MockValueProvider.java deleted file mode 100644 index 9b72ed0b032..00000000000 --- a/plugins/org.eclipse.osee.ats.core.client.test/src/org/eclipse/osee/ats/core/client/review/defect/MockValueProvider.java +++ /dev/null @@ -1,55 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011 Boeing. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Boeing - initial API and implementation - *******************************************************************************/ -package org.eclipse.osee.ats.core.client.review.defect; - -import java.util.Collection; -import java.util.Collections; -import java.util.Date; -import org.eclipse.osee.ats.core.validator.IValueProvider; - -/** - * @author Donald G. Dunne - */ -public class MockValueProvider implements IValueProvider { - - private final Collection<String> values; - private final String name; - - public MockValueProvider(Collection<String> values) { - this("test", values); - } - - public MockValueProvider(String name, Collection<String> values) { - this.name = name; - this.values = values; - } - - @Override - public String getName() { - return name; - } - - @Override - public boolean isEmpty() { - return values.isEmpty(); - } - - @Override - public Collection<String> getValues() { - return values; - } - - @Override - public Collection<Date> getDateValues() { - return Collections.emptyList(); - } - -} diff --git a/plugins/org.eclipse.osee.ats.core.client.test/src/org/eclipse/osee/ats/core/client/review/defect/ValidatorTestUtil.java b/plugins/org.eclipse.osee.ats.core.client.test/src/org/eclipse/osee/ats/core/client/review/defect/ValidatorTestUtil.java index dd78e5ba3f3..ecf75f30b1d 100644 --- a/plugins/org.eclipse.osee.ats.core.client.test/src/org/eclipse/osee/ats/core/client/review/defect/ValidatorTestUtil.java +++ b/plugins/org.eclipse.osee.ats.core.client.test/src/org/eclipse/osee/ats/core/client/review/defect/ValidatorTestUtil.java @@ -13,6 +13,7 @@ package org.eclipse.osee.ats.core.client.review.defect; import java.util.ArrayList; import org.eclipse.osee.ats.api.workdef.WidgetResult; import org.eclipse.osee.ats.api.workdef.WidgetStatus; +import org.eclipse.osee.ats.mocks.MockValueProvider; import org.junit.Assert; /** |