Skip to main content
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorrschnekenbu2011-02-02 16:07:43 +0000
committerrschnekenbu2011-02-02 16:07:43 +0000
commitfc080390c107ab2583c4b079ef5e0b9b92e8b4bd (patch)
tree88ed4ac5ef45821239514d1af1c9a4a3c3625254 /tests
parentaf6c1218fe1bfc825df62a750f4b6394f0ca22ef (diff)
downloadorg.eclipse.papyrus-fc080390c107ab2583c4b079ef5e0b9b92e8b4bd.tar.gz
org.eclipse.papyrus-fc080390c107ab2583c4b079ef5e0b9b92e8b4bd.tar.xz
org.eclipse.papyrus-fc080390c107ab2583c4b079ef5e0b9b92e8b4bd.zip
Fixed test bug for M5
Diffstat (limited to 'tests')
-rw-r--r--tests/junit/plugins/core/org.eclipse.papyrus.core.tests/test/org/eclipse/papyrus/core/wizard/TestCreateModelWizard.java39
1 files changed, 20 insertions, 19 deletions
diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.core.tests/test/org/eclipse/papyrus/core/wizard/TestCreateModelWizard.java b/tests/junit/plugins/core/org.eclipse.papyrus.core.tests/test/org/eclipse/papyrus/core/wizard/TestCreateModelWizard.java
index b124c2602e5..37340dc8a55 100644
--- a/tests/junit/plugins/core/org.eclipse.papyrus.core.tests/test/org/eclipse/papyrus/core/wizard/TestCreateModelWizard.java
+++ b/tests/junit/plugins/core/org.eclipse.papyrus.core.tests/test/org/eclipse/papyrus/core/wizard/TestCreateModelWizard.java
@@ -13,61 +13,61 @@ public class TestCreateModelWizard extends TestNewModelWizardBase {
@Override
protected IWorkbenchWizard createWizard() {
return new InitModelWizard() {
+
@Override
protected boolean isCreateFromExistingDomainModel() {
return false;
}
-
+
};
}
public void testOrderOfPages() {
- Class[] expectedPages = new Class[]{
- NewModelFilePage.class,
- SelectDiagramCategoryPage.class,
- SelectDiagramKindPage.class,
- };
+ Class[] expectedPages = new Class[]{ NewModelFilePage.class, SelectDiagramCategoryPage.class, SelectDiagramKindPage.class, };
IWorkbenchWizard wizard = initWizardDialog();
testOrderOfPages(wizard, expectedPages);
}
-
+
public void testDiagramFileExtentionLabel() {
- final String expectedExtension = "test.xxx";
+ // final String expectedExtension = "test.xxx";
+ final String expectedExtension = "di";
IWorkbenchWizard wizard = new InitModelWizard() {
+
@Override
protected boolean isCreateFromExistingDomainModel() {
return false;
}
-
+
@Override
protected String getDiagramFileExtension(String categoryId, String defaultExtension) {
return expectedExtension;
}
-
+
};
-
+
initWizardDialog(wizard);
NewModelFilePage page = (NewModelFilePage)wizard.getPages()[0];
assertEquals(expectedExtension, page.getFileExtension());
}
-
-
+
+
public void testDiagramFileExtenstionForProfile() {
final String expectedExtension = "profile.di";
InitModelWizard wizard = new InitModelWizard() {
+
@Override
protected boolean isCreateFromExistingDomainModel() {
return false;
}
-
+
@Override
protected String getDiagramCategoryId() {
return CreateProfileModelCommand.COMMAND_ID;
}
-
+
};
-
+
initWizardDialog(wizard);
String actual = wizard.getDiagramFileExtension();
assertEquals(expectedExtension, actual);
@@ -76,18 +76,19 @@ public class TestCreateModelWizard extends TestNewModelWizardBase {
public void testDiagramFileExtenstionForUML() {
final String expectedExtension = "di";
InitModelWizard wizard = new InitModelWizard() {
+
@Override
protected boolean isCreateFromExistingDomainModel() {
return false;
}
-
+
@Override
protected String getDiagramCategoryId() {
return "uml";
}
-
+
};
-
+
initWizardDialog(wizard);
String actual = wizard.getDiagramFileExtension();
assertEquals(expectedExtension, actual);

Back to the top