Skip to content

Commit dc1c0eb

Browse files
committed
[U] Awaitility: 校对
1 parent 7b3339b commit dc1c0eb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

java/test/awaitility.zh.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ private Callable<Integer> userRepositorySize() {
106106
publish(new AddUserMessage("User 1"), new AddUserMessage("User 2"), new AddUserMessage("User 3"));
107107
```
108108

109-
We now reuse the `userRepositorySize` "condition supplier" and simply update the Hamcrest matcher:
110109
我们现在重用 `userRepositorySize`,只需更新 Hamcrest 匹配器:
111110

112111
```java
@@ -141,7 +140,7 @@ await().until( fieldIn(object).ofType(int.class).andAnnotatedWith(MyAnnotation.c
141140

142141
## Atomic, Adders and Accumulators
143142

144-
If you're using [Atomic](http://download.oracle.com/javase/1,5.0/docs/api/java/util/concurrent/atomic/package-summary.html) structures Awaitility provides a simple way to wait until they match a specific value:
143+
如果您正在使用[Atomic](http://download.oracle.com/javase/1,5.0/docs/api/java/util/concurrent/atomic/package-summary.html)数据结构,Awaitility 提供了一种简单的方法来等待它们匹配特定值:
145144

146145
```java
147146
AtomicInteger atomic = new AtomicInteger(0);

0 commit comments

Comments
 (0)