-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
19 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
package com.woilsy.mock.test.entity | ||
|
||
import com.woilsy.mock.annotations.Mock | ||
import com.woilsy.mock.annotations.MockClass | ||
|
||
/** | ||
* Any的场景一般为可能为多个内容中的一个,一般和某个字段的某个值形成键值对。--暂未实现 | ||
*/ | ||
class AnyData( | ||
val type: Int, | ||
@MockClass(Data1::class) | ||
@MockClass(className = "com.woilsy.mock.test.entity.Data1") | ||
val data: Any, | ||
) | ||
|
||
data class Data1( | ||
val age: Int, | ||
@Mock("我是自定义的数据") | ||
val name: String | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,4 @@ | |
|
||
String className() default ""; | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters