diff options
Diffstat (limited to 'jpa_diagram_editor/tests/org.eclipse.jpt.jpadiagrameditor.ui.tests/src/org/eclipse/jpt/jpadiagrameditor/ui/tests/internal/modelintegration/util/ModelIntegrationUtilTest.java')
-rw-r--r-- | jpa_diagram_editor/tests/org.eclipse.jpt.jpadiagrameditor.ui.tests/src/org/eclipse/jpt/jpadiagrameditor/ui/tests/internal/modelintegration/util/ModelIntegrationUtilTest.java | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/jpa_diagram_editor/tests/org.eclipse.jpt.jpadiagrameditor.ui.tests/src/org/eclipse/jpt/jpadiagrameditor/ui/tests/internal/modelintegration/util/ModelIntegrationUtilTest.java b/jpa_diagram_editor/tests/org.eclipse.jpt.jpadiagrameditor.ui.tests/src/org/eclipse/jpt/jpadiagrameditor/ui/tests/internal/modelintegration/util/ModelIntegrationUtilTest.java deleted file mode 100644 index 692bbd5519..0000000000 --- a/jpa_diagram_editor/tests/org.eclipse.jpt.jpadiagrameditor.ui.tests/src/org/eclipse/jpt/jpadiagrameditor/ui/tests/internal/modelintegration/util/ModelIntegrationUtilTest.java +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************* - * <copyright> - * - * Copyright (c) 2005, 2010 SAP AG. - * 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: - * Stefan Dimov - initial API, implementation and documentation - * - * </copyright> - * - *******************************************************************************/ -package org.eclipse.jpt.jpadiagrameditor.ui.tests.internal.modelintegration.util; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; - -import org.easymock.EasyMock; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.Path; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.util.BasicInternalEList; -import org.eclipse.jpt.jpadiagrameditor.ui.internal.modelintegration.util.ModelIntegrationUtil; -import org.junit.Test; - - -@SuppressWarnings("unchecked") -public class ModelIntegrationUtilTest { - - @Test - public void getMOINNoResourceFolderTest() { - IProject project = EasyMock.createMock(IProject.class); - //EList rr = new BasicInternalEList(String.class); - EasyMock.expect(project.getProjectRelativePath()).andStubReturn(new Path("src")); - EasyMock.replay(project); - IPath p = ModelIntegrationUtil.getEMFResourceFolderPath(project); - assertNotNull(p); - assertEquals(2, p.segmentCount()); - assertEquals(p.segment(0), "src"); - } - - @SuppressWarnings("rawtypes") - @Test - public void getMOINSrcResourceFolderTest() { - IProject project = EasyMock.createMock(IProject.class); - EList rr = new BasicInternalEList(String.class); - rr.add("src"); - EasyMock.expect(project.getProjectRelativePath()).andStubReturn(new Path("src")); - EasyMock.replay(project); - IPath p = ModelIntegrationUtil.getEMFResourceFolderPath(project); - assertNotNull(p); - assertEquals(2, p.segmentCount()); - assertEquals(p.segment(0), "src"); - } -} |