Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.test/src/org/eclipse/osee/framework/core/test/translation/PurgeBranchRequestTranslatorTest.java')
-rw-r--r--plugins/org.eclipse.osee.framework.core.test/src/org/eclipse/osee/framework/core/test/translation/PurgeBranchRequestTranslatorTest.java52
1 files changed, 52 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.test/src/org/eclipse/osee/framework/core/test/translation/PurgeBranchRequestTranslatorTest.java b/plugins/org.eclipse.osee.framework.core.test/src/org/eclipse/osee/framework/core/test/translation/PurgeBranchRequestTranslatorTest.java
new file mode 100644
index 00000000000..cec4e678a6a
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.core.test/src/org/eclipse/osee/framework/core/test/translation/PurgeBranchRequestTranslatorTest.java
@@ -0,0 +1,52 @@
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 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.framework.core.test.translation;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+import org.eclipse.osee.framework.core.data.PurgeBranchRequest;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.translation.ITranslator;
+import org.eclipse.osee.framework.core.translation.PurgeBranchRequestTranslator;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
+import org.junit.runners.Parameterized.Parameters;
+
+/**
+ * Test Case for {@link PurgeBranchRequestTranslator}
+ *
+ * @author Megumi Telles
+ * @author Jeff C. Phillips
+ */
+@RunWith(Parameterized.class)
+public class PurgeBranchRequestTranslatorTest extends BaseTranslatorTest<PurgeBranchRequest> {
+
+ public PurgeBranchRequestTranslatorTest(PurgeBranchRequest data, ITranslator<PurgeBranchRequest> translator) {
+ super(data, translator);
+ }
+
+ @Override
+ protected void checkEquals(PurgeBranchRequest expected, PurgeBranchRequest actual) throws OseeCoreException {
+ DataAsserts.assertEquals(expected, actual);
+ }
+
+ @Parameters
+ public static Collection<Object[]> data() throws OseeCoreException {
+ List<Object[]> data = new ArrayList<Object[]>();
+ ITranslator<PurgeBranchRequest> translator = new PurgeBranchRequestTranslator();
+
+ for (int index = 1; index <= 2; index++) {
+ data.add(new Object[] {new PurgeBranchRequest(index * 3), translator});
+ }
+ return data;
+ }
+}

Back to the top