Skip to content

Commit eb65e32

Browse files
committed
chore: Update a few places in the logging and error messages that had old names
1 parent 83a8edd commit eb65e32

11 files changed

Lines changed: 23 additions & 23 deletions

File tree

packages/case-connector/src/connectors/grpc/contractDefinition.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export const contractDefinition = (
158158
const runInteractionRequest = request.getRunInteraction();
159159
if (runInteractionRequest == null) {
160160
throw new ConnectorError(
161-
'run example called with something that returned an undefined request',
161+
'runInteraction called with something that returned an undefined request',
162162
);
163163
}
164164
if (definitionId === undefined) {
@@ -189,12 +189,12 @@ export const contractDefinition = (
189189
request.getRunRejectingInteraction();
190190
if (runRejectingInteractionRequest == null) {
191191
throw new ConnectorError(
192-
'run rejecting example called with something that returned an undefined request',
192+
'runRejectingInteraction called with something that returned an undefined request',
193193
);
194194
}
195195
if (definitionId === undefined) {
196196
throw new ConnectorError(
197-
'runInteraction was called before begin definition',
197+
'runRejectingInteraction was called before begin definition',
198198
);
199199
}
200200

packages/case-connector/src/connectors/grpc/contractVerification.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export const contractVerification = (
203203
const runVerificationRequest = request.getRunVerification();
204204
if (runVerificationRequest == null) {
205205
throw new ConnectorError(
206-
'run rejecting example called with something that returned an undefined request',
206+
'runVerification called with something that returned an undefined request',
207207
);
208208
}
209209
if (verificationId === undefined) {

packages/case-core/src/core/ReadingCaseContract.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class ReadingCaseContract extends BaseCaseContract {
7777
this.currentContract.examples.forEach((example, index) => {
7878
if (example.result !== 'VERIFIED') {
7979
throw new CaseCoreError(
80-
`Attempting to verify an example which was '${example.result}'. This should never happen in normal operation, and might be the result of a corrupted ContractCase file, a file that was not written by ContractCase, or a bug.`,
80+
`Attempting to verify an interaction which was '${example.result}'. This should never happen in normal operation, and might be the result of a corrupted ContractCase file, a file that was not written by ContractCase, or a bug.`,
8181
);
8282
}
8383

@@ -124,7 +124,7 @@ export class ReadingCaseContract extends BaseCaseContract {
124124
})
125125
.finally(() => {
126126
this.initialContext.logger.maintainerDebug(
127-
`Example[${index}] completed: ${names.mockName}`,
127+
`Interaction[${index}] completed: ${names.mockName}`,
128128
);
129129
exampleFinished();
130130
}),
@@ -173,12 +173,12 @@ export class ReadingCaseContract extends BaseCaseContract {
173173
);
174174
if (example.result === 'FAILED') {
175175
currentContext.logger.maintainerDebug(
176-
`Example was a failure, marking verification failed (was '${this.status}')`,
176+
`Interaction was a failure, marking verification failed (was '${this.status}')`,
177177
);
178178
this.status = 'FAILED';
179179
} else {
180180
currentContext.logger.maintainerDebug(
181-
`Example was a success, no change to current status of '${this.status}'`,
181+
`Interaction was a success, no change to current status of '${this.status}'`,
182182
);
183183
}
184184
return example;

packages/case-definition-dsl/api-extractor/case-definition-dsl.api.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4844,7 +4844,7 @@
48444844
{
48454845
"kind": "PropertySignature",
48464846
"canonicalReference": "@contract-case/case-definition-dsl!mocks.base.ContractCaseCoreSetup#read:member",
4847-
"docComment": "/**\n * Defines how the ContractCase core will behave when reading (ie, verifying) a Example of this type.\n */\n",
4847+
"docComment": "/**\n * Defines how the ContractCase core will behave when reading (ie, verifying) a interaction of this type.\n */\n",
48484848
"excerptTokens": [
48494849
{
48504850
"kind": "Content",
@@ -4872,7 +4872,7 @@
48724872
{
48734873
"kind": "PropertySignature",
48744874
"canonicalReference": "@contract-case/case-definition-dsl!mocks.base.ContractCaseCoreSetup#write:member",
4875-
"docComment": "/**\n * Defines how the ContractCase core will behave when writing (ie, defining) an Example of this type.\n */\n",
4875+
"docComment": "/**\n * Defines how the ContractCase core will behave when writing (ie, defining) an interaction of this type.\n */\n",
48764876
"excerptTokens": [
48774877
{
48784878
"kind": "Content",

packages/case-definition-dsl/docs-json/java.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
},
184184
"variadic": false,
185185
"docs": {
186-
"summary": "Defines how the ContractCase core will behave when reading (ie, verifying) a Example of this type."
186+
"summary": "Defines how the ContractCase core will behave when reading (ie, verifying) a interaction of this type."
187187
}
188188
},
189189
{
@@ -205,7 +205,7 @@
205205
},
206206
"variadic": false,
207207
"docs": {
208-
"summary": "Defines how the ContractCase core will behave when writing (ie, defining) an Example of this type."
208+
"summary": "Defines how the ContractCase core will behave when writing (ie, defining) an interaction of this type."
209209
}
210210
}
211211
],
@@ -2913,7 +2913,7 @@
29132913
]
29142914
},
29152915
"docs": {
2916-
"summary": "Defines how the ContractCase core will behave when reading (ie, verifying) a Example of this type."
2916+
"summary": "Defines how the ContractCase core will behave when reading (ie, verifying) a interaction of this type."
29172917
},
29182918
"usage": "public ContractCaseCoreBehaviour getRead();"
29192919
},
@@ -2935,7 +2935,7 @@
29352935
]
29362936
},
29372937
"docs": {
2938-
"summary": "Defines how the ContractCase core will behave when writing (ie, defining) an Example of this type."
2938+
"summary": "Defines how the ContractCase core will behave when writing (ie, defining) an interaction of this type."
29392939
},
29402940
"usage": "public ContractCaseCoreBehaviour getWrite();"
29412941
}

packages/case-definition-dsl/docs-json/typescript.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2749,7 +2749,7 @@
27492749
]
27502750
},
27512751
"docs": {
2752-
"summary": "Defines how the ContractCase core will behave when reading (ie, verifying) a Example of this type."
2752+
"summary": "Defines how the ContractCase core will behave when reading (ie, verifying) a interaction of this type."
27532753
},
27542754
"usage": "public readonly read: ContractCaseCoreBehaviour;"
27552755
},
@@ -2771,7 +2771,7 @@
27712771
]
27722772
},
27732773
"docs": {
2774-
"summary": "Defines how the ContractCase core will behave when writing (ie, defining) an Example of this type."
2774+
"summary": "Defines how the ContractCase core will behave when writing (ie, defining) an interaction of this type."
27752775
},
27762776
"usage": "public readonly write: ContractCaseCoreBehaviour;"
27772777
}

