Skip to content

Commit ecb328a

Browse files
author
JW Wesson
committed
replacing more 'sovren'
1 parent 54e5ca6 commit ecb328a

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

src/main/java/com/textkernel/tx/TxClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public Response intercept(Interceptor.Chain chain) throws IOException {
159159
okhttp3.Request.Builder builder = original.newBuilder();
160160
builder.header("Sovren-AccountId", accountId);
161161
builder.header("Sovren-ServiceKey", serviceKey);
162-
builder.header("User-Agent", "sovren-java-" + _sdkVersion);
162+
builder.header("User-Agent", "tx-java-" + _sdkVersion);
163163

164164
if (trackingTagsHeaderValue != null && !trackingTagsHeaderValue.isEmpty()){
165165
builder.header("Sovren-TrackingTag", trackingTagsHeaderValue);
@@ -175,7 +175,7 @@ public Response intercept(Interceptor.Chain chain) throws IOException {
175175
@SuppressWarnings("deprecation")
176176
private RequestBody createJsonBody(Object body) {
177177
// Use OkHttp v3 signature to ensure binary compatibility between v3 and v4
178-
// https://github.com/sovren/sovren-java/issues/36
178+
// https://github.com/textkernel/tx-java/issues/36
179179
return RequestBody.create(JSON, TxJsonSerializer.serialize(body));
180180
}
181181

@@ -1255,7 +1255,7 @@ public GeocodeAndIndexJobResponse geocodeAndIndex(
12551255
}
12561256

12571257
/**
1258-
* Access methods for generating Matching UI sessions. For example: {@code sovClient.UI(options).search(...)}
1258+
* Access methods for generating Matching UI sessions. For example: {@code txClient.UI(options).search(...)}
12591259
* @param uiOptions
12601260
* Options/settings for the Matching UI.
12611261
* <br>NOTE: if you do not provide a {@link UIOptions#Username} (in {@link MatchUISettings#UIOptions}),

src/main/java/com/textkernel/tx/models/api/parsing/ProfessionsSettings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class ProfessionsSettings {
1616
/**
1717
* When true, the most recent 3 job titles will be normalized. This includes a proprietary value from our profession taxonomy, plus ONET and ISCO mappings. <a href="https://www.textkernel.com/professions-data-enrichment-api/">Read more</a> about the benefits of using a professions taxonomy.
1818
* <p>
19-
* When enabling professions normalization, <a href="https://www.sovren.com/technical-specs/latest/rest-api/overview/#transaction-cost">additional charges apply</a>.
19+
* When enabling professions normalization, <a href="https://developer.textkernel.com/Sovren/v10/overview/#transaction-cost">additional charges apply</a>.
2020
* <p>
2121
* The following languages are supported: English, Chinese (Simplified), Dutch, French, German, Italian, Polish, Portuguese, and Spanish. For documents in other languages, no normalized values will be returned.
2222
* <p>

src/main/java/com/textkernel/tx/models/api/parsing/SkillsSettings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class SkillsSettings {
1313
* <ul>
1414
* <li>Raw skills will be normalized. These will be output under {@link ResumeV2Skills#Normalized} or {@link JobV2Skills#Normalized}.
1515
* <li>An enhanced candidate summary is generated, leveraging the taxonomy structure to relate skills with profession groups.</li>
16-
* <li>When {@link #TaxonomyVersion} is set to (or defaults to) {@code V2}, <a href="https://www.sovren.com/technical-specs/latest/rest-api/overview/#transaction-cost">additional charges apply</a></li>
16+
* <li>When {@link #TaxonomyVersion} is set to (or defaults to) {@code V2}, <a href="https://developer.textkernel.com/Sovren/v10/overview/#transaction-cost">additional charges apply</a></li>
1717
* </ul>
1818
* <p>
1919
* <b>This setting has no effect when {@link #TaxonomyVersion} is set to (or defaults to) {@code V1}.</b>

src/test/java/com/textkernel/tx/integration/IndexTests.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ public void testIndexLifecycle(IndexType indexType) {
9393
delayForIndexSync();
9494

9595
// create index already exists
96-
TxException sovrenException = assertThrows(TxException.class, () -> {
96+
TxException txException = assertThrows(TxException.class, () -> {
9797
Client.createIndex(indexType, indexName);
9898
});
9999

100-
assertEquals(TxErrorCodes.DuplicateAsset, sovrenException.TxErrorCode);
100+
assertEquals(TxErrorCodes.DuplicateAsset, txException.TxErrorCode);
101101

102102
// verify index created
103103
assertTrue(doesIndexExist(indexName));
@@ -113,10 +113,10 @@ public void testIndexLifecycle(IndexType indexType) {
113113
assertFalse(doesIndexExist(indexName));
114114

115115
// try to delete an index that doesn't exist
116-
sovrenException = assertThrows(TxException.class, () -> {
116+
txException = assertThrows(TxException.class, () -> {
117117
Client.deleteIndex(indexName);
118118
});
119-
assertEquals(TxErrorCodes.DataNotFound, sovrenException.TxErrorCode);
119+
assertEquals(TxErrorCodes.DataNotFound, txException.TxErrorCode);
120120
} catch (TxException e) {
121121
} finally {
122122
// clean up assets in case the test failed someone before the delete calls were executed
@@ -130,14 +130,14 @@ public void testResumeLifeCycle() throws TxException {
130130
final String documentId = "1";
131131
try {
132132
// verify can't retrieve a document that doesn't exist
133-
TxException sovrenException = assertThrows(TxException.class, () -> {
133+
TxException txException = assertThrows(TxException.class, () -> {
134134
Client.getResume(resumeIndexId, documentId);
135135
});
136136

137137
assertEquals(TxErrorCodes.DataNotFound, TxErrorCodes.DataNotFound);
138138

139139
// verify can't add document to an index that doesn't exist
140-
sovrenException = assertThrows(TxException.class, () -> {
140+
txException = assertThrows(TxException.class, () -> {
141141
Client.indexDocument(TestParsedResume, resumeIndexId, documentId, null);
142142
});
143143
assertEquals(TxErrorCodes.DataNotFound, TxErrorCodes.DataNotFound);
@@ -147,7 +147,7 @@ public void testResumeLifeCycle() throws TxException {
147147
delayForIndexSync();
148148

149149
// verify document still doesn't exist
150-
sovrenException = assertThrows(TxException.class, () -> {
150+
txException = assertThrows(TxException.class, () -> {
151151
Client.getResume(resumeIndexId, documentId);
152152
});
153153
assertEquals(TxErrorCodes.DataNotFound, TxErrorCodes.DataNotFound);
@@ -204,20 +204,20 @@ public void testResumeLifeCycle() throws TxException {
204204
delayForIndexSync();
205205

206206
// verify can't retrieve a document that doesn't exist
207-
sovrenException = assertThrows(TxException.class, () -> {
207+
txException = assertThrows(TxException.class, () -> {
208208
Client.getResume(resumeIndexId, documentId);
209209
});
210-
assertEquals(TxErrorCodes.DataNotFound, sovrenException.TxErrorCode);
210+
assertEquals(TxErrorCodes.DataNotFound, txException.TxErrorCode);
211211

212-
sovrenException = assertThrows(TxException.class, () -> {
212+
txException = assertThrows(TxException.class, () -> {
213213
Client.deleteDocument(resumeIndexId, documentId);
214214
});
215-
assertEquals(TxErrorCodes.DataNotFound, sovrenException.TxErrorCode);
215+
assertEquals(TxErrorCodes.DataNotFound, txException.TxErrorCode);
216216

217217
Client.deleteIndex(resumeIndexId);
218218
delayForIndexSync();
219219

220-
sovrenException = assertThrows(TxException.class, () -> {
220+
txException = assertThrows(TxException.class, () -> {
221221
Client.deleteDocument(resumeIndexId, documentId);
222222
});
223223
assertEquals(TxErrorCodes.DataNotFound, TxErrorCodes.DataNotFound);

0 commit comments

Comments
 (0)