Skip to content

Package: CommonValidationTest

CommonValidationTest

nameinstructionbranchcomplexitylinemethod
CommonValidationTest()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getVFeaturePathDomainModelReference(EStructuralFeature, EReference[])
M: 0 C: 14
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 4
100%
M: 0 C: 1
100%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2013 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Edgar Mueller - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.view.validation.test;
15:
16: import java.util.Arrays;
17:
18: import org.eclipse.emf.ecore.EReference;
19: import org.eclipse.emf.ecore.EStructuralFeature;
20: import org.eclipse.emf.ecp.view.spi.model.VFeaturePathDomainModelReference;
21: import org.eclipse.emf.ecp.view.spi.model.VViewFactory;
22:
23: /**
24: * Common functionality for validation tests.
25: *
26: * @author emueller
27: *
28: */
29: public class CommonValidationTest {
30:
31:         protected VFeaturePathDomainModelReference getVFeaturePathDomainModelReference(EStructuralFeature feature,
32:                 EReference... eReferences) {
33:                 final VFeaturePathDomainModelReference result = VViewFactory.eINSTANCE.createFeaturePathDomainModelReference();
34:                 result.setDomainModelEFeature(feature);
35:                 result.getDomainModelEReferencePath().addAll(Arrays.asList(eReferences));
36:                 return result;
37:         }
38: }