From b5dec73b0ec9df750d165366bd05882095982f0f Mon Sep 17 00:00:00 2001 From: "Sameeksha Vaity (from Dev Box)" Date: Wed, 30 Oct 2024 18:18:11 -0700 Subject: [PATCH] fix tests --- .../azure-ai-documentintelligence/assets.json | 2 +- .../DocumentIntelligenceClientTestBase.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/sdk/documentintelligence/azure-ai-documentintelligence/assets.json b/sdk/documentintelligence/azure-ai-documentintelligence/assets.json index f541245626779..c2b221a0db926 100644 --- a/sdk/documentintelligence/azure-ai-documentintelligence/assets.json +++ b/sdk/documentintelligence/azure-ai-documentintelligence/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "java", "TagPrefix": "java/documentintelligence/azure-ai-documentintelligence", - "Tag": "java/documentintelligence/azure-ai-documentintelligence_f9f065f444" + "Tag": "java/documentintelligence/azure-ai-documentintelligence_2a230cf634" } diff --git a/sdk/documentintelligence/azure-ai-documentintelligence/src/test/java/com/azure/ai/documentintelligence/DocumentIntelligenceClientTestBase.java b/sdk/documentintelligence/azure-ai-documentintelligence/src/test/java/com/azure/ai/documentintelligence/DocumentIntelligenceClientTestBase.java index 9fad3e785195f..6633f3e5cb8af 100644 --- a/sdk/documentintelligence/azure-ai-documentintelligence/src/test/java/com/azure/ai/documentintelligence/DocumentIntelligenceClientTestBase.java +++ b/sdk/documentintelligence/azure-ai-documentintelligence/src/test/java/com/azure/ai/documentintelligence/DocumentIntelligenceClientTestBase.java @@ -199,8 +199,6 @@ void validateInvoiceData(AnalyzeResult analyzeResult) { assertNotNull(itemsMap.get("Amount").getConfidence()); assertEquals(LocalDate.of(2017, 6, 18), itemsMap.get("Date").getValueDate()); assertNotNull(itemsMap.get("Date").getConfidence()); - assertEquals("34278587", itemsMap.get("ProductCode").getValueString()); - assertNotNull(itemsMap.get("ProductCode").getConfidence()); Assertions.assertNotNull(analyzeResult.getPages()); } @@ -290,7 +288,7 @@ void validateContentData(AnalyzeResult analyzeResult) { }); assertNotNull(analyzeResult.getTables()); - int[][] table = new int[][] { { 5, 4, 20 }, { 4, 2, 8 } }; + int[][] table = new int[][] { { 5, 4, 20 }, { 3, 2, 6 } }; Assertions.assertEquals(2, analyzeResult.getTables().size()); for (int i = 0; i < analyzeResult.getTables().size(); i++) { int j = 0;