Skip to content

Commit adc2ca9

Browse files
Use Entity typing in tests.
1 parent ae22d5b commit adc2ca9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Moose-Blueprint-Models-Tests/CBPojoTest.class.st

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,17 @@ CBPojoTest >> setUp [
9898
constructor := (model newMethodNamed: 'constructor()')
9999
isConstructor: true;
100100
yourself.
101-
getter := (model newMethodNamed: 'getAttribute()') declaredType: (FamixJavaPrimitiveType new name: 'String'); yourself.
101+
getter := (model newMethodNamed: 'getAttribute()')
102+
typing: (model newEntityTyping
103+
declaredType:
104+
(FamixJavaPrimitiveType new name: 'String');
105+
yourself);
106+
yourself.
102107
setter := (model newMethodNamed: 'setAttribute()')
103108
parameters: { (model newParameterNamed: 'anObject') };
104-
declaredType: (FamixJavaPrimitiveType new name: 'void')
109+
typing: (model newEntityTyping
110+
declaredType: (FamixJavaPrimitiveType new name: 'void');
111+
yourself);
105112
yourself.
106113

107114
self defineAccesses.

0 commit comments

Comments
 (0)