Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2020-05-29 06:16:45 +0000
committerEike Stepper2020-05-29 06:16:45 +0000
commitb312ebf9f3c0dec37e246d77c80e6a7807490ede (patch)
treed7241269228c751339d819ce87c1fda547d90a16
parent20b9ee09f1668c316dc04e9d0b490a81b5fe94f0 (diff)
downloadcdo-b312ebf9f3c0dec37e246d77c80e6a7807490ede.tar.gz
cdo-b312ebf9f3c0dec37e246d77c80e6a7807490ede.tar.xz
cdo-b312ebf9f3c0dec37e246d77c80e6a7807490ede.zip
[Releng] Remove Bugzilla_340709_Test (see bug 340709)
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_340709_Test.java95
1 files changed, 0 insertions, 95 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_340709_Test.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_340709_Test.java
deleted file mode 100644
index a7ba0bf48c..0000000000
--- a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_340709_Test.java
+++ /dev/null
@@ -1,95 +0,0 @@
-/*
- * Copyright (c) 2012, 2016, 2018, 2019 Eike Stepper (Loehne, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Martin Fluegge - initial API and implementation
- */
-package org.eclipse.emf.cdo.tests.bugzilla;
-
-import org.eclipse.emf.cdo.eresource.CDOResource;
-import org.eclipse.emf.cdo.session.CDOSession;
-import org.eclipse.emf.cdo.tests.AbstractCDOTest;
-import org.eclipse.emf.cdo.tests.model1.Category;
-import org.eclipse.emf.cdo.transaction.CDOTransaction;
-import org.eclipse.emf.cdo.view.CDOViewInvalidationEvent;
-
-import org.eclipse.net4j.util.event.IEvent;
-import org.eclipse.net4j.util.event.IListener;
-
-import java.util.concurrent.CountDownLatch;
-
-/**
- * @author Martin Fluegge
- */
-public class Bugzilla_340709_Test extends AbstractCDOTest
-{
- private transient CountDownLatch latch = new CountDownLatch(1);
-
- public void test() throws Exception
- {
- CDOSession session = openSession();
-
- {
- CDOTransaction transaction = session.openTransaction();
- addTransactionListener(transaction);
-
- CDOResource resource = transaction.createResource(getResourcePath("test"));
-
- Category category = getModel1Factory().createCategory();
- category.setName("name1");
-
- resource.getContents().add(category);
- transaction.commit();
- }
-
- {
- CDOTransaction transaction = session.openTransaction();
- CDOResource resource = transaction.getResource(getResourcePath("test"));
-
- Category category = (Category)resource.getContents().get(0);
- category.setName("name2");
-
- transaction.commit();
- }
- }
-
- private void addTransactionListener(final CDOTransaction transaction)
- {
- transaction.addListener(new IListener()
- {
- @Override
- public void notifyEvent(IEvent event)
- {
- System.err.println(event);
- if (event instanceof CDOViewInvalidationEvent)
- {
- handleNotify(transaction);
-
- await(latch);
- }
- }
-
- private void handleNotify(final CDOTransaction transaction)
- {
- Thread handleNotifyThread = new Thread(new Runnable()
- {
- @Override
- public void run()
- {
- msg("DEAD");
- transaction.getRootResource();
-
- msg("LOCK");
- latch.countDown();
- }
- });
-
- handleNotifyThread.start();
- }
- });
- }
-}

Back to the top