@@ -145,7 +145,7 @@ void shouldBuildAlignmentCorrectObjective() {
145
145
146
146
Alignment returnAlignment = ObjectiveAlignment .Builder .builder ().withAlignedObjective (objectiveAlignedObjective )
147
147
.withTargetObjective (objective1 ).build ();
148
- Alignment alignment = alignmentBusinessService .buildAlignmentModel (objectiveAlignedObjective );
148
+ Alignment alignment = alignmentBusinessService .buildAlignmentModel (objectiveAlignedObjective , 0 );
149
149
150
150
assertEquals (returnAlignment , alignment );
151
151
assertTrue (alignment instanceof ObjectiveAlignment );
@@ -157,7 +157,7 @@ void shouldBuildAlignmentCorrectKeyResult() {
157
157
158
158
Alignment returnAlignment = KeyResultAlignment .Builder .builder ().withAlignedObjective (keyResultAlignedObjective )
159
159
.withTargetKeyResult (metricKeyResult ).build ();
160
- Alignment alignment = alignmentBusinessService .buildAlignmentModel (keyResultAlignedObjective );
160
+ Alignment alignment = alignmentBusinessService .buildAlignmentModel (keyResultAlignedObjective , 0 );
161
161
162
162
assertEquals (returnAlignment , alignment );
163
163
assertTrue (alignment instanceof KeyResultAlignment );
@@ -166,7 +166,7 @@ void shouldBuildAlignmentCorrectKeyResult() {
166
166
@ Test
167
167
void shouldThrowErrorWhenAlignedEntityIdIsIncorrect () {
168
168
OkrResponseStatusException exception = assertThrows (OkrResponseStatusException .class ,
169
- () -> alignmentBusinessService .buildAlignmentModel (wrongAlignedObjective ));
169
+ () -> alignmentBusinessService .buildAlignmentModel (wrongAlignedObjective , 0 ));
170
170
171
171
List <ErrorDto > expectedErrors = List .of (new ErrorDto ("ATTRIBUTE_NOT_SET" , List .of ("alignedEntityId" , "Hello" )));
172
172
0 commit comments