diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_272861_Test.java')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_272861_Test.java | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_272861_Test.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_272861_Test.java index a34cab811e..7d8927b1b8 100644 --- a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_272861_Test.java +++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_272861_Test.java @@ -1,40 +1,40 @@ -/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, 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:
- * Simon McDuff - 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.transaction.CDOTransaction;
-
-/**
- * Bug 272861
- *
- * @author Simon McDuff
- */
-public class Bugzilla_272861_Test extends AbstractCDOTest
-{
- public void test_Bugzilla_271861_Case1() throws Exception
- {
- CDOSession session = openSession();
-
- CDOTransaction trans = session.openTransaction();
- CDOResource res = trans.createResource(getResourcePath("/test/RESOURCE"));
- trans.commit();
-
- res.delete(null);
- res = trans.createResource(getResourcePath("/test/RESOURCE"));
- trans.commit();
-
- trans.close();
- session.close();
- }
-}
+/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, 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: + * Simon McDuff - 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.transaction.CDOTransaction; + +/** + * Bug 272861 + * + * @author Simon McDuff + */ +public class Bugzilla_272861_Test extends AbstractCDOTest +{ + public void test_Bugzilla_271861_Case1() throws Exception + { + CDOSession session = openSession(); + + CDOTransaction trans = session.openTransaction(); + CDOResource res = trans.createResource(getResourcePath("/test/RESOURCE")); + trans.commit(); + + res.delete(null); + res = trans.createResource(getResourcePath("/test/RESOURCE")); + trans.commit(); + + trans.close(); + session.close(); + } +} |