doc: fix test case name

This commit is contained in:
金戟 2022-12-06 11:59:57 +08:00
parent d9f65189f7
commit e9ce61d83c
3 changed files with 3 additions and 3 deletions

View File

@ -109,7 +109,7 @@ internal class DemoMockTest {
}
@Test
fun should_get_test_case_name() {
fun should_set_mock_context() {
MOCK_CONTEXT["case"] = "special_case"
// synchronous
assertEquals("mock_special", demoMock.callerOne())

View File

@ -159,7 +159,7 @@ private Data mockDemo() {
}
```
For complete code examples, see the `should_get_source_method_name()` and `should_get_test_case_name()` test cases in the `java-demo` and `kotlin-demo` sample projects.
For complete code examples, see the `should_get_source_method_name()` and `should_set_mock_context()` test cases in the `java-demo` and `kotlin-demo` sample projects.
### 3. Verify the sequence and parameters of the mock method being invoked

View File

@ -159,7 +159,7 @@ private Data mockDemo() {
}
```
完整代码示例见`java-demo`和`kotlin-demo`示例项目中的`should_get_source_method_name()`和`should_get_test_case_name()`测试用例。
完整代码示例见`java-demo`和`kotlin-demo`示例项目中的`should_get_source_method_name()`和`should_set_mock_context()`测试用例。
### 3. 验证Mock方法被调用的顺序和参数