packages/case-definition-dsl/docs/case-definition-dsl.mocks.base.contractcasecoresetup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Description
4343

4444
</td><td>
4545

46-
Defines how the ContractCase core will behave when reading (ie, verifying) a Example of this type.
46+
Defines how the ContractCase core will behave when reading (ie, verifying) a interaction of this type.
4747

4848
</td></tr>
4949
<tr><td>
@@ -60,7 +60,7 @@ Defines how the ContractCase core will behave when reading (ie, verifying) a Exa
6060

6161
</td><td>
6262

63-
Defines how the ContractCase core will behave when writing (ie, defining) an Example of this type.
63+
Defines how the ContractCase core will behave when writing (ie, defining) an interaction of this type.
6464

6565
</td></tr>
6666
</tbody></table>

packages/case-definition-dsl/docs/case-definition-dsl.mocks.base.contractcasecoresetup.read.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## mocks.base.ContractCaseCoreSetup.read property
66

7-
Defines how the ContractCase core will behave when reading (ie, verifying) a Example of this type.
7+
Defines how the ContractCase core will behave when reading (ie, verifying) a interaction of this type.
88

99
**Signature:**
1010

packages/case-definition-dsl/docs/case-definition-dsl.mocks.base.contractcasecoresetup.write.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## mocks.base.ContractCaseCoreSetup.write property
66

7-
Defines how the ContractCase core will behave when writing (ie, defining) an Example of this type.
7+
Defines how the ContractCase core will behave when writing (ie, defining) an interaction of this type.
88

99
**Signature:**
1010

packages/case-definition-dsl/src/interactions/base/AnyInteractionDescriptor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ export interface ContractCaseCoreBehaviour {
5555
*/
5656
export interface ContractCaseCoreSetup {
5757
/**
58-
* Defines how the ContractCase core will behave when writing (ie, defining) an Example of this type.
58+
* Defines how the ContractCase core will behave when writing (ie, defining) an interaction of this type.
5959
*/
6060
readonly write: ContractCaseCoreBehaviour;
6161
/**
62-
* Defines how the ContractCase core will behave when reading (ie, verifying) a Example of this type.
62+
* Defines how the ContractCase core will behave when reading (ie, verifying) a interaction of this type.
6363
*/
6464
readonly read: ContractCaseCoreBehaviour;
6565
}

0 commit comments

Comments
 (0)