From 0f798a6f2d3f94fbfcf3ed874dd271ec6a30e70d Mon Sep 17 00:00:00 2001 From: fslevoaca Date: Tue, 5 Dec 2023 11:45:22 +0200 Subject: [PATCH] Deprecate Polling support. Use [Awaitility](https://github.com/awaitility/awaitility) instead --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 55d4e90..ae56051 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ A set of testing utilities for Java by adding some powerful features: - **[Matching](#match)** -- **[Polling](#polling)** +- **[Polling](#polling)** (Deprecated) - **[Resource reader](#resource-reader)** **[Real world examples](#real-world)** @@ -37,7 +37,7 @@ Gradle: compile("io.github.fslev:jtest-utils:${latest.version}") - Match Objects - Match HTTP responses -_... with specific matching conditions, regular expression, data capture and polling support_ +_... with specific matching conditions, regular expression data capture and polling support_ ## 1.1 Match JSONs @@ -214,7 +214,7 @@ The beautiful part while comparing HTTP responses is the fact that depending on In other words, the HTTP response bodies / entities might be matched as [JSONs](#match-jsons), [XMLs](#match-xmls) or [texts](#match-texts). HTTP statuses and reasons are compared as [texts](#match-texts) while HTTP headers as [JSONs](#match-jsons). -## 1.6 Match with Polling support +## 1.6 Match with Polling support (Deprecated) All the matching mechanisms from above support polling. The most used case is when we need to compare HTTP responses from a service which delivers the desired data asynchronously. In this case we need to retry the execution of client request until the actual response is matched. @@ -259,7 +259,7 @@ assertEquals("-263355062.750", capturedData.get("speakValue")); ``` This feature is available for any flavour of object matching. -# 2. Polling +# 2. Polling (Deprecated) Retry an operation until desired result or timeout is reached: ```javascript Integer result = new Polling()