Skip to main content
summaryrefslogblamecommitdiffstats
blob: 35ade18e1743ed8bb445aa990e2869c78a0c79a8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
   
                                                                       







                                                                        
   











                                                        
                                      
                       
   
                                                











                                                                 
/**
 * Copyright (c) 2004 - 2009 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
 *    Eike Stepper - maintenance
 */
package org.eclipse.emf.cdo.tests;

import org.eclipse.emf.cdo.tests.model1.Model1Factory;
import org.eclipse.emf.cdo.tests.model1.Supplier;

import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.impl.ResourceImpl;

import junit.framework.TestCase;

/**
 * @see http://bugs.eclipse.org/201593
 * @author Simon McDuff
 */
public class NonCDOResourceTest extends TestCase
{
  public void testNonCDOResource() throws Exception
  {
    Supplier supplier = Model1Factory.eINSTANCE.createSupplier();

    Resource resource = new ResourceImpl();
    resource.setURI(URI.createFileURI("/res1"));
    resource.getContents().add(supplier);

    assertEquals(resource, supplier.eResource());
  }
}

Back to the top