public class MockClient extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected MockCache |
mockCache |
protected RandomGeneratorRegistry |
randomGeneratorRegistry |
| 构造器和说明 |
|---|
MockClient() |
protected RandomGeneratorRegistry randomGeneratorRegistry
protected MockCache mockCache
public void clearCache()
public List<String> mock(@NonNull String template, int quantity)
template - 模板quantity - 数量public String mock(InputStream inputStream, Charset charset) throws IOException
inputStream - 输入流charset - 编码IOException - IO异常public List<String> mock(InputStream inputStream, Charset charset, int quantity) throws IOException
inputStream - 输入流charset - 编码quantity - 数量IOException - IO异常Copyright © 2018. All rights reserved.