Skip to content

Package: PlayerValidatorOK

PlayerValidatorOK

nameinstructionbranchcomplexitylinemethod
PlayerValidatorOK()
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%
getValidatedEClassifier()
M: 0 C: 11
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 3
100%
M: 0 C: 1
100%
validate(EClass, EObject, DiagnosticChain, Map)
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2014 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: * Johannes Faltermeier - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.validation.diagnostician.test;
15:
16: import java.util.LinkedHashSet;
17: import java.util.Map;
18: import java.util.Set;
19:
20: import org.eclipse.emf.common.util.DiagnosticChain;
21: import org.eclipse.emf.ecore.EClass;
22: import org.eclipse.emf.ecore.EClassifier;
23: import org.eclipse.emf.ecore.EObject;
24: import org.eclipse.emf.ecp.diagnostician.ECPValidator;
25: import org.eclipse.emf.emfstore.bowling.BowlingPackage;
26:
27: /**
28: * @author jfaltermeier
29: *
30: */
31: public class PlayerValidatorOK extends ECPValidator {
32:
33:         /**
34:          * {@inheritDoc}
35:          *
36:          * @see org.eclipse.emf.ecp.diagnostician.ECPValidator#getValidatedEClassifier()
37:          */
38:         @Override
39:         public Set<EClassifier> getValidatedEClassifier() {
40:                 final Set<EClassifier> classifiers = new LinkedHashSet<EClassifier>();
41:                 classifiers.add(BowlingPackage.eINSTANCE.getPlayer());
42:                 return classifiers;
43:         }
44:
45:         /**
46:          * {@inheritDoc}
47:          *
48:          * @see org.eclipse.emf.ecp.diagnostician.ECPValidator#validate(org.eclipse.emf.ecore.EClass,
49:          * org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
50:          */
51:         @Override
52:         public boolean validate(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object, Object> context) {
53:                 return true;
54:         }
55:
56: }