diff options
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.message.test/src/org/eclipse/osee/framework/core/message/test/translation/BranchCommitRequestTranslatorTest.java')
-rw-r--r-- | plugins/org.eclipse.osee.framework.core.message.test/src/org/eclipse/osee/framework/core/message/test/translation/BranchCommitRequestTranslatorTest.java | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.message.test/src/org/eclipse/osee/framework/core/message/test/translation/BranchCommitRequestTranslatorTest.java b/plugins/org.eclipse.osee.framework.core.message.test/src/org/eclipse/osee/framework/core/message/test/translation/BranchCommitRequestTranslatorTest.java index d51073f7e20..50bebf48e9c 100644 --- a/plugins/org.eclipse.osee.framework.core.message.test/src/org/eclipse/osee/framework/core/message/test/translation/BranchCommitRequestTranslatorTest.java +++ b/plugins/org.eclipse.osee.framework.core.message.test/src/org/eclipse/osee/framework/core/message/test/translation/BranchCommitRequestTranslatorTest.java @@ -1,54 +1,54 @@ -/*******************************************************************************
- * 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.message.test.translation;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.message.BranchCommitRequest;
-import org.eclipse.osee.framework.core.message.internal.translation.BranchCommitRequestTranslator;
-import org.eclipse.osee.framework.core.message.test.mocks.DataAsserts;
-import org.eclipse.osee.framework.core.translation.ITranslator;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
-import org.junit.runners.Parameterized.Parameters;
-
-/**
- * Test Case for {@link BranchCommitRequestTranslator}
- *
- * @author Megumi Telles
- */
-@RunWith(Parameterized.class)
-public class BranchCommitRequestTranslatorTest extends BaseTranslatorTest<BranchCommitRequest> {
-
- public BranchCommitRequestTranslatorTest(BranchCommitRequest data, ITranslator<BranchCommitRequest> translator) {
- super(data, translator);
- }
-
- @Override
- protected void checkEquals(BranchCommitRequest expected, BranchCommitRequest actual) throws OseeCoreException {
- DataAsserts.assertEquals(expected, actual);
- }
-
- @Parameters
- public static Collection<Object[]> data() throws OseeCoreException {
- List<Object[]> data = new ArrayList<Object[]>();
- ITranslator<BranchCommitRequest> translator = new BranchCommitRequestTranslator();
-
- boolean archive = false;
- for (int index = 1; index <= 2; index++) {
- archive ^= archive;
- data.add(new Object[] {new BranchCommitRequest(index * 3, index * 2, index * 4, archive), translator});
- }
- return data;
- }
-}
+/******************************************************************************* + * 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.message.test.translation; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import org.eclipse.osee.framework.core.exception.OseeCoreException; +import org.eclipse.osee.framework.core.message.BranchCommitRequest; +import org.eclipse.osee.framework.core.message.internal.translation.BranchCommitRequestTranslator; +import org.eclipse.osee.framework.core.message.test.mocks.DataAsserts; +import org.eclipse.osee.framework.core.translation.ITranslator; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameters; + +/** + * Test Case for {@link BranchCommitRequestTranslator} + * + * @author Megumi Telles + */ +@RunWith(Parameterized.class) +public class BranchCommitRequestTranslatorTest extends BaseTranslatorTest<BranchCommitRequest> { + + public BranchCommitRequestTranslatorTest(BranchCommitRequest data, ITranslator<BranchCommitRequest> translator) { + super(data, translator); + } + + @Override + protected void checkEquals(BranchCommitRequest expected, BranchCommitRequest actual) throws OseeCoreException { + DataAsserts.assertEquals(expected, actual); + } + + @Parameters + public static Collection<Object[]> data() throws OseeCoreException { + List<Object[]> data = new ArrayList<Object[]>(); + ITranslator<BranchCommitRequest> translator = new BranchCommitRequestTranslator(); + + boolean archive = false; + for (int index = 1; index <= 2; index++) { + archive ^= archive; + data.add(new Object[] {new BranchCommitRequest(index * 3, index * 2, index * 4, archive), translator}); + } + return data; + } +} |