blob: 9c109a2276939deff0e3a04e3f2d44a2aa1f09d1 [file] [log] [blame]
/*
* Copyright (c) 2009-2012, 2015 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;
/**
* EObjectValidator.validate_UniqueID broken for CDOObjects
* <p>
* See bug 278900
*
* @author Simon McDuff
*/
public class Bugzilla_278900_Test extends AbstractCDOTest
{
public void testBugzilla_278900() throws Exception
{
CDOSession session = openSession();
CDOTransaction tx = session.openTransaction();
CDOResource res = tx.getOrCreateResource(getResourcePath("/resource1"));
tx.commit();
try
{
res.getEObject("ABBSBD");
fail("Throwable expected");
}
catch (Throwable expected)
{
// SUCCESS
}
}
}