Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2007-05-18 19:30:51 -0400
committeratikhomirov2007-05-18 19:30:51 -0400
commit1d60d6ae03f7da77a867893084b3076207b30a7b (patch)
treecbb56010f6821bbd79b828678cd490e51d2fb3ab
parentf8426f23085dff4cca130259c1558ba7f5e94a47 (diff)
downloadorg.eclipse.gmf-tooling-1d60d6ae03f7da77a867893084b3076207b30a7b.tar.gz
org.eclipse.gmf-tooling-1d60d6ae03f7da77a867893084b3076207b30a7b.tar.xz
org.eclipse.gmf-tooling-1d60d6ae03f7da77a867893084b3076207b30a7b.zip
better name
-rw-r--r--tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/migration/GenericMigrationTest.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/migration/GenericMigrationTest.java b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/migration/GenericMigrationTest.java
index 279d112fc..50e2e4453 100644
--- a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/migration/GenericMigrationTest.java
+++ b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/migration/GenericMigrationTest.java
@@ -222,7 +222,7 @@ public class GenericMigrationTest extends TestCase {
}
};
- Resource migrated = migrateModel(factory, uri).getLoadedResource();
+ Resource migrated = createLoadHelper(factory, uri).getLoadedResource();
assertNotNull(migrated);
assertTrue(migrated.getErrors().isEmpty());
assertFalse(migrated.getWarnings().isEmpty());
@@ -316,7 +316,7 @@ public class GenericMigrationTest extends TestCase {
};
// try to load mm
- Resource migrated = migrateModel(factory, uri).getLoadedResource();
+ Resource migrated = createLoadHelper(factory, uri).getLoadedResource();
assertNotNull(migrated);
assertTrue(migrated.getErrors().isEmpty());
assertFalse(migrated.getWarnings().isEmpty());
@@ -341,7 +341,7 @@ public class GenericMigrationTest extends TestCase {
}
}
- private static ModelLoadHelper migrateModel(final Resource.Factory factory, URI modelResourceURI) {
+ private static ModelLoadHelper createLoadHelper(final Resource.Factory factory, URI modelResourceURI) {
if(modelResourceURI == null) {
throw new IllegalArgumentException("null resource uri"); //$NON-NLS-1$
}
@@ -352,7 +352,6 @@ public class GenericMigrationTest extends TestCase {
}
});
- ModelLoadHelper loadHelper = new ModelLoadHelper(rset, modelResourceURI);
- return loadHelper;
+ return new ModelLoadHelper(rset, modelResourceURI);
}
} \ No newline at end of file

Back to the top