File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
src/FAST-Java-SmaCC-Importer-Tests Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ Class {
2+ #name : ' FamixJavaAttributeGetFASTTest' ,
3+ #superclass : ' TestCase' ,
4+ #instVars : [
5+ ' fast'
6+ ],
7+ #category : ' FAST-Java-SmaCC-Importer-Tests' ,
8+ #package : ' FAST-Java-SmaCC-Importer-Tests'
9+ }
10+
11+ { #category : ' running' }
12+ FamixJavaAttributeGetFASTTest >> setUp [
13+
14+ | attribute |
15+ attribute := FamixJavaAttribute new .
16+ attribute sourceAnchor: (FamixJavaSourceTextAnchor new source: ' THIS_ATTRIBUTE = "a value"' ).
17+
18+ fast := attribute getFAST.
19+
20+ ]
21+
22+ { #category : ' tests' }
23+ FamixJavaAttributeGetFASTTest >> testASTLHSIsAVariable [
24+
25+ self assert: fast variable class equals: FASTJavaVariableExpression
26+ ]
27+
28+ { #category : ' tests' }
29+ FamixJavaAttributeGetFASTTest >> testASTLHSNameIsAVariable [
30+
31+ self assert: fast variable name equals: ' THIS_ATTRIBUTE'
32+ ]
33+
34+ { #category : ' tests' }
35+ FamixJavaAttributeGetFASTTest >> testASTRHSIsString [
36+
37+ self assert: fast expression class equals: FASTJavaStringLiteral
38+ ]
39+
40+ { #category : ' tests' }
41+ FamixJavaAttributeGetFASTTest >> testASTRHSValueIsA_value [
42+
43+ self assert: fast expression primitiveValue equals: ' a value'
44+ ]
45+
46+ { #category : ' tests' }
47+ FamixJavaAttributeGetFASTTest >> testFASTRootIsExpression [
48+
49+ self assert: fast class equals: FASTJavaAssignmentExpression
50+ ]
You can’t perform that action at this time.
0 commit comments