Skip to content

Commit f39191c

Browse files
committed
update readme
1 parent 8c8edda commit f39191c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ Of course, in an extremely high concurrent scenario, the parallel call interface
2525

2626
- **Unlimited nesting**
2727

28-
Dependencies support deep nesting. The follow example has only one layer nesting relationship.
28+
Dependencies support deep nesting. The following example has only one layer of nesting relationship.
2929

3030
- **Exception handling**
3131

3232
Currently supports two processing methods: ignore or stop 
3333

3434
Ignore means that the provider method ignores the exception and returns a null value when it is executed. Stop means that once a provider method throws an exception, it will be thrown up step by step, and stop subsequent processing.
3535

36-
Exception handling configuration item supports consumer level or global level, and comsumer level is priority to global level
36+
Exception handling configuration item supports consumer level or global level, and consumer level is priority to global level
3737

3838
- **Query Cache**
3939

40-
In one query life cycle of calling the Facade's query method, the result called by DataProvider method may be reused. As long as the method signature and the parameters are consistent, the default method is idempotent, and the cached query result will be used directly.** However, this Not an absolute. Considering the multi-threading feature, sometimes the cache is not used.
40+
In one query life cycle of calling the Facade's query method, the result called by `@DataProvider` method may be reused. As long as the method signature and the parameters are consistent, the default method is idempotent, and the cached query result will be used directly.** However, this Not an absolute. Considering the multi-threading feature, sometimes the cache is not used.
4141

4242
- **Timeout Control**
4343

@@ -83,7 +83,7 @@ Developing a user summary data interface that includes the user's basic informat
8383

8484
### 1. Define an "atomic" service to provide user data
8585

86-
Use `@DataProvider` to define the interface a data provider.
86+
Use `@DataProvider` to define the interface as a data provider.
8787

8888
Use `@InvokeParameter` to specify the input parameters to pass.
8989

@@ -128,7 +128,7 @@ User user = DataFacade.get(
128128
}
129129
});
130130
Assert.notNull(user,"User must not be NULL");
131-
Assert.notNull(user.getPosts(),"User posts must not be NULL");
131+
Assert.notNull(user.getPosts(),"User's posts must not be NULL");
132132
```
133133

134134
#### Method 2: Define and implement an aggregation layer
@@ -156,7 +156,7 @@ User user = DataFacade.get(/*data id*/ "userWithPosts",
156156
                            Collections.singletonMap("userId",1L),
157157
                            User.class);
158158
Assert.notNull(user,"User must not be NULL");
159-
Assert.notNull(user.getPosts(),"User posts must not be NULL");
159+
Assert.notNull(user.getPosts(),"User's posts must not be NULL");
160160
```
161161

162162
**Invoke result**

README_CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ User user = DataFacade.get(
126126
}
127127
});
128128
Assert.notNull(user,"User must not be NULL");
129-
Assert.notNull(user.getPosts(),"User posts must not be NULL");
129+
Assert.notNull(user.getPosts(),"User's posts must not be NULL");
130130
```
131131

132132
#### 方式二: 定义聚合层查询
@@ -154,7 +154,7 @@ User user = DataFacade.get(/*data id*/ "userWithPosts",
154154
Collections.singletonMap("userId",1L),
155155
User.class);
156156
Assert.notNull(user,"User must not be NULL");
157-
Assert.notNull(user.getPosts(),"User posts must not be NULL");
157+
Assert.notNull(user.getPosts(),"User's posts must not be NULL");
158158
```
159159

160160
**运行结果**

0 commit comments

Comments
 (0)