blob: 2b4c0dc8958fb48e2b55b6b981e9f394c0e017d6 [file] [log] [blame]
/*****************************************************************************
* Copyright (c) 2013, 2017 CEA LIST.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* CEA LIST - Initial API and implementation
*****************************************************************************/
package org.eclipse.papyrus.cdo.internal.core.expressions.tests;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import org.eclipse.emf.cdo.eresource.CDOResource;
import org.eclipse.emf.ecore.EcorePackage;
import org.eclipse.papyrus.cdo.core.tests.AbstractPapyrusCDOTest;
import org.eclipse.papyrus.cdo.internal.core.expressions.EObjectPropertyTester;
import org.junit.Test;
/**
* This is the EObjectPropertyTesterTest type. Enjoy.
*/
public class EObjectPropertyTesterTest extends AbstractPapyrusCDOTest {
private final EObjectPropertyTester fixture = new EObjectPropertyTester();
@Test
public void testTest_isCDOObject() {
CDOResource res = createTransaction().createResource(getResourcePath("foo.uml"));
assertThat(fixture.test(res, "isCDOObject", null, true), is(true));
assertThat(fixture.test(EcorePackage.Literals.ECLASS, "isCDOObject", null, true), is(false));
}
}