Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2012-08-14 07:43:20 +0000
committerEike Stepper2012-08-14 07:43:20 +0000
commit1c66e50f1d97bcf7f72093668d4173cdeaedfa3e (patch)
treeba43d46fe59c7ef300ac1f4dd28ee3174816d735 /plugins
parenta544a46a4d07b13b69c3bfa1d1cc594f535451b1 (diff)
downloadcdo-1c66e50f1d97bcf7f72093668d4173cdeaedfa3e.tar.gz
cdo-1c66e50f1d97bcf7f72093668d4173cdeaedfa3e.tar.xz
cdo-1c66e50f1d97bcf7f72093668d4173cdeaedfa3e.zip
Speed up Bugzilla_261218_Test
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_251544_Test.java4
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_261218_Test.java7
2 files changed, 5 insertions, 6 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_251544_Test.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_251544_Test.java
index 8b14874473..866ca3e097 100644
--- a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_251544_Test.java
+++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_251544_Test.java
@@ -26,7 +26,7 @@ import org.eclipse.emf.ecore.EObject;
* Resources fetched using CDOViewImpl.getResource(getResourcePath(CDOID)) not added to ResourceSet
* <p>
* See bug 251544
- *
+ *
* @author Simon McDuff
*/
public class Bugzilla_251544_Test extends AbstractCDOTest
@@ -48,7 +48,7 @@ public class Bugzilla_251544_Test extends AbstractCDOTest
orderDetail.setProduct(product);
EList<OrderDetail> list = order1.getOrderDetails();
- //
+
resource.getContents().remove(0); // remove object by index
list.remove(orderDetail);
transaction.commit();
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_261218_Test.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_261218_Test.java
index d1418a9787..59081cd2ed 100644
--- a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_261218_Test.java
+++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_261218_Test.java
@@ -21,7 +21,7 @@ import org.eclipse.emf.ecore.resource.Resource;
/**
* See bug 261218
- *
+ *
* @author Simon McDuff
*/
public class Bugzilla_261218_Test extends AbstractCDOTest
@@ -40,7 +40,7 @@ public class Bugzilla_261218_Test extends AbstractCDOTest
resource.getContents().add(folder);
IOUtil.OUT().println("Adding...");
- for (int i = 0; i < 10000; ++i)
+ for (int i = 0; i < 10; ++i)
{
Category file = getModel1Factory().createCategory();
folder.getCategories().add(file);
@@ -50,12 +50,11 @@ public class Bugzilla_261218_Test extends AbstractCDOTest
transaction.commit();
IOUtil.OUT().println("Removing...");
- for (int i = 9999; i >= 0; --i)
+ for (int i = 9; i >= 0; --i)
{
folder.getCategories().remove(i);
}
- // =>90 seconds
IOUtil.OUT().println("Committing...");
transaction.commit();
}

Back to the top