Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorvlorenzo2013-06-19 11:49:43 +0000
committervlorenzo2013-06-19 11:49:43 +0000
commit1b735a89e1c05d9f007a9fc1071dfb560d21a0a5 (patch)
treead712fe1a341b0c11a9a0d0baec2c99fb43f8f54 /tests
parent4f1dd13e33c672a02886fcc9ec372cbcb4561d37 (diff)
downloadorg.eclipse.papyrus-1b735a89e1c05d9f007a9fc1071dfb560d21a0a5.tar.gz
org.eclipse.papyrus-1b735a89e1c05d9f007a9fc1071dfb560d21a0a5.tar.xz
org.eclipse.papyrus-1b735a89e1c05d9f007a9fc1071dfb560d21a0a5.zip
411109: [Table 2] ContentProvider must be refactored, because they unexisting classes and methods from Papyrus RC4 (offical release)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=411109
Diffstat (limited to 'tests')
-rw-r--r--tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/UMLRestrictedContentProviderTest.java10
-rw-r--r--tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/UMLRestrictedContentProviderTestCustomProfile.java8
2 files changed, 9 insertions, 9 deletions
diff --git a/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/UMLRestrictedContentProviderTest.java b/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/UMLRestrictedContentProviderTest.java
index 7175b8ba2ce..af6090d1dab 100644
--- a/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/UMLRestrictedContentProviderTest.java
+++ b/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/UMLRestrictedContentProviderTest.java
@@ -134,7 +134,7 @@ public class UMLRestrictedContentProviderTest {
public void testEmptyTableWithRestriction() {
NattableModelManager modelManager = new NattableModelManager(emptyTable1);
IRestrictedContentProvider columnContentProvider = modelManager.getColumnAxisManager().createPossibleAxisContentProvider(true);
- columnContentProvider.setIgnoreInheritedElements(true);
+ ((org.eclipse.papyrus.infra.nattable.provider.tmp.IRestrictedContentProvider)columnContentProvider).setIgnoreInheritedElements(true);
Object[] elements = columnContentProvider.getElements();
Assert.assertEquals(0, elements.length);
}
@@ -147,7 +147,7 @@ public class UMLRestrictedContentProviderTest {
public void testEmptyTableWithoutRestriction() {
NattableModelManager modelManager = new NattableModelManager(emptyTable1);
IRestrictedContentProvider columnContentProvider = modelManager.getColumnAxisManager().createPossibleAxisContentProvider(false);
- columnContentProvider.setIgnoreInheritedElements(true);
+ ((org.eclipse.papyrus.infra.nattable.provider.tmp.IRestrictedContentProvider)columnContentProvider).setIgnoreInheritedElements(true);
Object[] elements = columnContentProvider.getElements();
Assert.assertEquals(2, elements.length);
List<?> roots = Arrays.asList(elements);
@@ -178,7 +178,7 @@ public class UMLRestrictedContentProviderTest {
public void testNotEmptyTableWithRestriction() {
NattableModelManager modelManager = new NattableModelManager(notEmptyTable1);
IRestrictedContentProvider columnContentProvider = modelManager.getColumnAxisManager().createPossibleAxisContentProvider(true);
- columnContentProvider.setIgnoreInheritedElements(true);
+ ((org.eclipse.papyrus.infra.nattable.provider.tmp.IRestrictedContentProvider)columnContentProvider).setIgnoreInheritedElements(true);
Object[] elements = columnContentProvider.getElements();
Assert.assertEquals(1, elements.length);
Assert.assertEquals(elements[0], UMLPackage.eINSTANCE);
@@ -191,7 +191,7 @@ public class UMLRestrictedContentProviderTest {
public void testNotEmptyTableWithoutProfileWithoutRestriction() {
NattableModelManager modelManager = new NattableModelManager(notEmptyTable1);
IRestrictedContentProvider columnContentProvider = modelManager.getColumnAxisManager().createPossibleAxisContentProvider(false);
- columnContentProvider.setIgnoreInheritedElements(true);
+ ((org.eclipse.papyrus.infra.nattable.provider.tmp.IRestrictedContentProvider)columnContentProvider).setIgnoreInheritedElements(true);
Object[] elements = columnContentProvider.getElements();
Assert.assertEquals(2, elements.length);
List<?> roots = Arrays.asList(elements);
@@ -222,7 +222,7 @@ public class UMLRestrictedContentProviderTest {
public void testNotEmptyTableWithProfileWithRestriction() {
NattableModelManager modelManager = new NattableModelManager(notEmptyTable2);
IRestrictedContentProvider columnContentProvider = modelManager.getColumnAxisManager().createPossibleAxisContentProvider(true);
- columnContentProvider.setIgnoreInheritedElements(true);
+ ((org.eclipse.papyrus.infra.nattable.provider.tmp.IRestrictedContentProvider)columnContentProvider).setIgnoreInheritedElements(true);
Object[] elements = columnContentProvider.getElements();
Assert.assertEquals(2, elements.length);
List<?> roots = Arrays.asList(elements);
diff --git a/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/UMLRestrictedContentProviderTestCustomProfile.java b/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/UMLRestrictedContentProviderTestCustomProfile.java
index 4f8f993d7a8..17d2955805b 100644
--- a/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/UMLRestrictedContentProviderTestCustomProfile.java
+++ b/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/UMLRestrictedContentProviderTestCustomProfile.java
@@ -154,7 +154,7 @@ public class UMLRestrictedContentProviderTestCustomProfile {
public void testWithRestriction() {
NattableModelManager modelManager = new NattableModelManager(table);
IRestrictedContentProvider columnContentProvider = modelManager.getColumnAxisManager().createPossibleAxisContentProvider(true);
- columnContentProvider.setIgnoreInheritedElements(true);
+ ((org.eclipse.papyrus.infra.nattable.provider.tmp.IRestrictedContentProvider)columnContentProvider).setIgnoreInheritedElements(true);
Object[] elements = columnContentProvider.getElements();
Assert.assertEquals(2, elements.length);
List<?> roots = Arrays.asList(elements);
@@ -217,7 +217,7 @@ public class UMLRestrictedContentProviderTestCustomProfile {
public void testWithoutRestriction() {
NattableModelManager modelManager = new NattableModelManager(table);
IRestrictedContentProvider columnContentProvider = modelManager.getColumnAxisManager().createPossibleAxisContentProvider(false);
- columnContentProvider.setIgnoreInheritedElements(true);
+ ((org.eclipse.papyrus.infra.nattable.provider.tmp.IRestrictedContentProvider)columnContentProvider).setIgnoreInheritedElements(true);
Object[] elements = columnContentProvider.getElements();
Assert.assertEquals(2, elements.length);
List<?> roots = Arrays.asList(elements);
@@ -298,7 +298,7 @@ public class UMLRestrictedContentProviderTestCustomProfile {
public void testWithRestrictionWithInheritedProperties() {
NattableModelManager modelManager = new NattableModelManager(table);
IRestrictedContentProvider columnContentProvider = modelManager.getColumnAxisManager().createPossibleAxisContentProvider(true);
- columnContentProvider.setIgnoreInheritedElements(false);
+ ((org.eclipse.papyrus.infra.nattable.provider.tmp.IRestrictedContentProvider)columnContentProvider).setIgnoreInheritedElements(false);
Object[] elements = columnContentProvider.getElements();
Assert.assertEquals(2, elements.length);
List<?> roots = Arrays.asList(elements);
@@ -366,7 +366,7 @@ public class UMLRestrictedContentProviderTestCustomProfile {
public void testWithoutRestrictionWithInheritedProperties() {
NattableModelManager modelManager = new NattableModelManager(table);
IRestrictedContentProvider columnContentProvider = modelManager.getColumnAxisManager().createPossibleAxisContentProvider(false);
- columnContentProvider.setIgnoreInheritedElements(false);
+ ((org.eclipse.papyrus.infra.nattable.provider.tmp.IRestrictedContentProvider)columnContentProvider).setIgnoreInheritedElements(false);
Object[] elements = columnContentProvider.getElements();
Assert.assertEquals(2, elements.length);
List<?> roots = Arrays.asList(elements);

Back to the top