blob: e91c950e9776fe9fe06ff17fdbada7f540cdc828 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
/*****************************************************************************
* Copyright (c) 2014 CEA LIST.
*
*
* 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:
* Benoit Maggi (CEA LIST) benoit.maggi@cea.fr - Initial API and implementation
* Ansgar Radermacher (CEA) ansgar.radermacher@cea.fr - Extension to validation test suite
*
*****************************************************************************/
package org.eclipse.papyrus.uml.validation.tests;
import org.eclipse.papyrus.uml.validation.tests.rules.TestOCLConstraintOnInstanceSpec;
import org.eclipse.papyrus.uml.validation.tests.rules.TestOCLValidationRuleFromFile;
import org.eclipse.papyrus.uml.validation.tests.rules.TestStereotypeValidation;
import org.eclipse.papyrus.uml.validation.tests.rules.TestUMLValidationRules;
import org.eclipse.papyrus.uml.validation.tests.rules.TestValidationRulesInPluginXML;
import org.eclipse.papyrus.uml.validation.tests.rules.TestValidationRulesInProfile;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
/**
* Test suite for validation rules. See suite classes below
*/
@RunWith(Suite.class)
@SuiteClasses({
/**
* Model with OCL constraints on class, verified in instance specification
* Model with OCL constraints on redefined attribute of a class.
*/
TestOCLConstraintOnInstanceSpec.class,
/**
* Verify that custom OCL file contributes to validation, see bug 408215* Sample test for cut in model explorer
*/
TestOCLValidationRuleFromFile.class,
/**
* Model with OCL and Java constraints in plugin.xml (EMFv)
*/
TestValidationRulesInPluginXML.class,
/**
* Model with OCL constraints embedded in profile
*/
TestValidationRulesInProfile.class,
/**
* Model with UML warning (identifiers of same name in package),
* Model/profile. Model applies a stereotype, but does not set the value of a required stereotype attribute
* Model with non-integer multiplicity on attribute (0..MAX)
*/
TestUMLValidationRules.class,
/**
* Model/profile. Model applies a stereotype, but does not set the value of a required stereotype attribute.
*/
TestStereotypeValidation.class
})
public class AllTests {
// JUnit for test suite
}
|