aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Ladenberger2012-03-28 06:10:13 (EDT)
committerMichael Jastram2012-04-05 06:44:46 (EDT)
commitbbaca455c7e0b4a73bd1de1878ff24ca89f00525 (patch)
treec2b3117df874d5981f039a459226aa1d59894b28
parent3bde70f45c61fe649c56ad0ec1ba44b4f217e151 (diff)
downloadorg.eclipse.rmf-bbaca455c7e0b4a73bd1de1878ff24ca89f00525.zip
org.eclipse.rmf-bbaca455c7e0b4a73bd1de1878ff24ca89f00525.tar.gz
org.eclipse.rmf-bbaca455c7e0b4a73bd1de1878ff24ca89f00525.tar.bz2
added testGetLeftHeaderColumn to ConfigUtilTest.java
-rw-r--r--org.eclipse.rmf.pror.reqif10.tests/tests/org/eclipse/rmf/pror/reqif10/util/ConfigUtilTest.java18
1 files changed, 16 insertions, 2 deletions
diff --git a/org.eclipse.rmf.pror.reqif10.tests/tests/org/eclipse/rmf/pror/reqif10/util/ConfigUtilTest.java b/org.eclipse.rmf.pror.reqif10.tests/tests/org/eclipse/rmf/pror/reqif10/util/ConfigUtilTest.java
index f781c11..80ee14c 100644
--- a/org.eclipse.rmf.pror.reqif10.tests/tests/org/eclipse/rmf/pror/reqif10/util/ConfigUtilTest.java
+++ b/org.eclipse.rmf.pror.reqif10.tests/tests/org/eclipse/rmf/pror/reqif10/util/ConfigUtilTest.java
@@ -10,21 +10,25 @@
******************************************************************************/
package org.eclipse.rmf.pror.reqif10.util;
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertSame;
import java.net.URISyntaxException;
import java.util.List;
+import org.eclipse.rmf.pror.reqif10.configuration.Column;
import org.eclipse.rmf.pror.reqif10.configuration.ConfigFactory;
import org.eclipse.rmf.pror.reqif10.configuration.ConfigPackage;
import org.eclipse.rmf.pror.reqif10.configuration.ProrGeneralConfiguration;
import org.eclipse.rmf.pror.reqif10.configuration.ProrToolExtension;
import org.eclipse.rmf.pror.reqif10.testframework.AbstractItemProviderTest;
-import org.eclipse.rmf.pror.reqif10.util.ConfigurationUtil;
import org.eclipse.rmf.reqif10.ReqIf;
import org.eclipse.rmf.reqif10.ReqIfToolExtension;
import org.eclipse.rmf.reqif10.Reqif10Factory;
import org.eclipse.rmf.reqif10.Reqif10Package;
+import org.eclipse.rmf.reqif10.Specification;
import org.junit.Test;
public class ConfigUtilTest extends AbstractItemProviderTest {
@@ -79,4 +83,14 @@ public class ConfigUtilTest extends AbstractItemProviderTest {
List<String> labels = ConfigurationUtil.getDefaultLabels(reqif);
assertEquals(0, labels.size());
}
+
+ @Test
+ public void testGetLeftHeaderColumn() throws URISyntaxException {
+ ReqIf reqif = getTestReqif("simple.reqif");
+ Specification specification = reqif.getCoreContent()
+ .getSpecifications().get(0);
+ Column leftHeaderColumn = ConfigurationUtil.getLeftHeaderColumn(specification, editingDomain);
+ assertNotNull(leftHeaderColumn);
+ }
+
}