@@ -54,9 +54,9 @@ void setup() {
54
54
void cleanUpDiamondWorkflow () {
55
55
var workflow = new WorkflowBuilder <TestCustomResource >()
56
56
.addDependentResource (dd1 )
57
- .addDependentResourceAndConfigure (dr1 ).toDependOn (dd1 )
58
- .addDependentResourceAndConfigure (dd2 ).toDependOn (dd1 )
59
- .addDependentResourceAndConfigure (dd3 ).toDependOn (dr1 , dd2 )
57
+ .addDependentResourceAndConfigure (dr1 ).dependsOn (dd1 )
58
+ .addDependentResourceAndConfigure (dd2 ).dependsOn (dd1 )
59
+ .addDependentResourceAndConfigure (dd3 ).dependsOn (dr1 , dd2 )
60
60
.build ();
61
61
62
62
var res = workflow .cleanup (new TestCustomResource (), mockContext );
@@ -73,9 +73,9 @@ void cleanUpDiamondWorkflow() {
73
73
void dontDeleteIfDependentErrored () {
74
74
var workflow = new WorkflowBuilder <TestCustomResource >()
75
75
.addDependentResource (dd1 )
76
- .addDependentResourceAndConfigure (dd2 ).toDependOn (dd1 )
77
- .addDependentResourceAndConfigure (dd3 ).toDependOn (dd2 )
78
- .addDependentResourceAndConfigure (errorDD ).toDependOn (dd2 )
76
+ .addDependentResourceAndConfigure (dd2 ).dependsOn (dd1 )
77
+ .addDependentResourceAndConfigure (dd3 ).dependsOn (dd2 )
78
+ .addDependentResourceAndConfigure (errorDD ).dependsOn (dd2 )
79
79
.withThrowExceptionFurther (false )
80
80
.build ();
81
81
@@ -95,7 +95,7 @@ void dontDeleteIfDependentErrored() {
95
95
void cleanupConditionTrivialCase () {
96
96
var workflow = new WorkflowBuilder <TestCustomResource >()
97
97
.addDependentResource (dd1 )
98
- .addDependentResourceAndConfigure (dd2 ).toDependOn (dd1 )
98
+ .addDependentResourceAndConfigure (dd2 ).dependsOn (dd1 )
99
99
.withDeletePostcondition (notMetCondition )
100
100
.build ();
101
101
@@ -111,7 +111,7 @@ void cleanupConditionTrivialCase() {
111
111
void cleanupConditionMet () {
112
112
var workflow = new WorkflowBuilder <TestCustomResource >()
113
113
.addDependentResource (dd1 )
114
- .addDependentResourceAndConfigure (dd2 ).toDependOn (dd1 ).withDeletePostcondition (metCondition )
114
+ .addDependentResourceAndConfigure (dd2 ).dependsOn (dd1 ).withDeletePostcondition (metCondition )
115
115
.build ();
116
116
117
117
var res = workflow .cleanup (new TestCustomResource (), mockContext );
@@ -127,10 +127,10 @@ void cleanupConditionMet() {
127
127
void cleanupConditionDiamondWorkflow () {
128
128
var workflow = new WorkflowBuilder <TestCustomResource >()
129
129
.addDependentResource (dd1 )
130
- .addDependentResourceAndConfigure (dd2 ).toDependOn (dd1 )
131
- .addDependentResourceAndConfigure (dd3 ).toDependOn (dd1 )
130
+ .addDependentResourceAndConfigure (dd2 ).dependsOn (dd1 )
131
+ .addDependentResourceAndConfigure (dd3 ).dependsOn (dd1 )
132
132
.withDeletePostcondition (notMetCondition )
133
- .addDependentResourceAndConfigure (dd4 ).toDependOn (dd2 , dd3 )
133
+ .addDependentResourceAndConfigure (dd4 ).dependsOn (dd2 , dd3 )
134
134
.build ();
135
135
136
136
var res = workflow .cleanup (new TestCustomResource (), mockContext );
@@ -164,10 +164,10 @@ void dontDeleteIfGarbageCollected() {
164
164
void ifDependentActiveDependentNormallyDeleted () {
165
165
var workflow = new WorkflowBuilder <TestCustomResource >()
166
166
.addDependentResource (dd1 )
167
- .addDependentResourceAndConfigure (dd2 ).toDependOn (dd1 )
168
- .addDependentResourceAndConfigure (dd3 ).toDependOn (dd1 )
167
+ .addDependentResourceAndConfigure (dd2 ).dependsOn (dd1 )
168
+ .addDependentResourceAndConfigure (dd3 ).dependsOn (dd1 )
169
169
.withActivationCondition (metCondition )
170
- .addDependentResourceAndConfigure (dd4 ).toDependOn (dd2 , dd3 )
170
+ .addDependentResourceAndConfigure (dd4 ).dependsOn (dd2 , dd3 )
171
171
.build ();
172
172
173
173
var res = workflow .cleanup (new TestCustomResource (), mockContext );
@@ -184,11 +184,11 @@ void ifDependentActiveDependentNormallyDeleted() {
184
184
void ifDependentActiveDeletePostConditionIsChecked () {
185
185
var workflow = new WorkflowBuilder <TestCustomResource >()
186
186
.addDependentResource (dd1 )
187
- .addDependentResourceAndConfigure (dd2 ).toDependOn (dd1 )
188
- .addDependentResourceAndConfigure (dd3 ).toDependOn (dd1 )
187
+ .addDependentResourceAndConfigure (dd2 ).dependsOn (dd1 )
188
+ .addDependentResourceAndConfigure (dd3 ).dependsOn (dd1 )
189
189
.withDeletePostcondition (notMetCondition )
190
190
.withActivationCondition (metCondition )
191
- .addDependentResourceAndConfigure (dd4 ).toDependOn (dd2 , dd3 )
191
+ .addDependentResourceAndConfigure (dd4 ).dependsOn (dd2 , dd3 )
192
192
.build ();
193
193
194
194
var res = workflow .cleanup (new TestCustomResource (), mockContext );
@@ -208,10 +208,10 @@ void ifDependentActiveDeletePostConditionIsChecked() {
208
208
void ifDependentInactiveDeleteIsNotCalled () {
209
209
var workflow = new WorkflowBuilder <TestCustomResource >()
210
210
.addDependentResource (dd1 )
211
- .addDependentResourceAndConfigure (dd2 ).toDependOn (dd1 )
212
- .addDependentResourceAndConfigure (dd3 ).toDependOn (dd1 )
211
+ .addDependentResourceAndConfigure (dd2 ).dependsOn (dd1 )
212
+ .addDependentResourceAndConfigure (dd3 ).dependsOn (dd1 )
213
213
.withActivationCondition (notMetCondition )
214
- .addDependentResourceAndConfigure (dd4 ).toDependOn (dd2 , dd3 )
214
+ .addDependentResourceAndConfigure (dd4 ).dependsOn (dd2 , dd3 )
215
215
.build ();
216
216
217
217
var res = workflow .cleanup (new TestCustomResource (), mockContext );
@@ -227,11 +227,11 @@ void ifDependentInactiveDeleteIsNotCalled() {
227
227
void ifDependentInactiveDeletePostConditionNotChecked () {
228
228
var workflow = new WorkflowBuilder <TestCustomResource >()
229
229
.addDependentResource (dd1 )
230
- .addDependentResourceAndConfigure (dd2 ).toDependOn (dd1 )
231
- .addDependentResourceAndConfigure (dd3 ).toDependOn (dd1 )
230
+ .addDependentResourceAndConfigure (dd2 ).dependsOn (dd1 )
231
+ .addDependentResourceAndConfigure (dd3 ).dependsOn (dd1 )
232
232
.withDeletePostcondition (notMetCondition )
233
233
.withActivationCondition (notMetCondition )
234
- .addDependentResourceAndConfigure (dd4 ).toDependOn (dd2 , dd3 )
234
+ .addDependentResourceAndConfigure (dd4 ).dependsOn (dd2 , dd3 )
235
235
.build ();
236
236
237
237
var res = workflow .cleanup (new TestCustomResource (), mockContext );
0 commit comments