Skip to content

Commit 53405f7

Browse files
committed
Merge remote-tracking branch 'origin/newRegressionTests' into newRegressionTests
2 parents f7519a6 + fe0ce23 commit 53405f7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test-complete/src/test/java/com/marklogic/javaclient/TestPOJOMissingIdGetSetMethod.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,11 @@ public void validateMissingArtifactGetter(SmallArtifactMissingGetter artifact) {
212212
/*
213213
* This method is used when there is a need to validate SmallArtifactMissingSetter.
214214
*/
215-
public void validateMissingArtifactSetter(SmallArtifactMissingSetter artifact) {
215+
public void validateMissingArtifactSetter(SmallArtifactMissingSetter artifact, String name) {
216216
assertNotNull("Artifact object should never be Null", artifact);
217217
assertNotNull("Id should never be Null", artifact.id);
218218
assertEquals("Id of the object is ", -99, artifact.getId());
219-
assertEquals("Name of the object is ", "SmallArtifact",
219+
assertEquals("Name of the object is ", name,
220220
artifact.getName());
221221
assertEquals("Inventory of the object is ", 1000,
222222
artifact.getInventory());
@@ -250,7 +250,7 @@ public void testPOJOReadMissingSetter() throws Exception {
250250
String docId[] = { "com.marklogic.javaclient.TestPOJOMissingIdGetSetMethod$SmallArtifactMissingSetter/SmallArtifactMissingSetter.json" };
251251
String json1 = new String(
252252
"{\"com.marklogic.javaclient.TestPOJOMissingIdGetSetMethod$SmallArtifactMissingSetter\":"
253-
+ "{\"name\": \"SmallArtifact\",\"id\": -99, \"inventory\": 1000}}");
253+
+ "{\"name\": \"SmallArtifactMissingSetter\",\"id\": -99, \"inventory\": 1000}}");
254254
JSONDocumentManager docMgr = client.newJSONDocumentManager();
255255
docMgr.setMetadataCategories(Metadata.ALL);
256256
DocumentWriteSet writeset = docMgr.newWriteSet();
@@ -275,10 +275,10 @@ public void testPOJOReadMissingSetter() throws Exception {
275275

276276
PojoRepository<SmallArtifactMissingSetter, String> pojoReposSmallArtifact = client
277277
.newPojoRepository(SmallArtifactMissingSetter.class, String.class);
278-
String artifactName = new String("SmallArtifact");
278+
String artifactName = new String("SmallArtifactMissingSetter");
279279

280280
SmallArtifactMissingSetter artifact1 = pojoReposSmallArtifact.read(artifactName);
281-
validateMissingArtifactSetter(artifact1);
281+
validateMissingArtifactSetter(artifact1, artifactName);
282282
}
283283

284284
/*
@@ -372,7 +372,7 @@ public void testPOJOWriteReadMissingSetter() throws Exception {
372372

373373
PojoRepository<SmallArtifactMissingSetter, String> pojoReposSmallArtifact = client
374374
.newPojoRepository(SmallArtifactMissingSetter.class, String.class);
375-
String artifactName = new String("SmallArtifact");
375+
String artifactName = new String("SmallArtifactMissingSetter");
376376

377377
SmallArtifactMissingSetter art = new SmallArtifactMissingSetter();
378378
art.setId(-99);
@@ -383,7 +383,7 @@ public void testPOJOWriteReadMissingSetter() throws Exception {
383383
pojoReposSmallArtifact.write(art,"com.marklogic.javaclient.TestPOJOMissingIdGetSetMethod$SmallArtifactMissingSetter/SmallArtifactMissingSetter.json");
384384

385385
SmallArtifactMissingSetter artifact1 = pojoReposSmallArtifact.read(artifactName);
386-
validateMissingArtifactSetter(artifact1);
386+
validateMissingArtifactSetter(artifact1, artifactName);
387387
}
388388

389389
/*

0 commit comments

Comments
 (0)