Index

A B C D E F G H I J L M N O P Q R S T U V W Z 
All Classes and Interfaces|All Packages|Serialized Form

A

accessToken() - Static method in class cloud.opencode.base.test.data.RandomData
Generates random access token.
accuracy() - Method in record class cloud.opencode.base.test.concurrent.ThreadSafetyChecker.CheckResult
 
actual - Variable in class cloud.opencode.base.test.assertion.OpenAssertions.ObjectAssertion
 
actual() - Method in record class cloud.opencode.base.test.assertion.AssertionResult.Failure
Returns the value of the actual record component.
actual() - Method in record class cloud.opencode.base.test.concurrent.ThreadSafetyChecker.CheckResult
Returns the value of the actual record component.
actualNull(Object) - Static method in exception class cloud.opencode.base.test.exception.EqualsAssertionException
Creates exception for null actual value.
add(TestReport.TestResult) - Method in class cloud.opencode.base.test.report.TestReport
Add test result 添加测试结果
add(String, Runnable) - Method in class cloud.opencode.base.test.benchmark.BenchmarkRunner
Adds benchmark.
add(String, Callable) - Method in class cloud.opencode.base.test.benchmark.BenchmarkRunner
Adds benchmark with return value (result ignored).
addFailed(String, Duration, Throwable) - Method in class cloud.opencode.base.test.report.TestReport
Add failed test 添加失败的测试
addPassed(String, Duration) - Method in class cloud.opencode.base.test.report.TestReport
Add passed test 添加通过的测试
address() - Static method in class cloud.opencode.base.test.data.Faker
Generates random full address.
addSkipped(String, String) - Method in class cloud.opencode.base.test.report.TestReport
Add skipped test 添加跳过的测试
age(int, int) - Static method in class cloud.opencode.base.test.OpenData
Generates random age in range 生成范围内随机年龄
allKeysMatch(Predicate) - Method in class cloud.opencode.base.test.assertion.MapAssert
Asserts that all keys match the given predicate.
allMatch(Predicate) - Method in class cloud.opencode.base.test.assertion.CollectionAssert
Asserts that collection contains only elements matching predicate.
allPassed() - Method in class cloud.opencode.base.test.report.TestReport
Check if all tests passed 检查是否所有测试都通过
allSucceeded() - Method in record class cloud.opencode.base.test.concurrent.ConcurrentTester.ConcurrentResult
 
allValuesMatch(Predicate) - Method in class cloud.opencode.base.test.assertion.MapAssert
Asserts that all values match the given predicate.
alpha(int) - Static method in class cloud.opencode.base.test.data.DataGenerator
Generates random alphabetic string.
alphanumericCode(int) - Static method in class cloud.opencode.base.test.data.RandomData
Generates random alphanumeric code.
any(String) - Static method in interface cloud.opencode.base.test.http.RequestMatcher
 
anyMatch(Predicate) - Method in class cloud.opencode.base.test.assertion.CollectionAssert
Asserts that collection contains any element matching predicate.
apiKey() - Static method in class cloud.opencode.base.test.data.RandomData
Generates random API key.
args() - Method in record class cloud.opencode.base.test.mock.Invocation
Returns a defensive copy of the arguments array.
args() - Method in record class cloud.opencode.base.test.mock.Spy.Invocation
Returns the value of the args record component.
args() - Method in record class cloud.opencode.base.test.OpenMock.Invocation
Returns the value of the args record component.
argsMatch(Object...) - Method in record class cloud.opencode.base.test.mock.Invocation
Checks if arguments match.
assertAll() - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts all collected assertions, throwing if any failed 断言所有收集的断言,如果有任何失败则抛出
assertAll(String) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts all collected assertions with a custom header message 断言所有收集的断言(带自定义头消息)
assertBetween(T, T, T) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that actual is between min and max (inclusive) 断言实际值在最小值和最大值之间(包含)
assertBlank(String) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that string is blank 断言字符串为空白
assertCompletesWithin(Duration, Runnable) - Static method in class cloud.opencode.base.test.assertion.TimingAssert
Asserts that the given runnable completes within the specified duration.
assertCompletesWithin(Duration, Runnable) - Static method in class cloud.opencode.base.test.OpenTest
Assert that a task completes within the given duration.
assertCompletesWithin(Duration, Callable) - Static method in class cloud.opencode.base.test.assertion.TimingAssert
Asserts that the given callable completes within the specified duration and returns its result.
assertCompletesWithin(Duration, Callable) - Static method in class cloud.opencode.base.test.OpenTest
Assert that a callable completes within the given duration and return its result.
assertContains(Object, Collection) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that collection contains element 断言集合包含元素
assertContains(String, String) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that string contains substring 断言字符串包含子串
assertContainsKey(Object, Map) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that map contains key 断言映射包含键
assertDoesNotThrow(OpenAssert.Executable) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that executable does not throw 断言可执行对象不抛出异常
assertEmpty(Collection) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that collection is empty 断言集合为空
assertEmpty(Map) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that map is empty 断言映射为空
assertEndsWith(String, String) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that string ends with suffix 断言字符串以后缀结束
assertEquals(double, double, double) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that doubles are equal within delta 断言双精度数在误差范围内相等
assertEquals(Object, Object) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that objects are equal 断言对象相等
assertEquals(Object, Object, String) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that objects are equal with message 断言对象相等(带消息)
assertEqualsOrThrow(Object, Object) - Static method in exception class cloud.opencode.base.test.exception.EqualsAssertionException
Assert equality and throw if not equal.
assertEqualsOrThrow(Object, Object, String) - Static method in exception class cloud.opencode.base.test.exception.EqualsAssertionException
Assert equality and throw if not equal, with message.
assertFalse(boolean) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that condition is false 断言条件为假
assertFalse(boolean, String) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that condition is false with message 断言条件为假(带消息)
assertGreaterThan(T, T) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that actual is greater than expected 断言实际值大于期望值
ASSERTION_EQUALS - Enum constant in enum class cloud.opencode.base.test.exception.TestErrorCode
 
ASSERTION_FAILED - Enum constant in enum class cloud.opencode.base.test.exception.TestErrorCode
 
ASSERTION_NULL - Enum constant in enum class cloud.opencode.base.test.exception.TestErrorCode
 
ASSERTION_TIMEOUT - Enum constant in enum class cloud.opencode.base.test.exception.TestErrorCode
 
AssertionException - Exception Class in cloud.opencode.base.test.exception
Assertion Exception - Exception thrown when an assertion fails 断言异常 - 断言失败时抛出的异常
AssertionException(TestErrorCode) - Constructor for exception class cloud.opencode.base.test.exception.AssertionException
Creates assertion exception with error code.
AssertionException(TestErrorCode, String) - Constructor for exception class cloud.opencode.base.test.exception.AssertionException
Creates assertion exception with error code and detail.
AssertionException(String) - Constructor for exception class cloud.opencode.base.test.exception.AssertionException
Creates assertion exception with message.
AssertionException(String, Throwable) - Constructor for exception class cloud.opencode.base.test.exception.AssertionException
Creates assertion exception with message and cause.
AssertionResult - Interface in cloud.opencode.base.test.assertion
Assertion Result - Sealed interface for assertion results 断言结果 - 断言结果的密封接口
AssertionResult.Failure - Record Class in cloud.opencode.base.test.assertion
Failure assertion result.
AssertionResult.Success - Class in cloud.opencode.base.test.assertion
Success assertion result.
assertLessThan(T, T) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that actual is less than expected 断言实际值小于期望值
assertMap(Map) - Static method in class cloud.opencode.base.test.OpenTest
Create a fluent assertion for a Map.
assertMatches(String, String) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that string matches regex 断言字符串匹配正则表达式
assertMatchesSnapshot(String, String) - Static method in class cloud.opencode.base.test.assertion.SnapshotAssert
Asserts that the actual JSON matches the stored snapshot.
assertMatchesSnapshot(Path, String, String) - Static method in class cloud.opencode.base.test.assertion.SnapshotAssert
Asserts that the actual JSON matches the stored snapshot in the specified directory.
assertNotBlank(String) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that string is not blank 断言字符串不为空白
assertNotEmpty(Collection) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that collection is not empty 断言集合不为空
assertNotEquals(Object, Object) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that objects are not equal 断言对象不相等
assertNotNull(Object) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that object is not null 断言对象不为null
assertNotNull(Object, String) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that object is not null with message 断言对象不为null(带消息)
assertNotSame(Object, Object) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that objects are not the same instance 断言对象不是相同实例
assertNull(Object) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that object is null 断言对象为null
assertNull(Object, String) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that object is null with message 断言对象为null(带消息)
assertRecord(T) - Static method in class cloud.opencode.base.test.OpenTest
Create a fluent assertion for a Record instance.
assertSame(Object, Object) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that objects are the same instance 断言对象是相同实例
assertSize(int, Collection) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts collection size 断言集合大小
assertStartsWith(String, String) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that string starts with prefix 断言字符串以前缀开始
assertThat(double) - Static method in class cloud.opencode.base.test.assertion.NumberAssert
Creates assertion for double.
assertThat(int) - Static method in class cloud.opencode.base.test.assertion.NumberAssert
Creates assertion for int.
assertThat(long) - Static method in class cloud.opencode.base.test.assertion.NumberAssert
Creates assertion for long.
assertThat(Boolean) - Static method in class cloud.opencode.base.test.assertion.OpenAssertions
 
assertThat(Boolean) - Static method in class cloud.opencode.base.test.OpenTest
 
assertThat(Number) - Static method in class cloud.opencode.base.test.assertion.OpenAssertions
 
assertThat(Number) - Static method in class cloud.opencode.base.test.OpenTest
 
assertThat(String) - Static method in class cloud.opencode.base.test.assertion.JsonAssert
Creates assertion for JSON string.
assertThat(String) - Static method in class cloud.opencode.base.test.assertion.OpenAssertions
 
assertThat(String) - Static method in class cloud.opencode.base.test.assertion.StringAssert
Creates assertion for string.
assertThat(String) - Static method in class cloud.opencode.base.test.OpenTest
 
assertThat(Throwable) - Static method in class cloud.opencode.base.test.assertion.ExceptionAssert
Creates assertion for exception.
assertThat(Collection) - Static method in class cloud.opencode.base.test.assertion.CollectionAssert
Creates assertion for collection.
assertThat(Collection) - Static method in class cloud.opencode.base.test.assertion.OpenAssertions
 
assertThat(Collection) - Static method in class cloud.opencode.base.test.OpenTest
 
assertThat(Map) - Static method in class cloud.opencode.base.test.assertion.MapAssert
Creates assertion for a map.
assertThat(Map) - Static method in class cloud.opencode.base.test.assertion.OpenAssertions
 
assertThat(Map) - Static method in class cloud.opencode.base.test.OpenTest
 
assertThat(R) - Static method in class cloud.opencode.base.test.assertion.RecordAssert
Creates assertion for a record instance.
assertThat(T) - Static method in class cloud.opencode.base.test.assertion.NumberAssert
Creates assertion for number.
assertThat(T) - Static method in class cloud.opencode.base.test.assertion.OpenAssertions
 
assertThat(T) - Static method in class cloud.opencode.base.test.OpenTest
 
assertThatCode(ExceptionAssert.ThrowableRunner) - Static method in class cloud.opencode.base.test.assertion.ExceptionAssert
Creates assertion for code that should not throw.
assertThatCode(Runnable) - Static method in class cloud.opencode.base.test.assertion.OpenAssertions
 
assertThatCode(Runnable) - Static method in class cloud.opencode.base.test.OpenTest
 
assertThatThrownBy(ExceptionAssert.ThrowableRunner) - Static method in class cloud.opencode.base.test.assertion.ExceptionAssert
Creates assertion expecting exception to be thrown.
assertThatThrownBy(Runnable) - Static method in class cloud.opencode.base.test.assertion.OpenAssertions
 
assertThatThrownBy(Runnable) - Static method in class cloud.opencode.base.test.OpenTest
 
assertThreadSafe(Runnable, int, int) - Static method in class cloud.opencode.base.test.concurrent.ConcurrentTester
Assert task is thread-safe 断言任务是线程安全的
assertThrows(Class, OpenAssert.Executable) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that executable throws expected exception 断言可执行对象抛出预期异常
assertTimeout(Duration, OpenAssert.Executable) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that executable completes within timeout 断言可执行对象在超时内完成
assertTrue(boolean) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that condition is true 断言条件为真
assertTrue(boolean, String) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that condition is true with message 断言条件为真(带消息)
assertTrue(boolean, Supplier) - Static method in class cloud.opencode.base.test.OpenAssert
Asserts that condition is true with lazy message 断言条件为真(延迟消息)
attributes() - Method in class cloud.opencode.base.test.TestContext
Gets all attributes as unmodifiable map 获取所有属性(不可修改的映射)
autoFill(Class) - Static method in class cloud.opencode.base.test.OpenTest
Create an auto-fill builder for the given type.
AutoFill - Class in cloud.opencode.base.test.data
AutoFill - Auto-populates Record and POJO instances via reflection 自动填充 - 通过反射自动填充Record和POJO实例
AutoFill.Builder<T> - Class in cloud.opencode.base.test.data
Builder for configuring and creating auto-filled instances.
averageMs() - Method in record class cloud.opencode.base.test.benchmark.BenchmarkResult
Gets the average time in milliseconds.
averageNanos() - Method in record class cloud.opencode.base.test.benchmark.BenchmarkResult
Gets the average time in nanoseconds.
await() - Static method in class cloud.opencode.base.test.wait.Poller
Create new poller 创建新的轮询器

B

base64(int) - Static method in class cloud.opencode.base.test.data.RandomData
Generates random bytes as base64 string.
base64Url(int) - Static method in class cloud.opencode.base.test.data.RandomData
Generates random bytes as URL-safe base64 string.
benchmark(String, Runnable) - Static method in class cloud.opencode.base.test.OpenTest
 
Benchmark - Class in cloud.opencode.base.test.benchmark
Benchmark 基准测试
BENCHMARK_FAILED - Enum constant in enum class cloud.opencode.base.test.exception.TestErrorCode
 
BENCHMARK_TIMEOUT - Enum constant in enum class cloud.opencode.base.test.exception.TestErrorCode
 
Benchmark.BenchmarkResult - Class in cloud.opencode.base.test.benchmark
Benchmark result 基准测试结果
Benchmark.ComparisonResult - Record Class in cloud.opencode.base.test.benchmark
Comparison result 比较结果
Benchmark.TimedResult<T> - Record Class in cloud.opencode.base.test.benchmark
Timed result 计时结果
BenchmarkException - Exception Class in cloud.opencode.base.test.exception
Benchmark Exception - Exception thrown during benchmark execution 基准测试异常 - 基准测试执行期间抛出的异常
BenchmarkException(TestErrorCode) - Constructor for exception class cloud.opencode.base.test.exception.BenchmarkException
Creates benchmark exception with error code.
BenchmarkException(TestErrorCode, String) - Constructor for exception class cloud.opencode.base.test.exception.BenchmarkException
Creates benchmark exception with error code and detail.
BenchmarkException(String) - Constructor for exception class cloud.opencode.base.test.exception.BenchmarkException
Creates benchmark exception with message.
BenchmarkException(String, Throwable) - Constructor for exception class cloud.opencode.base.test.exception.BenchmarkException
Creates benchmark exception with message and cause.
BenchmarkResult - Record Class in cloud.opencode.base.test.benchmark
Benchmark Result - Immutable result of a benchmark run 基准测试结果 - 基准测试运行的不可变结果
BenchmarkResult(String, long[]) - Constructor for record class cloud.opencode.base.test.benchmark.BenchmarkResult
Creates an instance of a BenchmarkResult record class.
BenchmarkResult(String, List) - Constructor for class cloud.opencode.base.test.benchmark.Benchmark.BenchmarkResult
 
BenchmarkRunner - Class in cloud.opencode.base.test.benchmark
Benchmark Runner - Configurable benchmark test runner 基准测试运行器 - 可配置的基准测试运行器
birthday(int, int) - Static method in class cloud.opencode.base.test.data.Faker
Generates random birthday.
birthday(int, int) - Static method in class cloud.opencode.base.test.OpenData
Generates random birthday for age range 为年龄范围生成随机生日
body() - Method in class cloud.opencode.base.test.http.MockResponse
 
body() - Method in record class cloud.opencode.base.test.http.RecordedRequest
Returns a defensive copy of the body bytes.
bodyAsString() - Method in record class cloud.opencode.base.test.http.RecordedRequest
 
bool() - Static method in class cloud.opencode.base.test.data.DataGenerator
Generates random boolean.
bool(double) - Static method in class cloud.opencode.base.test.data.DataGenerator
Generates random boolean with probability.
BooleanAssertion(Boolean) - Constructor for class cloud.opencode.base.test.assertion.OpenAssertions.BooleanAssertion
 
build() - Method in class cloud.opencode.base.test.data.AutoFill.Builder
Builds a single auto-filled instance.
build() - Method in class cloud.opencode.base.test.fixture.TestFixture.Builder
Build the fixture 构建夹具
build() - Method in class cloud.opencode.base.test.mock.MockBuilder
Build the mock 构建模拟对象
build() - Method in class cloud.opencode.base.test.OpenMock.MockBuilder
Builds the mock 构建模拟
builder(String) - Static method in class cloud.opencode.base.test.fixture.TestFixture
Create fixture builder 创建夹具构建器
bytes(int) - Static method in class cloud.opencode.base.test.data.DataGenerator
Generates array of bytes.
bytes(int) - Static method in class cloud.opencode.base.test.data.RandomData
Generates random bytes.

C

called(String, Object...) - Method in class cloud.opencode.base.test.mock.MockProxy.MockVerification
Verifies method was called.
checkCounter(Runnable, Supplier, int, int) - Static method in class cloud.opencode.base.test.concurrent.ThreadSafetyChecker
Check if a counter is thread-safe 检查计数器是否线程安全
CheckResult(boolean, int, int, int) - Constructor for record class cloud.opencode.base.test.concurrent.ThreadSafetyChecker.CheckResult
Creates an instance of a CheckResult record class.
chineseAddress() - Static method in class cloud.opencode.base.test.data.Faker
Generates random Chinese full address.
chineseCity() - Static method in class cloud.opencode.base.test.data.Faker
Generates random Chinese city name.
chineseCompany() - Static method in class cloud.opencode.base.test.data.Faker
Generates random Chinese company name.
chineseName() - Static method in class cloud.opencode.base.test.data.Faker
Generates random Chinese name.
chineseName() - Static method in class cloud.opencode.base.test.OpenData
Generates random Chinese name 生成随机中文姓名
chinesePhone() - Static method in class cloud.opencode.base.test.data.Faker
Generates random Chinese mobile phone.
chinesePostalCode() - Static method in class cloud.opencode.base.test.data.Faker
Generates random Chinese postal code.
chineseStreetAddress() - Static method in class cloud.opencode.base.test.data.Faker
Generates random Chinese street address.
city() - Static method in class cloud.opencode.base.test.data.Faker
Generates random city name.
city() - Static method in class cloud.opencode.base.test.OpenData
Generates random city name 生成随机城市名
clear() - Static method in class cloud.opencode.base.test.fixture.FixtureRegistry
Clear all fixtures 清除所有夹具
clear() - Method in class cloud.opencode.base.test.mock.Spy
Clear recorded invocations 清除记录的调用
clearInvocations() - Method in class cloud.opencode.base.test.mock.MockInvocationHandler
Clears all invocations.
clearInvocations(Object) - Static method in class cloud.opencode.base.test.mock.MockProxy
Clears all invocations on a mock.
close() - Method in class cloud.opencode.base.test.http.TestHttpServer
 
cloud.opencode.base.test - module cloud.opencode.base.test
OpenCode Base Test Module OpenCode 基础测试模块
cloud.opencode.base.test - package cloud.opencode.base.test
 
cloud.opencode.base.test.annotation - package cloud.opencode.base.test.annotation
 
cloud.opencode.base.test.assertion - package cloud.opencode.base.test.assertion
 
cloud.opencode.base.test.benchmark - package cloud.opencode.base.test.benchmark
 
cloud.opencode.base.test.concurrent - package cloud.opencode.base.test.concurrent
 
cloud.opencode.base.test.data - package cloud.opencode.base.test.data
 
cloud.opencode.base.test.exception - package cloud.opencode.base.test.exception
 
cloud.opencode.base.test.fixture - package cloud.opencode.base.test.fixture
 
cloud.opencode.base.test.http - package cloud.opencode.base.test.http
 
cloud.opencode.base.test.mock - package cloud.opencode.base.test.mock
 
cloud.opencode.base.test.report - package cloud.opencode.base.test.report
 
cloud.opencode.base.test.wait - package cloud.opencode.base.test.wait
 
code() - Method in enum class cloud.opencode.base.test.exception.TestErrorCode
Get error code 获取错误码
CollectionAssert<E> - Class in cloud.opencode.base.test.assertion
Collection Assert - Fluent assertions for collections 集合断言 - 集合的流式断言
CollectionAssertion(Collection) - Constructor for class cloud.opencode.base.test.assertion.OpenAssertions.CollectionAssertion
 
compactUuid() - Static method in class cloud.opencode.base.test.data.RandomData
Generates compact UUID (no dashes).
company() - Static method in class cloud.opencode.base.test.data.Faker
Generates random company name.
compare(String, Runnable, String, Runnable) - Static method in class cloud.opencode.base.test.benchmark.Benchmark
Compare two implementations 比较两个实现
compare(String, Runnable, String, Runnable) - Static method in class cloud.opencode.base.test.OpenTest
 
ComparisonResult(Benchmark.BenchmarkResult, Benchmark.BenchmarkResult) - Constructor for record class cloud.opencode.base.test.benchmark.Benchmark.ComparisonResult
Creates an instance of a ComparisonResult record class.
complete() - Method in class cloud.opencode.base.test.report.TestReport
Mark report as complete 标记报告为完成
componentIsInstanceOf(String, Class) - Method in class cloud.opencode.base.test.assertion.RecordAssert
Asserts that a named component is of the expected type.
componentIsNotNull(String) - Method in class cloud.opencode.base.test.assertion.RecordAssert
Asserts that a named component is not null.
componentIsNull(String) - Method in class cloud.opencode.base.test.assertion.RecordAssert
Asserts that a named component is null.
CONCURRENT_ERROR - Enum constant in enum class cloud.opencode.base.test.exception.TestErrorCode
 
ConcurrentResult(int, int, int, int, Duration, List) - Constructor for record class cloud.opencode.base.test.concurrent.ConcurrentTester.ConcurrentResult
Creates an instance of a ConcurrentResult record class.
ConcurrentTester - Class in cloud.opencode.base.test.concurrent
Concurrent Tester 并发测试器
ConcurrentTester.ConcurrentResult - Record Class in cloud.opencode.base.test.concurrent
Concurrent test result 并发测试结果
contains(E) - Method in class cloud.opencode.base.test.assertion.CollectionAssert
Asserts that collection contains element.
contains(String) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.StringAssertion
 
contains(String) - Method in class cloud.opencode.base.test.assertion.StringAssert
Asserts that string contains substring.
contains(String, String) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the string contains the substring 断言字符串包含子串
contains(String, String, String) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the string contains the substring with custom message 断言字符串包含子串(带自定义消息)
contains(T) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.CollectionAssertion
 
containsAll(E...) - Method in class cloud.opencode.base.test.assertion.CollectionAssert
Asserts that collection contains all elements.
containsAll(T...) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.CollectionAssertion
 
containsEntry(K, V) - Method in class cloud.opencode.base.test.assertion.MapAssert
Asserts that the map contains the specified key-value entry.
containsEntry(K, V) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.MapAssertion
 
containsExactly(E...) - Method in class cloud.opencode.base.test.assertion.CollectionAssert
Asserts that collection contains exactly the given elements.
containsExactlyInAnyOrder(E...) - Method in class cloud.opencode.base.test.assertion.CollectionAssert
Asserts that collection contains exactly the given elements in any order.
containsKey(String) - Method in class cloud.opencode.base.test.assertion.JsonAssert
Asserts that JSON contains key.
containsKey(K) - Method in class cloud.opencode.base.test.assertion.MapAssert
Asserts that the map contains the specified key.
containsKey(K) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.MapAssertion
 
containsKeys(K...) - Method in class cloud.opencode.base.test.assertion.MapAssert
Asserts that the map contains all specified keys.
containsOnlyDigits() - Method in class cloud.opencode.base.test.assertion.StringAssert
Asserts that string contains only digits.
containsOnlyLetters() - Method in class cloud.opencode.base.test.assertion.StringAssert
Asserts that string contains only letters.
containsValue(String) - Method in class cloud.opencode.base.test.assertion.JsonAssert
Asserts that JSON contains string value.
containsValue(V) - Method in class cloud.opencode.base.test.assertion.MapAssert
Asserts that the map contains the specified value.
containsValue(V) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.MapAssertion
 
countInvocations(String) - Method in class cloud.opencode.base.test.mock.MockInvocationHandler
Counts invocations for method.
countInvocations(String, Object...) - Method in class cloud.opencode.base.test.mock.MockInvocationHandler
Counts invocations for method with specific args.
create() - Static method in class cloud.opencode.base.test.benchmark.BenchmarkRunner
Creates new benchmark runner.
create() - Static method in class cloud.opencode.base.test.TestContext
Creates a new test context with default name 使用默认名称创建新的测试上下文
create(Class...) - Static method in class cloud.opencode.base.test.mock.MockProxy
Creates a mock proxy for multiple interfaces.
create(Class) - Static method in class cloud.opencode.base.test.mock.MockProxy
Creates a mock proxy for the given interface.
create(String) - Static method in class cloud.opencode.base.test.TestContext
Creates a new test context with test name 使用测试名称创建新的测试上下文
creationFailed(Class) - Static method in exception class cloud.opencode.base.test.exception.MockException
Creates exception for mock creation failure.
current() - Static method in class cloud.opencode.base.test.TestContext
Gets the current test context 获取当前测试上下文
CURRENT - Static variable in class cloud.opencode.base.test.TestContext
Current test context (ScopedValue) 当前测试上下文 (ScopedValue)
currentOrCreate() - Static method in class cloud.opencode.base.test.TestContext
Gets the current context or creates a new one 获取当前上下文或创建新的
currentOrCreate(String) - Static method in class cloud.opencode.base.test.TestContext
Gets the current context or creates one with specified name 获取当前上下文或使用指定名称创建新的

D

DATA_GENERATION_FAILED - Enum constant in enum class cloud.opencode.base.test.exception.TestErrorCode
 
DATA_RANGE_INVALID - Enum constant in enum class cloud.opencode.base.test.exception.TestErrorCode
 
DataGenerationException - Exception Class in cloud.opencode.base.test.exception
Data Generation Exception - Exception thrown during test data generation 数据生成异常 - 测试数据生成期间抛出的异常
DataGenerationException(TestErrorCode) - Constructor for exception class cloud.opencode.base.test.exception.DataGenerationException
Creates data generation exception with error code.
DataGenerationException(TestErrorCode, String) - Constructor for exception class cloud.opencode.base.test.exception.DataGenerationException
Creates data generation exception with error code and detail.
DataGenerationException(String) - Constructor for exception class cloud.opencode.base.test.exception.DataGenerationException
Creates data generation exception with message.
DataGenerationException(String, Throwable) - Constructor for exception class cloud.opencode.base.test.exception.DataGenerationException
Creates data generation exception with message and cause.
DataGenerator - Class in cloud.opencode.base.test.data
Data Generator - Factory for creating test data 数据生成器 - 创建测试数据的工厂
dateBetween(LocalDate, LocalDate) - Static method in class cloud.opencode.base.test.data.DataGenerator
Generates random LocalDate between bounds.
dateTimeBetween(LocalDateTime, LocalDateTime) - Static method in class cloud.opencode.base.test.data.DataGenerator
Generates random LocalDateTime between bounds.
decimal(double, double, int) - Static method in class cloud.opencode.base.test.data.DataGenerator
Generates random BigDecimal for monetary values.
defaultHandler(Function) - Method in class cloud.opencode.base.test.mock.MockBuilder
Set default handler 设置默认处理器
defaultReturn(Object) - Method in class cloud.opencode.base.test.mock.MockBuilder
Set default return value 设置默认返回值
delete(String) - Static method in interface cloud.opencode.base.test.http.RequestMatcher
 
deleteSnapshot(String) - Static method in class cloud.opencode.base.test.assertion.SnapshotAssert
Deletes the snapshot file if it exists.
deleteSnapshot(Path, String) - Static method in class cloud.opencode.base.test.assertion.SnapshotAssert
Deletes the snapshot file if it exists.
describedAs(String) - Method in class cloud.opencode.base.test.wait.Poller
Set description for error messages 设置错误消息的描述
difference() - Method in record class cloud.opencode.base.test.concurrent.ThreadSafetyChecker.CheckResult
Returns the value of the difference record component.
doesNotContain(E) - Method in class cloud.opencode.base.test.assertion.CollectionAssert
Asserts that collection does not contain element.
doesNotContain(String) - Method in class cloud.opencode.base.test.assertion.StringAssert
Asserts that string does not contain substring.
doesNotContain(T) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.CollectionAssertion
 
doesNotContainEntry(K, V) - Method in class cloud.opencode.base.test.assertion.MapAssert
Asserts that the map does not contain the specified key-value entry.
doesNotContainKey(String) - Method in class cloud.opencode.base.test.assertion.JsonAssert
Asserts that JSON does not contain key.
doesNotContainKey(K) - Method in class cloud.opencode.base.test.assertion.MapAssert
Asserts that the map does not contain the specified key.
doesNotContainValue(V) - Method in class cloud.opencode.base.test.assertion.MapAssert
Asserts that the map does not contain the specified value.
doesNotThrowAnyException() - Method in class cloud.opencode.base.test.assertion.ExceptionAssert
Asserts that no exception is thrown.
domainName() - Static method in class cloud.opencode.base.test.data.Faker
Generates random domain name.
doubleBetween(double, double) - Static method in class cloud.opencode.base.test.data.DataGenerator
Generates random double between bounds.
duration() - Method in record class cloud.opencode.base.test.benchmark.Benchmark.TimedResult
Returns the value of the duration record component.
duration() - Method in record class cloud.opencode.base.test.report.TestReport.TestResult
Returns the value of the duration record component.
duration() - Method in class cloud.opencode.base.test.TestContext
Gets the test duration 获取测试持续时间
durationMs() - Method in class cloud.opencode.base.test.report.TestReport
Alias for getTotalDuration().toMillis()
durationMs() - Method in record class cloud.opencode.base.test.report.TestReport.TestResult
 

E

EdgeCases - Class in cloud.opencode.base.test.data
EdgeCases - Generates boundary and edge case values for common types 边界用例 - 为常见类型生成边界值和边缘用例值
edgeCasesForInt() - Static method in class cloud.opencode.base.test.OpenTest
Get edge case values for int.
edgeCasesForString() - Static method in class cloud.opencode.base.test.OpenTest
Get edge case values for String.
email() - Static method in class cloud.opencode.base.test.data.Faker
Generates random email.
email() - Static method in class cloud.opencode.base.test.OpenData
Generates random email address 生成随机电子邮件地址
endsWith(String) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.StringAssertion
 
endsWith(String) - Method in class cloud.opencode.base.test.assertion.StringAssert
Asserts that string ends with suffix.
endsWith(String, String) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the string ends with the suffix 断言字符串以后缀结束
endsWith(String, String, String) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the string ends with the suffix with custom message 断言字符串以后缀结束(带自定义消息)
endTime() - Method in class cloud.opencode.base.test.TestContext
Gets the end time if test has completed 获取结束时间(如果测试已完成)
englishName() - Static method in class cloud.opencode.base.test.OpenData
Generates random English name 生成随机英文姓名
equals(Object) - Method in record class cloud.opencode.base.test.assertion.AssertionResult.Failure
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.test.benchmark.Benchmark.ComparisonResult
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.test.benchmark.Benchmark.TimedResult
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.test.benchmark.BenchmarkResult
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.test.concurrent.ConcurrentTester.ConcurrentResult
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.test.concurrent.ThreadSafetyChecker.CheckResult
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.test.http.RecordedRequest
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.test.mock.Invocation
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.test.mock.Spy.Invocation
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.test.OpenMock.Invocation
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.test.report.TestReport.TestResult
Indicates whether some other object is "equal to" this one.
EqualsAssertionException - Exception Class in cloud.opencode.base.test.exception
Equals Assertion Exception - Exception for equality assertion failures 相等断言异常 - 相等断言失败时抛出的异常
EqualsAssertionException(Object, Object) - Constructor for exception class cloud.opencode.base.test.exception.EqualsAssertionException
Creates equals assertion exception with expected and actual values.
EqualsAssertionException(Object, Object, String) - Constructor for exception class cloud.opencode.base.test.exception.EqualsAssertionException
Creates equals assertion exception with expected, actual values and message.
EqualsAssertionException(String) - Constructor for exception class cloud.opencode.base.test.exception.EqualsAssertionException
Creates equals assertion exception with message only.
EqualsAssertionException(String, Throwable) - Constructor for exception class cloud.opencode.base.test.exception.EqualsAssertionException
Creates equals assertion exception with message and cause.
error() - Method in record class cloud.opencode.base.test.report.TestReport.TestResult
Returns the value of the error record component.
errorMessage() - Method in record class cloud.opencode.base.test.report.TestReport.TestResult
 
errors() - Method in record class cloud.opencode.base.test.concurrent.ConcurrentTester.ConcurrentResult
Returns the value of the errors record component.
exception() - Method in class cloud.opencode.base.test.TestContext
Gets the failure exception if test failed 获取失败异常(如果测试失败)
ExceptionAssert - Class in cloud.opencode.base.test.assertion
Exception Assert - Fluent assertions for exceptions 异常断言 - 异常的流式断言
ExceptionAssert.ThrowableRunner - Interface in cloud.opencode.base.test.assertion
Functional interface for code that may throw.
execute() - Method in interface cloud.opencode.base.test.OpenAssert.Executable
Executes the operation 执行操作
executionFailed(String, Throwable) - Static method in exception class cloud.opencode.base.test.exception.BenchmarkException
Creates exception for benchmark execution failure.
exists(String) - Static method in class cloud.opencode.base.test.fixture.FixtureRegistry
Check if fixture exists 检查夹具是否存在
exists(String) - Static method in class cloud.opencode.base.test.ResourceLoader
Checks if a resource exists.
expected() - Method in record class cloud.opencode.base.test.assertion.AssertionResult.Failure
Returns the value of the expected record component.
expected() - Method in record class cloud.opencode.base.test.concurrent.ThreadSafetyChecker.CheckResult
Returns the value of the expected record component.
EXPECTED_EXCEPTION_NOT_THROWN - Enum constant in enum class cloud.opencode.base.test.exception.TestErrorCode
 
expectedMillis() - Element in annotation interface cloud.opencode.base.test.annotation.SlowTest
Expected duration in milliseconds 期望时长(毫秒)
expectedNull(Object) - Static method in exception class cloud.opencode.base.test.exception.EqualsAssertionException
Creates exception for null expected value.

F

fail() - Static method in class cloud.opencode.base.test.OpenAssert
Fails unconditionally 无条件失败
fail(String) - Static method in class cloud.opencode.base.test.OpenAssert
Fails unconditionally with message 无条件失败(带消息)
failed(String) - Static method in exception class cloud.opencode.base.test.exception.AssertionException
Creates exception for assertion failed.
failed(String, Duration, Throwable) - Static method in record class cloud.opencode.base.test.report.TestReport.TestResult
 
FAILED - Enum constant in enum class cloud.opencode.base.test.report.TestReport.TestStatus
 
failedTests() - Method in class cloud.opencode.base.test.report.TestReport
Alias for getFailedCount()
failFast() - Element in annotation interface cloud.opencode.base.test.annotation.Repeat
Fail fast on first failure 首次失败时快速失败
failure(String) - Static method in interface cloud.opencode.base.test.assertion.AssertionResult
Creates a failure result.
failure(String, Object, Object) - Static method in interface cloud.opencode.base.test.assertion.AssertionResult
Creates a failure result with expected and actual values.
Failure(String, Object, Object) - Constructor for record class cloud.opencode.base.test.assertion.AssertionResult.Failure
Creates an instance of a Failure record class.
failureCount() - Method in record class cloud.opencode.base.test.concurrent.ConcurrentTester.ConcurrentResult
Returns the value of the failureCount record component.
Faker - Class in cloud.opencode.base.test.data
Faker - Fake data generator for realistic test data Faker - 生成逼真测试数据的假数据生成器
FastTest - Annotation Interface in cloud.opencode.base.test.annotation
Fast Test 快速测试
first() - Method in record class cloud.opencode.base.test.benchmark.Benchmark.ComparisonResult
Returns the value of the first record component.
firstName() - Static method in class cloud.opencode.base.test.data.Faker
Generates random first name.
FIXTURE_INIT_FAILED - Enum constant in enum class cloud.opencode.base.test.exception.TestErrorCode
 
FIXTURE_NOT_FOUND - Enum constant in enum class cloud.opencode.base.test.exception.TestErrorCode
 
FixtureRegistry - Class in cloud.opencode.base.test.fixture
Fixture Registry 夹具注册表
forBoolean() - Static method in class cloud.opencode.base.test.data.EdgeCases
Returns edge case values for boolean/Boolean.
forByte() - Static method in class cloud.opencode.base.test.data.EdgeCases
Returns edge case values for byte/Byte.
forChar() - Static method in class cloud.opencode.base.test.data.EdgeCases
Returns edge case values for char/Character.
forDouble() - Static method in class cloud.opencode.base.test.data.EdgeCases
Returns edge case values for double/Double.
forDuration() - Static method in class cloud.opencode.base.test.data.EdgeCases
Returns edge case values for Duration.
forDuration(Duration) - Static method in class cloud.opencode.base.test.wait.Wait
Wait for duration 等待指定时长
forFloat() - Static method in class cloud.opencode.base.test.data.EdgeCases
Returns edge case values for float/Float.
forInt() - Static method in class cloud.opencode.base.test.data.EdgeCases
Returns edge case values for int/Integer.
forList() - Static method in class cloud.opencode.base.test.data.EdgeCases
Returns edge case values for List, including null.
forListNonNull() - Static method in class cloud.opencode.base.test.data.EdgeCases
Returns edge case values for List, excluding null.
forLocalDate() - Static method in class cloud.opencode.base.test.data.EdgeCases
Returns edge case values for LocalDate.
forLong() - Static method in class cloud.opencode.base.test.data.EdgeCases
Returns edge case values for long/Long.
forMillis(long) - Static method in class cloud.opencode.base.test.wait.Wait
Wait for milliseconds 等待指定毫秒
forSeconds(long) - Static method in class cloud.opencode.base.test.wait.Wait
Wait for seconds 等待指定秒数
forShort() - Static method in class cloud.opencode.base.test.data.EdgeCases
Returns edge case values for short/Short.
forString() - Static method in class cloud.opencode.base.test.data.EdgeCases
Returns edge case values for String, including null.
forStringNonNull() - Static method in class cloud.opencode.base.test.data.EdgeCases
Returns edge case values for String, excluding null.
futureDate(int) - Static method in class cloud.opencode.base.test.data.Faker
Generates random future date.
futureDate(int) - Static method in class cloud.opencode.base.test.OpenData
Generates random date in future 生成未来的随机日期

G

GENERAL_ERROR - Enum constant in enum class cloud.opencode.base.test.exception.TestErrorCode
 
generationFailed(String) - Static method in exception class cloud.opencode.base.test.exception.DataGenerationException
Creates exception for general generation failure.
get() - Method in class cloud.opencode.base.test.fixture.TestFixture
Get the fixture data (alias for setUp) 获取夹具数据(setUp的别名)
get(String) - Static method in class cloud.opencode.base.test.fixture.FixtureRegistry
Get a fixture by name 按名称获取夹具
get(String) - Static method in interface cloud.opencode.base.test.http.RequestMatcher
 
getActual() - Method in exception class cloud.opencode.base.test.exception.EqualsAssertionException
Get the actual value.
getActualString() - Method in exception class cloud.opencode.base.test.exception.EqualsAssertionException
Get the actual value as string.
getAllInvocations() - Method in class cloud.opencode.base.test.OpenMock.Verification
Gets all invocations 获取所有调用
getArg(int) - Method in record class cloud.opencode.base.test.mock.Spy.Invocation
 
getArgCount() - Method in record class cloud.opencode.base.test.mock.Spy.Invocation
 
getAttribute(String) - Method in class cloud.opencode.base.test.TestContext
Gets an attribute from the context 从上下文中获取属性
getAttribute(String, T) - Method in class cloud.opencode.base.test.TestContext
Gets an attribute with default value 获取属性,带默认值
getAverage() - Method in class cloud.opencode.base.test.benchmark.Benchmark.BenchmarkResult
 
getAverageDuration() - Method in class cloud.opencode.base.test.benchmark.Benchmark.BenchmarkResult
 
getCallCount(String) - Method in class cloud.opencode.base.test.mock.Spy
Get call count 获取调用次数
getComparisonInfo() - Method in exception class cloud.opencode.base.test.exception.EqualsAssertionException
Get detailed comparison info.
getCount() - Method in class cloud.opencode.base.test.benchmark.Benchmark.BenchmarkResult
 
getData(String) - Static method in class cloud.opencode.base.test.fixture.FixtureRegistry
Get fixture data by name 按名称获取夹具数据
getExpected() - Method in exception class cloud.opencode.base.test.exception.EqualsAssertionException
Get the expected value.
getExpectedString() - Method in exception class cloud.opencode.base.test.exception.EqualsAssertionException
Get the expected value as string.
getFailedCount() - Method in class cloud.opencode.base.test.report.TestReport
Get failed count 获取失败数
getFailureCount() - Method in class cloud.opencode.base.test.assertion.SoftAssert
Gets the count of collected failures 获取收集的失败数量
getFailures() - Method in class cloud.opencode.base.test.assertion.SoftAssert
Gets an unmodifiable list of collected failures 获取收集的失败的不可修改列表
getFaster() - Method in record class cloud.opencode.base.test.benchmark.Benchmark.ComparisonResult
 
getHandler(Object) - Static method in class cloud.opencode.base.test.mock.MockProxy
Gets the invocation handler for a mock.
getInvocations() - Method in class cloud.opencode.base.test.mock.MockInvocationHandler
Gets all recorded invocations.
getInvocations() - Method in class cloud.opencode.base.test.mock.Spy
Get all invocations 获取所有调用
getInvocations(Object) - Static method in class cloud.opencode.base.test.mock.MockProxy
Gets all invocations recorded on a mock.
getInvocations(String) - Method in class cloud.opencode.base.test.mock.MockInvocationHandler
Gets invocations for method.
getInvocations(String) - Method in class cloud.opencode.base.test.mock.Spy
Get invocations for method 获取方法的调用
getLastInvocation() - Method in class cloud.opencode.base.test.mock.Spy
Get last invocation 获取最后一次调用
getMatchedRequests() - Method in class cloud.opencode.base.test.http.RequestVerification
Returns the list of matched requests for custom assertions.
getMax() - Method in class cloud.opencode.base.test.benchmark.Benchmark.BenchmarkResult
 
getMaxDuration() - Method in class cloud.opencode.base.test.benchmark.Benchmark.BenchmarkResult
 
getMin() - Method in class cloud.opencode.base.test.benchmark.Benchmark.BenchmarkResult
 
getMinDuration() - Method in class cloud.opencode.base.test.benchmark.Benchmark.BenchmarkResult
 
getMockedType() - Method in class cloud.opencode.base.test.mock.MockInvocationHandler
Gets the mocked type.
getName() - Method in class cloud.opencode.base.test.benchmark.Benchmark.BenchmarkResult
 
getName() - Method in class cloud.opencode.base.test.fixture.TestFixture
Get fixture name 获取夹具名称
getName() - Method in class cloud.opencode.base.test.report.TestReport
Get report name 获取报告名称
getOpsPerSecond() - Method in class cloud.opencode.base.test.benchmark.Benchmark.BenchmarkResult
 
getPassedCount() - Method in class cloud.opencode.base.test.report.TestReport
Get passed count 获取通过数
getResourceStream(String) - Static method in class cloud.opencode.base.test.ResourceLoader
Gets an InputStream for the resource.
getResourceURL(String) - Static method in class cloud.opencode.base.test.ResourceLoader
Gets the URL for the resource.
getResults() - Method in class cloud.opencode.base.test.benchmark.BenchmarkRunner
Gets the results (must call run() first).
getResults() - Method in class cloud.opencode.base.test.report.TestReport
Get all results 获取所有结果
getSeed() - Method in class cloud.opencode.base.test.data.RepeatableRandom
Gets the seed.
getSkippedCount() - Method in class cloud.opencode.base.test.report.TestReport
Get skipped count 获取跳过数
getSpeedup() - Method in record class cloud.opencode.base.test.benchmark.Benchmark.ComparisonResult
 
getSuccessRate() - Method in class cloud.opencode.base.test.report.TestReport
Get success rate 获取成功率
getSummary() - Method in class cloud.opencode.base.test.report.TestReport
Get summary 获取摘要
getTestErrorCode() - Method in exception class cloud.opencode.base.test.exception.TestException
Get the typed test error code 获取类型化的测试错误码
getThrowable() - Method in class cloud.opencode.base.test.assertion.ExceptionAssert
Gets the thrown exception for further inspection.
getTotalCount() - Method in class cloud.opencode.base.test.report.TestReport
Get total count 获取总数
getTotalDuration() - Method in class cloud.opencode.base.test.report.TestReport
Get total duration 获取总时长
getVariable(String) - Method in class cloud.opencode.base.test.TestContext
Gets a variable from the context 从上下文中获取变量
getVariable(String, T) - Method in class cloud.opencode.base.test.TestContext
Gets a variable with default value 获取变量,带默认值

H

hasAttribute(String) - Method in class cloud.opencode.base.test.TestContext
Checks if an attribute exists 检查属性是否存在
hasCause() - Method in class cloud.opencode.base.test.assertion.ExceptionAssert
Asserts that exception has cause.
hasCauseInstanceOf(Class) - Method in class cloud.opencode.base.test.assertion.ExceptionAssert
Asserts that exception has cause of type.
hasCauseInstanceOf(Class) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.ThrowableAssertion
 
hasComponent(String, Object) - Method in class cloud.opencode.base.test.assertion.RecordAssert
Asserts that a named component has the expected value.
hasComponentCount(int) - Method in class cloud.opencode.base.test.assertion.RecordAssert
Asserts that the record has the specified number of components.
hasComponentNamed(String) - Method in class cloud.opencode.base.test.assertion.RecordAssert
Asserts that the record has a component with the given name.
hasFailures() - Method in class cloud.opencode.base.test.assertion.SoftAssert
Checks if there are any collected failures 检查是否有任何收集的失败
hashCode() - Method in record class cloud.opencode.base.test.assertion.AssertionResult.Failure
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.test.benchmark.Benchmark.ComparisonResult
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.test.benchmark.Benchmark.TimedResult
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.test.benchmark.BenchmarkResult
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.test.concurrent.ConcurrentTester.ConcurrentResult
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.test.concurrent.ThreadSafetyChecker.CheckResult
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.test.http.RecordedRequest
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.test.mock.Invocation
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.test.mock.Spy.Invocation
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.test.OpenMock.Invocation
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.test.report.TestReport.TestResult
Returns a hash code value for this object.
hasKeyValue(String, boolean) - Method in class cloud.opencode.base.test.assertion.JsonAssert
Asserts that JSON has key-value pair with boolean.
hasKeyValue(String, Number) - Method in class cloud.opencode.base.test.assertion.JsonAssert
Asserts that JSON has key-value pair with number.
hasKeyValue(String, String) - Method in class cloud.opencode.base.test.assertion.JsonAssert
Asserts that JSON has key-value pair.
hasLength(int) - Method in class cloud.opencode.base.test.assertion.JsonAssert
Asserts that JSON has specified length.
hasLength(int) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.StringAssertion
 
hasLength(int) - Method in class cloud.opencode.base.test.assertion.StringAssert
Asserts that string has specified length.
hasLengthBetween(int, int) - Method in class cloud.opencode.base.test.assertion.StringAssert
Asserts that string has length between.
hasMessage(String) - Method in class cloud.opencode.base.test.assertion.ExceptionAssert
Asserts that exception has message.
hasMessage(String) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.ThrowableAssertion
 
hasMessageContaining(String) - Method in class cloud.opencode.base.test.assertion.ExceptionAssert
Asserts that exception message contains.
hasMessageContaining(String) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.ThrowableAssertion
 
hasMessageEndingWith(String) - Method in class cloud.opencode.base.test.assertion.ExceptionAssert
Asserts that exception message ends with.
hasMessageStartingWith(String) - Method in class cloud.opencode.base.test.assertion.ExceptionAssert
Asserts that exception message starts with.
hasNoCause() - Method in class cloud.opencode.base.test.assertion.ExceptionAssert
Asserts that exception has no cause.
hasNoDuplicates() - Method in class cloud.opencode.base.test.assertion.CollectionAssert
Asserts that collection has no duplicates.
hasNullValue(String) - Method in class cloud.opencode.base.test.assertion.JsonAssert
Asserts that JSON has null value for key.
hasRootCauseInstanceOf(Class) - Method in class cloud.opencode.base.test.assertion.ExceptionAssert
Asserts that exception has root cause of type.
hasSize(int) - Method in class cloud.opencode.base.test.assertion.CollectionAssert
Asserts that collection has specified size.
hasSize(int) - Method in class cloud.opencode.base.test.assertion.MapAssert
Asserts that the map has the specified size.
hasSize(int) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.CollectionAssertion
 
hasSize(int) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.MapAssertion
 
hasSizeGreaterThan(int) - Method in class cloud.opencode.base.test.assertion.CollectionAssert
Asserts that collection has size greater than.
hasSizeGreaterThan(int) - Method in class cloud.opencode.base.test.assertion.MapAssert
Asserts that the map has size greater than the specified value.
hasSizeLessThan(int) - Method in class cloud.opencode.base.test.assertion.CollectionAssert
Asserts that collection has size less than.
hasSizeLessThan(int) - Method in class cloud.opencode.base.test.assertion.MapAssert
Asserts that the map has size less than the specified value.
hasValues() - Method in record class cloud.opencode.base.test.assertion.AssertionResult.Failure
Whether this failure has expected/actual values.
hasVariable(String) - Method in class cloud.opencode.base.test.TestContext
Checks if a variable exists 检查变量是否存在
header(String) - Method in record class cloud.opencode.base.test.http.RecordedRequest
 
headers() - Method in class cloud.opencode.base.test.http.MockResponse
 
headers() - Method in record class cloud.opencode.base.test.http.RecordedRequest
Returns the value of the headers record component.
hex(int) - Static method in class cloud.opencode.base.test.data.RandomData
Generates random bytes as hex string.

I

instantBetween(Instant, Instant) - Static method in class cloud.opencode.base.test.data.DataGenerator
Generates random Instant between bounds.
intBetween(int, int) - Static method in class cloud.opencode.base.test.data.DataGenerator
Generates random int between bounds.
IntegrationTest - Annotation Interface in cloud.opencode.base.test.annotation
Integration Test 集成测试
INVALID_CONFIGURATION - Enum constant in enum class cloud.opencode.base.test.exception.TestErrorCode
 
invalidRange(Number, Number) - Static method in exception class cloud.opencode.base.test.exception.DataGenerationException
Creates exception for invalid range.
Invocation - Record Class in cloud.opencode.base.test.mock
Invocation - Record of a method invocation on a mock 调用记录 - Mock上方法调用的记录
Invocation(Method, Object[], Instant) - Constructor for record class cloud.opencode.base.test.mock.Invocation
Compact constructor — defensively copies args array.
Invocation(String, Class[], Object[]) - Constructor for record class cloud.opencode.base.test.OpenMock.Invocation
Creates an instance of a Invocation record class.
Invocation(String, Object[]) - Constructor for record class cloud.opencode.base.test.mock.Spy.Invocation
Creates an instance of a Invocation record class.
invocationCount(String) - Method in class cloud.opencode.base.test.OpenMock.Verification
Gets the invocation count for a method 获取方法的调用次数
invoke(Object, Method, Object[]) - Method in class cloud.opencode.base.test.mock.MockInvocationHandler
 
ipv4() - Static method in class cloud.opencode.base.test.data.Faker
Generates random IPv4 address.
isBetween(Number, Number) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.NumberAssertion
 
isBetween(Number, Number, Number) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the actual number is between min and max (inclusive) 断言实际数值在最小值和最大值之间(包含)
isBetween(Number, Number, Number, String) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the actual number is between min and max (inclusive) with custom message 断言实际数值在最小值和最大值之间(包含)(带自定义消息)
isBetween(T, T) - Method in class cloud.opencode.base.test.assertion.NumberAssert
Asserts that number is between (inclusive).
isBlank() - Method in class cloud.opencode.base.test.assertion.OpenAssertions.StringAssertion
 
isBlank() - Method in class cloud.opencode.base.test.assertion.StringAssert
Asserts that string is blank.
isCloseTo(T, T) - Method in class cloud.opencode.base.test.assertion.NumberAssert
Asserts that number is close to with offset.
isEmpty() - Method in class cloud.opencode.base.test.assertion.CollectionAssert
Asserts that collection is empty.
isEmpty() - Method in class cloud.opencode.base.test.assertion.MapAssert
Asserts that the map is empty.
isEmpty() - Method in class cloud.opencode.base.test.assertion.OpenAssertions.CollectionAssertion
 
isEmpty() - Method in class cloud.opencode.base.test.assertion.OpenAssertions.MapAssertion
 
isEmpty() - Method in class cloud.opencode.base.test.assertion.OpenAssertions.StringAssertion
 
isEmpty() - Method in class cloud.opencode.base.test.assertion.StringAssert
Asserts that string is empty.
isEmpty(String) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the string is empty 断言字符串为空
isEmpty(String, String) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the string is empty with custom message 断言字符串为空(带自定义消息)
isEmptyArray() - Method in class cloud.opencode.base.test.assertion.JsonAssert
Asserts that JSON is empty array.
isEmptyObject() - Method in class cloud.opencode.base.test.assertion.JsonAssert
Asserts that JSON is empty object.
isEqualTo(Object, Object) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that two objects are equal 断言两个对象相等
isEqualTo(Object, Object, String) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that two objects are equal with custom message 断言两个对象相等(带自定义消息)
isEqualTo(Object, Object, Supplier) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that two objects are equal with lazy message 断言两个对象相等(带延迟消息)
isEqualTo(String) - Method in class cloud.opencode.base.test.assertion.JsonAssert
Asserts that JSON equals another JSON (ignoring whitespace).
isEqualTo(String) - Method in class cloud.opencode.base.test.assertion.StringAssert
Asserts that string equals another.
isEqualTo(Collection) - Method in class cloud.opencode.base.test.assertion.CollectionAssert
Asserts that collection equals another.
isEqualTo(Map) - Method in class cloud.opencode.base.test.assertion.MapAssert
Asserts that the map equals the expected map.
isEqualTo(R) - Method in class cloud.opencode.base.test.assertion.RecordAssert
Asserts that the record equals the expected record.
isEqualTo(T) - Method in class cloud.opencode.base.test.assertion.NumberAssert
Asserts that number equals another.
isEqualTo(T) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.ObjectAssertion
 
isEqualToIgnoringCase(String) - Method in class cloud.opencode.base.test.assertion.StringAssert
Asserts that string equals another ignoring case.
isEqualToIgnoringWhitespace(String) - Method in class cloud.opencode.base.test.assertion.StringAssert
Asserts that trimmed strings are equal.
isEven() - Method in class cloud.opencode.base.test.assertion.NumberAssert
Asserts that number is even.
isExactlyInstanceOf(Class) - Method in class cloud.opencode.base.test.assertion.ExceptionAssert
Asserts that exception is exactly of type.
isFailed() - Method in class cloud.opencode.base.test.TestContext
Checks if test failed 检查测试是否失败
isFalse() - Method in class cloud.opencode.base.test.assertion.OpenAssertions.BooleanAssertion
 
isFalse(boolean) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the condition is false 断言条件为假
isFalse(boolean, String) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the condition is false with custom message 断言条件为假(带自定义消息)
isFalse(boolean, Supplier) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the condition is false with lazy message 断言条件为假(带延迟消息)
isGreaterThan(Number) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.NumberAssertion
 
isGreaterThan(Number, Number) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the actual number is greater than the expected 断言实际数值大于期望值
isGreaterThan(Number, Number, String) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the actual number is greater than the expected with custom message 断言实际数值大于期望值(带自定义消息)
isGreaterThan(T) - Method in class cloud.opencode.base.test.assertion.NumberAssert
Asserts that number is greater than.
isGreaterThanOrEqualTo(Number, Number) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the actual number is greater than or equal to the expected 断言实际数值大于或等于期望值
isGreaterThanOrEqualTo(Number, Number, String) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the actual number is greater than or equal to the expected with custom message 断言实际数值大于或等于期望值(带自定义消息)
isGreaterThanOrEqualTo(T) - Method in class cloud.opencode.base.test.assertion.NumberAssert
Asserts that number is greater than or equal to.
isInitialized() - Method in class cloud.opencode.base.test.fixture.TestFixture
Check if initialized 检查是否已初始化
isInstanceOf(Class) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.ObjectAssertion
 
isInstanceOf(Class) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.ThrowableAssertion
 
isInstanceOf(Class) - Method in class cloud.opencode.base.test.assertion.ExceptionAssert
Asserts that exception is instance of.
isJsonArray() - Method in class cloud.opencode.base.test.assertion.JsonAssert
Asserts that JSON is an array.
isJsonObject() - Method in class cloud.opencode.base.test.assertion.JsonAssert
Asserts that JSON is an object.
isLessThan(Number) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.NumberAssertion
 
isLessThan(Number, Number) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the actual number is less than the expected 断言实际数值小于期望值
isLessThan(Number, Number, String) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the actual number is less than the expected with custom message 断言实际数值小于期望值(带自定义消息)
isLessThan(T) - Method in class cloud.opencode.base.test.assertion.NumberAssert
Asserts that number is less than.
isLessThanOrEqualTo(Number, Number) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the actual number is less than or equal to the expected 断言实际数值小于或等于期望值
isLessThanOrEqualTo(Number, Number, String) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the actual number is less than or equal to the expected with custom message 断言实际数值小于或等于期望值(带自定义消息)
isLessThanOrEqualTo(T) - Method in class cloud.opencode.base.test.assertion.NumberAssert
Asserts that number is less than or equal to.
isLowerCase() - Method in class cloud.opencode.base.test.assertion.StringAssert
Asserts that string is all lowercase.
isMethod(String) - Method in record class cloud.opencode.base.test.mock.Invocation
Checks if this invocation is for the specified method name.
isMock(Object) - Static method in class cloud.opencode.base.test.mock.MockProxy
Checks if object is a mock.
isNegative() - Method in class cloud.opencode.base.test.assertion.NumberAssert
Asserts that number is negative.
isNegative() - Method in class cloud.opencode.base.test.assertion.OpenAssertions.NumberAssertion
 
isNotBlank() - Method in class cloud.opencode.base.test.assertion.OpenAssertions.StringAssertion
 
isNotBlank() - Method in class cloud.opencode.base.test.assertion.StringAssert
Asserts that string is not blank.
isNotEmpty() - Method in class cloud.opencode.base.test.assertion.CollectionAssert
Asserts that collection is not empty.
isNotEmpty() - Method in class cloud.opencode.base.test.assertion.MapAssert
Asserts that the map is not empty.
isNotEmpty() - Method in class cloud.opencode.base.test.assertion.OpenAssertions.CollectionAssertion
 
isNotEmpty() - Method in class cloud.opencode.base.test.assertion.OpenAssertions.MapAssertion
 
isNotEmpty() - Method in class cloud.opencode.base.test.assertion.OpenAssertions.StringAssertion
 
isNotEmpty() - Method in class cloud.opencode.base.test.assertion.StringAssert
Asserts that string is not empty.
isNotEmpty(String) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the string is not empty 断言字符串不为空
isNotEmpty(String, String) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the string is not empty with custom message 断言字符串不为空(带自定义消息)
isNotEqualTo(Object, Object) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that two objects are not equal 断言两个对象不相等
isNotEqualTo(Object, Object, String) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that two objects are not equal with custom message 断言两个对象不相等(带自定义消息)
isNotEqualTo(Object, Object, Supplier) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that two objects are not equal with lazy message 断言两个对象不相等(带延迟消息)
isNotEqualTo(T) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.ObjectAssertion
 
isNotNegative() - Method in class cloud.opencode.base.test.assertion.NumberAssert
Asserts that number is not negative.
isNotNull() - Method in class cloud.opencode.base.test.assertion.CollectionAssert
Asserts that collection is not null.
isNotNull() - Method in class cloud.opencode.base.test.assertion.JsonAssert
Asserts that JSON is not null.
isNotNull() - Method in class cloud.opencode.base.test.assertion.MapAssert
Asserts that the map is not null.
isNotNull() - Method in class cloud.opencode.base.test.assertion.NumberAssert
Asserts that number is not null.
isNotNull() - Method in class cloud.opencode.base.test.assertion.OpenAssertions.ObjectAssertion
 
isNotNull() - Method in class cloud.opencode.base.test.assertion.RecordAssert
Asserts that the record is not null.
isNotNull() - Method in class cloud.opencode.base.test.assertion.StringAssert
Asserts that string is not null.
isNotNull(Object) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the object is not null 断言对象不为null
isNotNull(Object, String) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the object is not null with custom message 断言对象不为null(带自定义消息)
isNotNull(Object, Supplier) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the object is not null with lazy message 断言对象不为null(带延迟消息)
isNotPositive() - Method in class cloud.opencode.base.test.assertion.NumberAssert
Asserts that number is not positive.
isNotZero() - Method in class cloud.opencode.base.test.assertion.NumberAssert
Asserts that number is not zero.
isNull() - Method in class cloud.opencode.base.test.assertion.CollectionAssert
Asserts that collection is null.
isNull() - Method in class cloud.opencode.base.test.assertion.JsonAssert
Asserts that JSON is null.
isNull() - Method in class cloud.opencode.base.test.assertion.MapAssert
Asserts that the map is null.
isNull() - Method in class cloud.opencode.base.test.assertion.NumberAssert
Asserts that number is null.
isNull() - Method in class cloud.opencode.base.test.assertion.OpenAssertions.ObjectAssertion
 
isNull() - Method in class cloud.opencode.base.test.assertion.RecordAssert
Asserts that the record is null.
isNull() - Method in class cloud.opencode.base.test.assertion.StringAssert
Asserts that string is null.
isNull(Object) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the object is null 断言对象为null
isNull(Object, String) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the object is null with custom message 断言对象为null(带自定义消息)
isNull(Object, Supplier) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the object is null with lazy message 断言对象为null(带延迟消息)
isOdd() - Method in class cloud.opencode.base.test.assertion.NumberAssert
Asserts that number is odd.
isPassed() - Method in class cloud.opencode.base.test.TestContext
Checks if test passed 检查测试是否通过
isPositive() - Method in class cloud.opencode.base.test.assertion.NumberAssert
Asserts that number is positive.
isPositive() - Method in class cloud.opencode.base.test.assertion.OpenAssertions.NumberAssertion
 
isSameAs(T) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.ObjectAssertion
 
isSorted(Comparator) - Method in class cloud.opencode.base.test.assertion.CollectionAssert
Asserts that collection is sorted.
isStrictlyBetween(T, T) - Method in class cloud.opencode.base.test.assertion.NumberAssert
Asserts that number is strictly between (exclusive).
isThreadSafe(Runnable, int, int) - Static method in class cloud.opencode.base.test.concurrent.ThreadSafetyChecker
Check if object operations are thread-safe 检查对象操作是否线程安全
isTrue() - Method in class cloud.opencode.base.test.assertion.OpenAssertions.BooleanAssertion
 
isTrue(boolean) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the condition is true 断言条件为真
isTrue(boolean, String) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the condition is true with custom message 断言条件为真(带自定义消息)
isTrue(boolean, Supplier) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the condition is true with lazy message 断言条件为真(带延迟消息)
isUpperCase() - Method in class cloud.opencode.base.test.assertion.StringAssert
Asserts that string is all uppercase.
isValidJson() - Method in class cloud.opencode.base.test.assertion.JsonAssert
Asserts that string is valid JSON.
isZero() - Method in class cloud.opencode.base.test.assertion.NumberAssert
Asserts that number is zero.
isZero() - Method in class cloud.opencode.base.test.assertion.OpenAssertions.NumberAssertion
 
iterations() - Method in record class cloud.opencode.base.test.benchmark.BenchmarkResult
Gets the number of iterations.
iterations(int) - Method in class cloud.opencode.base.test.benchmark.BenchmarkRunner
Sets measure iterations.
iterationsPerThread() - Method in record class cloud.opencode.base.test.concurrent.ConcurrentTester.ConcurrentResult
Returns the value of the iterationsPerThread record component.

J

JsonAssert - Class in cloud.opencode.base.test.assertion
JSON Assert - Fluent assertions for JSON strings JSON断言 - JSON字符串的流式断言

L

lastName() - Static method in class cloud.opencode.base.test.data.Faker
Generates random last name.
list(int) - Method in class cloud.opencode.base.test.data.AutoFill.Builder
Builds a list of auto-filled instances.
list(int, Supplier) - Static method in class cloud.opencode.base.test.data.DataGenerator
Generates list of items.
listOf(int, Supplier) - Static method in class cloud.opencode.base.test.OpenData
Generates list with random data 生成包含随机数据的列表
loadBytes(String) - Static method in class cloud.opencode.base.test.ResourceLoader
Loads a resource as a byte array.
loadFile(Path) - Static method in class cloud.opencode.base.test.ResourceLoader
Loads a file from filesystem as string.
loadFile(Path, Charset) - Static method in class cloud.opencode.base.test.ResourceLoader
Loads a file from filesystem as string with charset.
loadFileBytes(Path) - Static method in class cloud.opencode.base.test.ResourceLoader
Loads file bytes from filesystem.
loadFileLines(Path) - Static method in class cloud.opencode.base.test.ResourceLoader
Loads file lines from filesystem.
loadLines(String) - Static method in class cloud.opencode.base.test.ResourceLoader
Loads a resource as a list of lines.
loadLines(String, Charset) - Static method in class cloud.opencode.base.test.ResourceLoader
Loads a resource as a list of lines with specified charset.
loadProperties(String) - Static method in class cloud.opencode.base.test.ResourceLoader
Loads a properties file.
loadString(String) - Static method in class cloud.opencode.base.test.ResourceLoader
Loads a resource as a string using UTF-8 encoding.
loadString(String, Charset) - Static method in class cloud.opencode.base.test.ResourceLoader
Loads a resource as a string with specified charset.
loadStringOptional(String) - Static method in class cloud.opencode.base.test.ResourceLoader
Loads a resource as a string, returning Optional.
longBetween(long, long) - Static method in class cloud.opencode.base.test.data.DataGenerator
Generates random long between bounds.

M

map(int, Supplier, Supplier) - Static method in class cloud.opencode.base.test.data.DataGenerator
Generates map with keys and values.
MapAssert<K,V> - Class in cloud.opencode.base.test.assertion
Map Assert - Fluent assertions for Map instances Map断言 - Map实例的流式断言
MapAssertion(Map) - Constructor for class cloud.opencode.base.test.assertion.OpenAssertions.MapAssertion
 
matches(RecordedRequest) - Method in interface cloud.opencode.base.test.http.RequestMatcher
 
matches(String) - Method in class cloud.opencode.base.test.assertion.StringAssert
Asserts that string matches regex.
matches(Predicate) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.ObjectAssertion
 
matches(Pattern) - Method in class cloud.opencode.base.test.assertion.StringAssert
Asserts that string matches pattern.
matchesRegex(String) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.StringAssertion
 
maxDepth(int) - Method in class cloud.opencode.base.test.data.AutoFill.Builder
Sets the maximum recursion depth for nested objects.
maxMs() - Method in record class cloud.opencode.base.test.benchmark.BenchmarkResult
Gets the maximum time in milliseconds.
md5() - Static method in class cloud.opencode.base.test.data.RandomData
Generates random MD5 hash.
medianMs() - Method in record class cloud.opencode.base.test.benchmark.BenchmarkResult
Gets the median time in milliseconds.
message() - Method in record class cloud.opencode.base.test.assertion.AssertionResult.Failure
Returns the value of the message record component.
message() - Method in enum class cloud.opencode.base.test.exception.TestErrorCode
Get error message 获取错误消息
message() - Method in record class cloud.opencode.base.test.report.TestReport.TestResult
Returns the value of the message record component.
method() - Method in record class cloud.opencode.base.test.http.RecordedRequest
Returns the value of the method record component.
method() - Method in record class cloud.opencode.base.test.mock.Invocation
Returns the value of the method record component.
method(String, String) - Static method in interface cloud.opencode.base.test.http.RequestMatcher
 
methodName() - Method in record class cloud.opencode.base.test.mock.Invocation
Gets the method name.
methodName() - Method in record class cloud.opencode.base.test.mock.Spy.Invocation
Returns the value of the methodName record component.
methodName() - Method in record class cloud.opencode.base.test.OpenMock.Invocation
Returns the value of the methodName record component.
millis() - Method in record class cloud.opencode.base.test.benchmark.Benchmark.TimedResult
 
minMs() - Method in record class cloud.opencode.base.test.benchmark.BenchmarkResult
Gets the minimum time in milliseconds.
mock(Class) - Static method in class cloud.opencode.base.test.mock.MockBuilder
Quick create mock with default values 快速创建带默认值的模拟
mock(Class) - Static method in class cloud.opencode.base.test.OpenMock
Creates a mock of the given interface type 创建给定接口类型的模拟
mock(Class) - Static method in class cloud.opencode.base.test.OpenTest
 
MOCK_CREATION_FAILED - Enum constant in enum class cloud.opencode.base.test.exception.TestErrorCode
 
MOCK_NOT_INTERFACE - Enum constant in enum class cloud.opencode.base.test.exception.TestErrorCode
 
MOCK_SETUP_FAILED - Enum constant in enum class cloud.opencode.base.test.exception.TestErrorCode
 
MOCK_VERIFICATION_FAILED - Enum constant in enum class cloud.opencode.base.test.exception.TestErrorCode
 
MockBuilder<T> - Class in cloud.opencode.base.test.mock
Mock Builder 模拟构建器
MockException - Exception Class in cloud.opencode.base.test.exception
Mock Exception - Exception thrown during mock operations Mock异常 - Mock操作期间抛出的异常
MockException(TestErrorCode) - Constructor for exception class cloud.opencode.base.test.exception.MockException
Creates mock exception with error code.
MockException(TestErrorCode, String) - Constructor for exception class cloud.opencode.base.test.exception.MockException
Creates mock exception with error code and detail.
MockException(String) - Constructor for exception class cloud.opencode.base.test.exception.MockException
Creates mock exception with message.
MockException(String, Throwable) - Constructor for exception class cloud.opencode.base.test.exception.MockException
Creates mock exception with message and cause.
MockInvocationHandler - Class in cloud.opencode.base.test.mock
Mock Invocation Handler - Handles method invocations on mock proxies Mock调用处理器 - 处理Mock代理上的方法调用
MockInvocationHandler(Class) - Constructor for class cloud.opencode.base.test.mock.MockInvocationHandler
Creates handler for mocked type.
MockInvocationHandler.Stubbing - Class in cloud.opencode.base.test.mock
Stubbing configuration.
MockProxy - Class in cloud.opencode.base.test.mock
Mock Proxy - Factory for creating mock proxy instances Mock代理 - 创建Mock代理实例的工厂
MockProxy.MockVerification - Class in cloud.opencode.base.test.mock
Mock verification helper.
MockResponse - Class in cloud.opencode.base.test.http
Mock HTTP Response — a response to be returned by TestHttpServer for a matched route.

N

name() - Method in record class cloud.opencode.base.test.benchmark.BenchmarkResult
Returns the value of the name record component.
name() - Static method in class cloud.opencode.base.test.data.Faker
Generates random full name.
name() - Method in record class cloud.opencode.base.test.report.TestReport.TestResult
 
nanos() - Method in record class cloud.opencode.base.test.benchmark.Benchmark.TimedResult
 
neverCalled(String) - Method in class cloud.opencode.base.test.mock.MockProxy.MockVerification
Verifies method was never called.
nextBoolean() - Method in class cloud.opencode.base.test.data.RepeatableRandom
Returns a random boolean.
nextBoolean(double) - Method in class cloud.opencode.base.test.data.RepeatableRandom
Returns a random boolean with specified true probability.
nextDigits(int) - Method in class cloud.opencode.base.test.data.RepeatableRandom
Returns a random string of digits.
nextDouble() - Method in class cloud.opencode.base.test.data.RepeatableRandom
Returns a random double between 0.0 and 1.0.
nextDouble(double, double) - Method in class cloud.opencode.base.test.data.RepeatableRandom
Returns a random double between min and max.
nextElement(T[]) - Method in class cloud.opencode.base.test.data.RepeatableRandom
Returns a random element from the array.
nextInt() - Method in class cloud.opencode.base.test.data.RepeatableRandom
Returns a random int.
nextInt(int) - Method in class cloud.opencode.base.test.data.RepeatableRandom
Returns a random int between 0 (inclusive) and bound (exclusive).
nextInt(int, int) - Method in class cloud.opencode.base.test.data.RepeatableRandom
Returns a random int between min (inclusive) and max (inclusive).
nextLong() - Method in class cloud.opencode.base.test.data.RepeatableRandom
Returns a random long.
nextLong(long) - Method in class cloud.opencode.base.test.data.RepeatableRandom
Returns a random long between 0 and bound.
nextString(int) - Method in class cloud.opencode.base.test.data.RepeatableRandom
Returns a random string of specified length.
noInteractions() - Method in class cloud.opencode.base.test.mock.Spy
Verify no interactions 验证没有交互
noneMatch(Predicate) - Method in class cloud.opencode.base.test.assertion.CollectionAssert
Asserts that collection contains no element matching predicate.
notEqual(Object, Object) - Static method in exception class cloud.opencode.base.test.exception.AssertionException
Creates exception for equality assertion.
notFound() - Static method in class cloud.opencode.base.test.http.MockResponse
 
notFound(String) - Static method in class cloud.opencode.base.test.http.MockResponse
 
notInterface(Class) - Static method in exception class cloud.opencode.base.test.exception.MockException
Creates exception for non-interface mock attempt.
nullAssertion() - Static method in exception class cloud.opencode.base.test.exception.AssertionException
Creates exception for null assertion.
NumberAssert<T> - Class in cloud.opencode.base.test.assertion
Number Assert - Fluent assertions for numbers 数值断言 - 数值的流式断言
NumberAssertion(Number) - Constructor for class cloud.opencode.base.test.assertion.OpenAssertions.NumberAssertion
 
numeric(int) - Static method in class cloud.opencode.base.test.data.DataGenerator
Generates random numeric string.
numericCode(int) - Static method in class cloud.opencode.base.test.data.RandomData
Generates random numeric code.

O

ObjectAssertion(T) - Constructor for class cloud.opencode.base.test.assertion.OpenAssertions.ObjectAssertion
 
of(Class) - Static method in class cloud.opencode.base.test.data.AutoFill
Creates a builder for the given type.
of(Class) - Static method in class cloud.opencode.base.test.mock.MockBuilder
Create builder for interface 为接口创建构建器
of(Object, Object) - Static method in exception class cloud.opencode.base.test.exception.EqualsAssertionException
Creates exception for mismatched values.
of(Object, Object, String) - Static method in exception class cloud.opencode.base.test.exception.EqualsAssertionException
Creates exception for mismatched values with message.
of(Method, Object[]) - Static method in record class cloud.opencode.base.test.mock.Invocation
Creates an invocation with current timestamp.
ok() - Static method in class cloud.opencode.base.test.http.MockResponse
 
ok(String) - Static method in class cloud.opencode.base.test.http.MockResponse
 
onComplete(Consumer) - Method in class cloud.opencode.base.test.benchmark.BenchmarkRunner
Executes callback with results.
oneOf(List) - Static method in class cloud.opencode.base.test.data.DataGenerator
Selects random element from list.
oneOf(List) - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
oneOf(T...) - Static method in class cloud.opencode.base.test.data.DataGenerator
Selects random element from array.
oneOf(T...) - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
oneOf(T...) - Static method in class cloud.opencode.base.test.OpenTest
 
onFailure(TestContext.FailureCallback) - Method in class cloud.opencode.base.test.TestContext
Registers a failure callback 注册失败回调
onFailure(TestContext, Throwable) - Method in interface cloud.opencode.base.test.TestContext.FailureCallback
Called when test fails 测试失败时调用
onSuccess(Consumer) - Method in class cloud.opencode.base.test.TestContext
Registers a success callback 注册成功回调
OpenAssert - Class in cloud.opencode.base.test
Assertion Entry Class - Provides comprehensive assertion methods 断言入口类 - 提供全面的断言方法
OpenAssert.Executable - Interface in cloud.opencode.base.test
Executable functional interface for exception assertions 用于异常断言的可执行函数式接口
OpenAssertions - Class in cloud.opencode.base.test.assertion
Open Assertions 开放断言
OpenAssertions.BooleanAssertion - Class in cloud.opencode.base.test.assertion
 
OpenAssertions.CollectionAssertion<T> - Class in cloud.opencode.base.test.assertion
 
OpenAssertions.MapAssertion<K,V> - Class in cloud.opencode.base.test.assertion
 
OpenAssertions.NumberAssertion - Class in cloud.opencode.base.test.assertion
 
OpenAssertions.ObjectAssertion<T> - Class in cloud.opencode.base.test.assertion
 
OpenAssertions.StringAssertion - Class in cloud.opencode.base.test.assertion
 
OpenAssertions.ThrowableAssertion - Class in cloud.opencode.base.test.assertion
 
OpenData - Class in cloud.opencode.base.test
Test Data Generation Entry Class - Provides test data generation capabilities 测试数据生成入口类 - 提供测试数据生成能力
OpenMock - Class in cloud.opencode.base.test
Mock Entry Class - Provides interface mocking capabilities Mock入口类 - 提供接口模拟能力
OpenMock.Invocation - Record Class in cloud.opencode.base.test
Invocation record 调用记录
OpenMock.MockBuilder<T> - Class in cloud.opencode.base.test
Mock Builder for fluent mock configuration 用于流畅mock配置的Mock构建器
OpenMock.Verification<T> - Class in cloud.opencode.base.test
Verification wrapper for asserting mock invocations 用于断言mock调用的验证包装器
OpenTest - Class in cloud.opencode.base.test
Open Test 开放测试
orderNumber() - Static method in class cloud.opencode.base.test.data.RandomData
Generates random order number.
output(PrintStream) - Method in class cloud.opencode.base.test.benchmark.BenchmarkRunner
Sets output stream.

P

p95Ms() - Method in record class cloud.opencode.base.test.benchmark.BenchmarkResult
Gets the 95th percentile time in milliseconds.
p99Ms() - Method in record class cloud.opencode.base.test.benchmark.BenchmarkResult
Gets the 99th percentile time in milliseconds.
paragraph(int) - Static method in class cloud.opencode.base.test.data.Faker
Generates random paragraph.
parameterTypes() - Method in record class cloud.opencode.base.test.mock.Invocation
Gets the parameter types.
parameterTypes() - Method in record class cloud.opencode.base.test.OpenMock.Invocation
Returns the value of the parameterTypes record component.
passed() - Method in record class cloud.opencode.base.test.assertion.AssertionResult.Failure
 
passed() - Method in interface cloud.opencode.base.test.assertion.AssertionResult
Whether the assertion passed.
passed() - Method in class cloud.opencode.base.test.assertion.AssertionResult.Success
 
passed() - Method in record class cloud.opencode.base.test.concurrent.ThreadSafetyChecker.CheckResult
Returns the value of the passed record component.
passed() - Method in record class cloud.opencode.base.test.report.TestReport.TestResult
 
passed(String, Duration) - Static method in record class cloud.opencode.base.test.report.TestReport.TestResult
 
PASSED - Enum constant in enum class cloud.opencode.base.test.report.TestReport.TestStatus
 
passedTests() - Method in class cloud.opencode.base.test.report.TestReport
Alias for getPassedCount()
pastDate(int) - Static method in class cloud.opencode.base.test.data.Faker
Generates random past date.
pastDate(int) - Static method in class cloud.opencode.base.test.OpenData
Generates random date in past 生成过去的随机日期
pastDateTime(int) - Static method in class cloud.opencode.base.test.OpenData
Generates random datetime in past 生成过去的随机日期时间
path() - Method in record class cloud.opencode.base.test.http.RecordedRequest
Returns the value of the path record component.
percentileMs(int) - Method in record class cloud.opencode.base.test.benchmark.BenchmarkResult
Gets the percentile time in milliseconds.
phone() - Static method in class cloud.opencode.base.test.data.Faker
Generates random phone number (US format).
phone() - Static method in class cloud.opencode.base.test.OpenData
Generates random Chinese phone number 生成随机中国手机号
pick(Collection) - Static method in class cloud.opencode.base.test.OpenData
Picks random element from collection 从集合中随机选择元素
pick(List) - Static method in class cloud.opencode.base.test.OpenData
Picks random element from list 从列表中随机选择元素
pick(T[]) - Static method in class cloud.opencode.base.test.OpenData
Picks random element from array 从数组中随机选择元素
pickMany(List, int) - Static method in class cloud.opencode.base.test.OpenData
Picks random multiple elements from list 从列表中随机选择多个元素
Poller - Class in cloud.opencode.base.test.wait
Poller 轮询器
pollInterval(Duration) - Method in class cloud.opencode.base.test.wait.Poller
Set poll interval 设置轮询间隔
port() - Method in class cloud.opencode.base.test.http.TestHttpServer
 
post(String) - Static method in interface cloud.opencode.base.test.http.RequestMatcher
 
printComparison() - Method in class cloud.opencode.base.test.benchmark.BenchmarkRunner
Prints comparison of results.
printResults() - Method in class cloud.opencode.base.test.benchmark.BenchmarkRunner
Prints results to output stream.
put(String) - Static method in interface cloud.opencode.base.test.http.RequestMatcher
 

Q

quickMock(Class) - Static method in class cloud.opencode.base.test.OpenTest
 

R

randomAlpha(int) - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
randomAlphabetic(int) - Static method in class cloud.opencode.base.test.OpenData
Generates random alphabetic string (letters only) 生成随机字母字符串(仅字母)
randomBoolean() - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
randomBoolean() - Static method in class cloud.opencode.base.test.OpenData
Generates random boolean 生成随机布尔值
randomBoolean() - Static method in class cloud.opencode.base.test.OpenTest
 
randomBytes(int) - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
randomBytes(int) - Static method in class cloud.opencode.base.test.OpenData
Generates random bytes 生成随机字节数组
randomBytes(int) - Static method in class cloud.opencode.base.test.OpenTest
 
RandomData - Class in cloud.opencode.base.test.data
Random Data - Utilities for generating random data 随机数据 - 生成随机数据的工具
randomDate() - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
randomDate(LocalDate, LocalDate) - Static method in class cloud.opencode.base.test.OpenData
Generates random date between start and end (inclusive) 生成开始和结束日期之间的随机日期(包含)
randomDateTime() - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
randomDateTime() - Static method in class cloud.opencode.base.test.OpenData
Generates random datetime 生成随机日期时间
randomDateTime(LocalDateTime, LocalDateTime) - Static method in class cloud.opencode.base.test.OpenData
Generates random datetime between start and end 生成开始和结束日期时间之间的随机日期时间
randomDouble() - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
randomDouble() - Static method in class cloud.opencode.base.test.OpenData
Generates random double (0.0 to 1.0) 生成随机双精度数(0.0到1.0)
randomDouble() - Static method in class cloud.opencode.base.test.OpenTest
 
randomDouble(double) - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
randomDouble(double, double) - Static method in class cloud.opencode.base.test.OpenData
Generates random double in range 生成范围内随机双精度数
randomEmail() - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
randomEmail() - Static method in class cloud.opencode.base.test.OpenTest
 
randomFirstName() - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
randomFloat() - Static method in class cloud.opencode.base.test.OpenData
Generates random float (0.0 to 1.0) 生成随机浮点数(0.0到1.0)
randomFloat(float, float) - Static method in class cloud.opencode.base.test.OpenData
Generates random float in range 生成范围内随机浮点数
randomFullName() - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
randomHex(int) - Static method in class cloud.opencode.base.test.OpenData
Generates random hex string 生成随机十六进制字符串
randomInstant() - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
randomInt() - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
randomInt() - Static method in class cloud.opencode.base.test.OpenData
Generates random int 生成随机整数
randomInt(int) - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
randomInt(int) - Static method in class cloud.opencode.base.test.OpenData
Generates random int up to bound (exclusive) 生成随机整数(不包含上界)
randomInt(int) - Static method in class cloud.opencode.base.test.OpenTest
 
randomInt(int, int) - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
randomInt(int, int) - Static method in class cloud.opencode.base.test.OpenData
Generates random int in range 生成范围内随机整数
randomInt(int, int) - Static method in class cloud.opencode.base.test.OpenTest
 
randomInts(int, int) - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
randomLastName() - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
randomLong() - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
randomLong() - Static method in class cloud.opencode.base.test.OpenData
Generates random long 生成随机长整数
randomLong(long) - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
randomLong(long, long) - Static method in class cloud.opencode.base.test.OpenData
Generates random long in range 生成范围内随机长整数
randomMoney() - Static method in class cloud.opencode.base.test.OpenData
Generates random money amount (0.00 to 10000.00) 生成随机金额(0.00到10000.00)
randomMoney(double, double) - Static method in class cloud.opencode.base.test.OpenData
Generates random money amount in range 生成范围内的随机金额
randomName() - Static method in class cloud.opencode.base.test.OpenTest
 
randomNumeric(int) - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
randomNumeric(int) - Static method in class cloud.opencode.base.test.OpenData
Generates random numeric string (digits only) 生成随机数字字符串(仅数字)
randomPhone() - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
randomPhone() - Static method in class cloud.opencode.base.test.OpenTest
 
randomPrice(int, int) - Static method in class cloud.opencode.base.test.OpenData
Generates random price (formatted as X.99 or X.00) 生成随机价格(格式为X.99或X.00)
randomString(int) - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
randomString(int) - Static method in class cloud.opencode.base.test.OpenData
Generates random alphanumeric string 生成随机字母数字字符串
randomString(int) - Static method in class cloud.opencode.base.test.OpenTest
 
randomString(int, String) - Static method in class cloud.opencode.base.test.data.DataGenerator
Generates random string from character set.
randomString(int, String) - Static method in class cloud.opencode.base.test.OpenData
Generates random string from character set 从字符集生成随机字符串
randomStrings(int, int) - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
record(Class) - Static method in class cloud.opencode.base.test.data.DataGenerator
Generates random record with default values.
record(String, Object...) - Method in class cloud.opencode.base.test.mock.Spy
Record an invocation 记录一次调用
RecordAssert<R> - Class in cloud.opencode.base.test.assertion
Record Assert - Fluent assertions for Java Record components Record断言 - Java Record组件的流式断言
recordedRequest(String) - Method in class cloud.opencode.base.test.http.TestHttpServer
 
RecordedRequest - Record Class in cloud.opencode.base.test.http
Recorded HTTP Request — a snapshot of an HTTP request received by TestHttpServer.
RecordedRequest(String, String, Map, byte[]) - Constructor for record class cloud.opencode.base.test.http.RecordedRequest
Compact constructor — defensively copies the body array.
recordedRequests() - Method in class cloud.opencode.base.test.http.TestHttpServer
 
refreshToken() - Static method in class cloud.opencode.base.test.data.RandomData
Generates random refresh token.
register(TestFixture) - Static method in class cloud.opencode.base.test.fixture.FixtureRegistry
Register a fixture 注册夹具
register(String, Supplier) - Static method in class cloud.opencode.base.test.fixture.FixtureRegistry
Register a simple fixture 注册简单夹具
removeVariable(String) - Method in class cloud.opencode.base.test.TestContext
Removes a variable from the context 从上下文中移除变量
Repeat - Annotation Interface in cloud.opencode.base.test.annotation
Repeat 重复
RepeatableRandom - Class in cloud.opencode.base.test.data
Repeatable Random - Seeded random generator for reproducible tests 可重复随机 - 用于可复现测试的种子随机生成器
RepeatableRandom(long) - Constructor for class cloud.opencode.base.test.data.RepeatableRandom
Creates a repeatable random with the specified seed.
ReportGenerator - Class in cloud.opencode.base.test.report
Report Generator - Generates test reports in various formats 报告生成器 - 以各种格式生成测试报告
RequestMatcher - Interface in cloud.opencode.base.test.http
Request Matcher — predicate for matching incoming HTTP requests in TestHttpServer.
RequestVerification - Class in cloud.opencode.base.test.http
Request Verification — Fluent API for verifying recorded HTTP requests.
requires() - Element in annotation interface cloud.opencode.base.test.annotation.IntegrationTest
Required resources 所需资源
reset() - Method in class cloud.opencode.base.test.assertion.SoftAssert
Resets the soft assert by clearing all collected failures 通过清除所有收集的失败来重置软断言
reset() - Method in class cloud.opencode.base.test.data.RepeatableRandom
Resets the random generator to the initial state.
reset() - Method in class cloud.opencode.base.test.fixture.TestFixture
Reset the fixture 重置夹具
reset() - Method in class cloud.opencode.base.test.http.TestHttpServer
 
reset() - Method in class cloud.opencode.base.test.mock.MockInvocationHandler
Resets handler (clears invocations and stubs).
reset(Object) - Static method in class cloud.opencode.base.test.mock.MockProxy
Resets a mock (clears invocations and stubbing).
reset(Object) - Static method in class cloud.opencode.base.test.OpenMock
Resets all recorded invocations for the mock 重置模拟的所有记录调用
resetAll() - Static method in class cloud.opencode.base.test.fixture.FixtureRegistry
Reset all fixtures 重置所有夹具
ResourceLoader - Class in cloud.opencode.base.test
Resource Loader - Test resource loading utility 资源加载器 - 测试资源加载工具
result() - Method in record class cloud.opencode.base.test.benchmark.Benchmark.TimedResult
Returns the value of the result record component.
returnType() - Method in record class cloud.opencode.base.test.mock.Invocation
Gets the return type.
run() - Method in interface cloud.opencode.base.test.assertion.ExceptionAssert.ThrowableRunner
 
run() - Method in class cloud.opencode.base.test.benchmark.BenchmarkRunner
Runs all benchmarks.
run(TestContext, Runnable) - Static method in class cloud.opencode.base.test.TestContext
Runs a runnable within this context 在此上下文中运行可运行对象
run(TestContext, ScopedValue.CallableOp) - Static method in class cloud.opencode.base.test.TestContext
Runs a callable within this context 在此上下文中运行可调用对象
run(String, Runnable) - Static method in class cloud.opencode.base.test.benchmark.Benchmark
Run benchmark with defaults 使用默认值运行基准测试
run(String, Runnable, int, int) - Static method in class cloud.opencode.base.test.benchmark.Benchmark
Run benchmark with warmup and iterations 运行带预热和迭代的基准测试
runConcurrently(Runnable, int, int) - Static method in class cloud.opencode.base.test.concurrent.ConcurrentTester
Run task concurrently 并发运行任务
runConcurrently(Consumer, int) - Static method in class cloud.opencode.base.test.concurrent.ConcurrentTester
Run task concurrently with index 带索引并发运行任务
runSingle(String, Runnable) - Static method in class cloud.opencode.base.test.benchmark.BenchmarkRunner
Creates and runs single benchmark.

S

satisfies(Consumer) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.ObjectAssertion
 
second() - Method in record class cloud.opencode.base.test.benchmark.Benchmark.ComparisonResult
Returns the value of the second record component.
secretKey() - Static method in class cloud.opencode.base.test.data.RandomData
Generates random secret key.
seed(long) - Method in class cloud.opencode.base.test.data.AutoFill.Builder
Sets the random seed for deterministic generation.
SensitiveDataGenerator - Class in cloud.opencode.base.test.data
Sensitive Data Generator - Generates test data that looks real but is fake 敏感数据生成器 - 生成看起来真实但实际是假的测试数据
sentence(int) - Static method in class cloud.opencode.base.test.data.Faker
Generates random sentence.
sequenceId(String) - Static method in class cloud.opencode.base.test.data.RandomData
Generates random sequence ID.
serverError() - Static method in class cloud.opencode.base.test.http.MockResponse
 
serverError(String) - Static method in class cloud.opencode.base.test.http.MockResponse
 
setAttribute(String, Object) - Method in class cloud.opencode.base.test.TestContext
Sets an attribute (metadata) in the context 在上下文中设置属性(元数据)
setup(Supplier) - Method in class cloud.opencode.base.test.fixture.TestFixture.Builder
Set the setup function 设置setup函数
setUp() - Method in class cloud.opencode.base.test.fixture.TestFixture
Set up the fixture 设置夹具
setVariable(String, Object) - Method in class cloud.opencode.base.test.TestContext
Sets a variable in the context 在上下文中设置变量
sha256() - Static method in class cloud.opencode.base.test.data.RandomData
Generates random SHA-256 hash.
sha512() - Static method in class cloud.opencode.base.test.data.RandomData
Generates random SHA-512 hash.
shortUuid() - Static method in class cloud.opencode.base.test.data.RandomData
Generates short UUID (first 8 characters).
shortUuid() - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
shuffle(List) - Static method in class cloud.opencode.base.test.OpenData
Shuffles list randomly 随机打乱列表
size() - Static method in class cloud.opencode.base.test.fixture.FixtureRegistry
Get fixture count 获取夹具数量
skipped(String, String) - Static method in record class cloud.opencode.base.test.report.TestReport.TestResult
 
SKIPPED - Enum constant in enum class cloud.opencode.base.test.report.TestReport.TestStatus
 
skippedTests() - Method in class cloud.opencode.base.test.report.TestReport
Alias for getSkippedCount()
SlowTest - Annotation Interface in cloud.opencode.base.test.annotation
Slow Test 慢速测试
SnapshotAssert - Class in cloud.opencode.base.test.assertion
Snapshot Assert - JSON snapshot assertion utility 快照断言 - JSON快照断言工具
SoftAssert - Class in cloud.opencode.base.test.assertion
Soft Assert - Collects assertion failures without throwing immediately 软断言 - 收集断言失败而不立即抛出
SoftAssert() - Constructor for class cloud.opencode.base.test.assertion.SoftAssert
Creates a new SoftAssert instance 创建新的SoftAssert实例
spy() - Static method in class cloud.opencode.base.test.OpenTest
 
Spy - Class in cloud.opencode.base.test.mock
Spy 间谍
Spy() - Constructor for class cloud.opencode.base.test.mock.Spy
 
Spy.Invocation - Record Class in cloud.opencode.base.test.mock
Invocation record 调用记录
start() - Static method in class cloud.opencode.base.test.http.TestHttpServer
 
start(int) - Static method in class cloud.opencode.base.test.http.TestHttpServer
 
startsWith(String) - Method in class cloud.opencode.base.test.assertion.OpenAssertions.StringAssertion
 
startsWith(String) - Method in class cloud.opencode.base.test.assertion.StringAssert
Asserts that string starts with prefix.
startsWith(String, String) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the string starts with the prefix 断言字符串以前缀开始
startsWith(String, String, String) - Method in class cloud.opencode.base.test.assertion.SoftAssert
Asserts that the string starts with the prefix with custom message 断言字符串以前缀开始(带自定义消息)
startTime() - Method in class cloud.opencode.base.test.TestContext
Gets the start time 获取开始时间
state() - Static method in class cloud.opencode.base.test.data.Faker
Generates random US state abbreviation.
status() - Method in record class cloud.opencode.base.test.report.TestReport.TestResult
Returns the value of the status record component.
status() - Method in class cloud.opencode.base.test.TestContext
Gets the test status 获取测试状态
statusCode() - Method in class cloud.opencode.base.test.http.MockResponse
 
stdDevMs() - Method in record class cloud.opencode.base.test.benchmark.BenchmarkResult
Gets the standard deviation in milliseconds.
streetAddress() - Static method in class cloud.opencode.base.test.data.Faker
Generates random street address.
string(int) - Static method in class cloud.opencode.base.test.data.DataGenerator
Generates random alphanumeric string.
StringAssert - Class in cloud.opencode.base.test.assertion
String Assert - Fluent assertions for strings 字符串断言 - 字符串的流式断言
StringAssertion(String) - Constructor for class cloud.opencode.base.test.assertion.OpenAssertions.StringAssertion
 
success() - Static method in interface cloud.opencode.base.test.assertion.AssertionResult
Creates a success result.
successCount() - Method in record class cloud.opencode.base.test.concurrent.ConcurrentTester.ConcurrentResult
Returns the value of the successCount record component.
successRate() - Method in class cloud.opencode.base.test.report.TestReport
Alias for getSuccessRate()
suiteName() - Method in class cloud.opencode.base.test.report.TestReport
Alias for getName()
summary() - Method in record class cloud.opencode.base.test.benchmark.BenchmarkResult
Returns a formatted summary string.

T

teardown(Consumer) - Method in class cloud.opencode.base.test.fixture.TestFixture.Builder
Set the teardown function 设置teardown函数
tearDown() - Method in class cloud.opencode.base.test.fixture.TestFixture
Tear down the fixture 拆除夹具
tearDownAll() - Static method in class cloud.opencode.base.test.fixture.FixtureRegistry
Tear down all fixtures 拆除所有夹具
testBankCard() - Static method in class cloud.opencode.base.test.data.SensitiveDataGenerator
Generates a test bank card number with valid Luhn checksum.
testBankCard(String) - Static method in class cloud.opencode.base.test.data.SensitiveDataGenerator
Generates a test bank card number with custom BIN.
testCases() - Method in class cloud.opencode.base.test.report.TestReport
Alias for getResults()
TestContext - Class in cloud.opencode.base.test
Test Context - ScopedValue-based Test Execution Context 测试上下文 - 基于 ScopedValue 的测试执行上下文
TestContext.FailureCallback - Interface in cloud.opencode.base.test
Failure callback functional interface 失败回调函数式接口
TestDataGenerator - Class in cloud.opencode.base.test.data
Test Data Generator 测试数据生成器
testEmail() - Static method in class cloud.opencode.base.test.data.SensitiveDataGenerator
Generates a test email address.
testEmail(String) - Static method in class cloud.opencode.base.test.data.SensitiveDataGenerator
Generates a test email address with specified domain.
TestErrorCode - Enum Class in cloud.opencode.base.test.exception
Test Error Code 测试错误码
TestException - Exception Class in cloud.opencode.base.test.exception
Test Exception - Base exception for test operations 测试异常 - 测试操作的基础异常
TestException(TestErrorCode) - Constructor for exception class cloud.opencode.base.test.exception.TestException
Create test exception with error code 使用错误码创建测试异常
TestException(TestErrorCode, String) - Constructor for exception class cloud.opencode.base.test.exception.TestException
Create test exception with error code and detail 使用错误码和详情创建测试异常
TestException(TestErrorCode, Throwable) - Constructor for exception class cloud.opencode.base.test.exception.TestException
Create test exception with error code and cause 使用错误码和原因创建测试异常
TestException(String) - Constructor for exception class cloud.opencode.base.test.exception.TestException
Create test exception with message 使用消息创建测试异常
TestException(String, Throwable) - Constructor for exception class cloud.opencode.base.test.exception.TestException
Create test exception with message and cause 使用消息和原因创建测试异常
TestFixture<T> - Class in cloud.opencode.base.test.fixture
Test Fixture 测试夹具
TestFixture(String, Supplier) - Constructor for class cloud.opencode.base.test.fixture.TestFixture
Create test fixture 创建测试夹具
TestFixture(String, Supplier, Consumer) - Constructor for class cloud.opencode.base.test.fixture.TestFixture
Create test fixture with teardown 创建带拆除的测试夹具
TestFixture.Builder<T> - Class in cloud.opencode.base.test.fixture
Builder for TestFixture TestFixture的构建器
TestHttpServer - Class in cloud.opencode.base.test.http
Test HTTP Server — Lightweight in-process HTTP server for unit testing.
TestHttpServer.WhenBuilder - Class in cloud.opencode.base.test.http
 
testIdCard() - Static method in class cloud.opencode.base.test.data.SensitiveDataGenerator
Generates a test 18-digit ID card number (fake region 999999).
testIdCard(int) - Static method in class cloud.opencode.base.test.data.SensitiveDataGenerator
Generates a test ID card with specified birth year.
testName() - Method in record class cloud.opencode.base.test.report.TestReport.TestResult
Returns the value of the testName record component.
testName() - Method in class cloud.opencode.base.test.TestContext
Gets the test name 获取测试名称
testPhone() - Static method in class cloud.opencode.base.test.data.SensitiveDataGenerator
Generates a test phone number (199 prefix, not assigned to real carriers).
testPhone(String) - Static method in class cloud.opencode.base.test.data.SensitiveDataGenerator
Generates a test phone number with custom prefix.
TestReport - Class in cloud.opencode.base.test.report
Test Report 测试报告
TestReport(String) - Constructor for class cloud.opencode.base.test.report.TestReport
Create test report 创建测试报告
TestReport.TestResult - Record Class in cloud.opencode.base.test.report
Test result 测试结果
TestReport.TestStatus - Enum Class in cloud.opencode.base.test.report
Test status 测试状态
TestReportFormatter - Class in cloud.opencode.base.test.report
Test Report Formatter 测试报告格式化器
TestResult(String, TestReport.TestStatus, Duration, Throwable, String) - Constructor for record class cloud.opencode.base.test.report.TestReport.TestResult
Creates an instance of a TestResult record class.
testSocialCreditCode() - Static method in class cloud.opencode.base.test.data.SensitiveDataGenerator
Generates a test unified social credit code.
that(RequestMatcher) - Method in class cloud.opencode.base.test.http.RequestVerification
Filters recorded requests by the given matcher.
thenAnswer(Function) - Method in class cloud.opencode.base.test.mock.MockInvocationHandler.Stubbing
Answers with function.
thenCallRealMethod() - Method in class cloud.opencode.base.test.mock.MockInvocationHandler.Stubbing
Calls real method (for partial mocks).
thenRespond(MockResponse) - Method in class cloud.opencode.base.test.http.TestHttpServer.WhenBuilder
 
thenReturn(Object) - Method in class cloud.opencode.base.test.mock.MockInvocationHandler.Stubbing
Returns specified value.
thenReturn(String, Object) - Method in class cloud.opencode.base.test.OpenMock.MockBuilder
Stubs method to return value 桩方法返回值
thenReturn(String, Object[], Object) - Method in class cloud.opencode.base.test.OpenMock.MockBuilder
Stubs method with specific args to return value 桩特定参数的方法返回值
thenThrow(Throwable) - Method in class cloud.opencode.base.test.mock.MockInvocationHandler.Stubbing
Throws specified exception.
threads() - Method in record class cloud.opencode.base.test.concurrent.ConcurrentTester.ConcurrentResult
Returns the value of the threads record component.
ThreadSafetyChecker - Class in cloud.opencode.base.test.concurrent
Thread Safety Checker 线程安全检查器
ThreadSafetyChecker.CheckResult - Record Class in cloud.opencode.base.test.concurrent
Check result 检查结果
throughput() - Method in record class cloud.opencode.base.test.concurrent.ConcurrentTester.ConcurrentResult
 
throughputPerSecond() - Method in record class cloud.opencode.base.test.benchmark.BenchmarkResult
Gets the throughput (operations per second).
ThrowableAssertion(Throwable) - Constructor for class cloud.opencode.base.test.assertion.OpenAssertions.ThrowableAssertion
 
time(Runnable) - Static method in class cloud.opencode.base.test.benchmark.Benchmark
Measure execution time of runnable 测量可运行对象的执行时间
time(Runnable) - Static method in class cloud.opencode.base.test.OpenTest
 
time(Supplier) - Static method in class cloud.opencode.base.test.benchmark.Benchmark
Measure execution time with result 测量带结果的执行时间
time(Supplier) - Static method in class cloud.opencode.base.test.OpenTest
 
TimedResult(T, Duration) - Constructor for record class cloud.opencode.base.test.benchmark.Benchmark.TimedResult
Creates an instance of a TimedResult record class.
timeout(long, long) - Static method in exception class cloud.opencode.base.test.exception.AssertionException
Creates exception for timeout.
timeout(String, long) - Static method in exception class cloud.opencode.base.test.exception.BenchmarkException
Creates exception for benchmark timeout.
timeout(Duration) - Method in class cloud.opencode.base.test.benchmark.BenchmarkRunner
Sets timeout for each benchmark.
timeout(Duration) - Method in class cloud.opencode.base.test.wait.Poller
Set timeout 设置超时时间
TIMEOUT - Enum constant in enum class cloud.opencode.base.test.exception.TestErrorCode
 
timesNanos() - Method in record class cloud.opencode.base.test.benchmark.BenchmarkResult
Returns the value of the timesNanos record component.
timestamp() - Method in record class cloud.opencode.base.test.mock.Invocation
Returns the value of the timestamp record component.
timestamp() - Method in class cloud.opencode.base.test.report.TestReport
Alias for Instant.now()
TimingAssert - Class in cloud.opencode.base.test.assertion
Timing Assert - Performance timing assertions 计时断言 - 性能计时断言
toHtml(TestReport) - Static method in class cloud.opencode.base.test.report.ReportGenerator
Generates HTML report.
toJson(TestReport) - Static method in class cloud.opencode.base.test.report.ReportGenerator
Generates JSON report.
toJUnitXml(TestReport) - Static method in class cloud.opencode.base.test.report.TestReportFormatter
Format as JUnit XML 格式化为JUnit XML
toMarkdown(TestReport) - Static method in class cloud.opencode.base.test.report.TestReportFormatter
Format as markdown 格式化为Markdown
toString() - Method in record class cloud.opencode.base.test.assertion.AssertionResult.Failure
Returns a string representation of this record class.
toString() - Method in class cloud.opencode.base.test.assertion.AssertionResult.Success
 
toString() - Method in class cloud.opencode.base.test.assertion.SoftAssert
Returns a string representation of this SoftAssert 返回此SoftAssert的字符串表示
toString() - Method in class cloud.opencode.base.test.benchmark.Benchmark.BenchmarkResult
 
toString() - Method in record class cloud.opencode.base.test.benchmark.Benchmark.ComparisonResult
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.test.benchmark.Benchmark.TimedResult
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.test.benchmark.BenchmarkResult
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.test.concurrent.ConcurrentTester.ConcurrentResult
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.test.concurrent.ThreadSafetyChecker.CheckResult
Returns a string representation of this record class.
toString() - Method in enum class cloud.opencode.base.test.exception.TestErrorCode
 
toString() - Method in class cloud.opencode.base.test.http.MockResponse
 
toString() - Method in record class cloud.opencode.base.test.http.RecordedRequest
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.test.mock.Invocation
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.test.mock.Spy.Invocation
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.test.OpenMock.Invocation
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.test.report.TestReport.TestResult
Returns a string representation of this record class.
toString() - Method in class cloud.opencode.base.test.report.TestReport
 
toString() - Method in class cloud.opencode.base.test.TestContext
 
totalDuration() - Method in record class cloud.opencode.base.test.concurrent.ConcurrentTester.ConcurrentResult
Returns the value of the totalDuration record component.
totalIterations() - Method in record class cloud.opencode.base.test.concurrent.ConcurrentTester.ConcurrentResult
 
totalMs() - Method in record class cloud.opencode.base.test.benchmark.BenchmarkResult
Gets the total time in milliseconds.
totalTests() - Method in class cloud.opencode.base.test.report.TestReport
Alias for getTotalCount()
toText(TestReport) - Static method in class cloud.opencode.base.test.report.ReportGenerator
Generates text report.
toText(TestReport) - Static method in class cloud.opencode.base.test.report.TestReportFormatter
Format as plain text 格式化为纯文本
transactionId() - Static method in class cloud.opencode.base.test.data.RandomData
Generates random transaction ID.

U

UNEXPECTED_EXCEPTION - Enum constant in enum class cloud.opencode.base.test.exception.TestErrorCode
 
unregister(String) - Static method in class cloud.opencode.base.test.fixture.FixtureRegistry
Unregister a fixture 取消注册夹具
until(BooleanSupplier) - Method in class cloud.opencode.base.test.wait.Poller
Wait until condition is true 等待直到条件为真
until(BooleanSupplier) - Static method in class cloud.opencode.base.test.wait.Wait
Wait until condition is true with default timeout 使用默认超时等待直到条件为真
until(BooleanSupplier, Duration) - Static method in class cloud.opencode.base.test.wait.Wait
Wait until condition is true 等待直到条件为真
until(BooleanSupplier, Duration, Duration) - Static method in class cloud.opencode.base.test.wait.Wait
Wait until condition is true with poll interval 等待直到条件为真,带轮询间隔
until(Supplier, Predicate) - Method in class cloud.opencode.base.test.wait.Poller
Wait until value satisfies predicate 等待直到值满足谓词
untilEquals(Supplier, T) - Method in class cloud.opencode.base.test.wait.Poller
Wait until value equals expected 等待直到值等于期望值
untilNotNull(Supplier) - Method in class cloud.opencode.base.test.wait.Poller
Wait until value is not null 等待直到值非空
untilNotNull(Supplier, Duration) - Static method in class cloud.opencode.base.test.wait.Wait
Wait until value is not null 等待直到值非空
untilNotNull(Supplier, Duration, Duration) - Static method in class cloud.opencode.base.test.wait.Wait
Wait until value is not null with poll interval 等待直到值非空,带轮询间隔
url() - Static method in class cloud.opencode.base.test.data.Faker
Generates random URL.
url(String) - Method in class cloud.opencode.base.test.http.TestHttpServer
 
username() - Static method in class cloud.opencode.base.test.data.Faker
Generates random username.
uuid() - Static method in class cloud.opencode.base.test.data.RandomData
Generates random UUID.
uuid() - Static method in class cloud.opencode.base.test.data.TestDataGenerator
 
uuid() - Static method in class cloud.opencode.base.test.OpenData
Generates random UUID 生成随机UUID
uuid() - Static method in class cloud.opencode.base.test.OpenTest
 

V

value() - Element in annotation interface cloud.opencode.base.test.annotation.FastTest
Description of the test 测试描述
value() - Element in annotation interface cloud.opencode.base.test.annotation.IntegrationTest
Description of the test 测试描述
value() - Element in annotation interface cloud.opencode.base.test.annotation.Repeat
Number of times to repeat 重复次数
value() - Element in annotation interface cloud.opencode.base.test.annotation.SlowTest
Description of the test 测试描述
VALUE_MISMATCH - Enum constant in enum class cloud.opencode.base.test.exception.TestErrorCode
 
valueOf(String) - Static method in enum class cloud.opencode.base.test.exception.TestErrorCode
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class cloud.opencode.base.test.report.TestReport.TestStatus
Returns the enum constant of this class with the specified name.
values() - Static method in enum class cloud.opencode.base.test.exception.TestErrorCode
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class cloud.opencode.base.test.report.TestReport.TestStatus
Returns an array containing the constants of this enum class, in the order they are declared.
variables() - Method in class cloud.opencode.base.test.TestContext
Gets all variables as unmodifiable map 获取所有变量(不可修改的映射)
verbose() - Method in class cloud.opencode.base.test.benchmark.BenchmarkRunner
Enables verbose output.
verificationFailed(String, int) - Static method in exception class cloud.opencode.base.test.exception.MockException
Creates exception for verification failure.
verify() - Method in class cloud.opencode.base.test.http.TestHttpServer
Creates a request verification builder for asserting recorded requests.
verify(Object) - Static method in class cloud.opencode.base.test.mock.MockProxy
Verifies that a method was called on the mock.
verify(Object, int) - Static method in class cloud.opencode.base.test.mock.MockProxy
Verifies that a method was called exactly n times.
verify(T) - Static method in class cloud.opencode.base.test.OpenMock
Gets verification wrapper for the mock 获取模拟的验证包装器

W

Wait - Class in cloud.opencode.base.test.wait
Wait 等待
warmup(int) - Method in class cloud.opencode.base.test.benchmark.BenchmarkRunner
Sets warmup iterations.
wasCalled() - Method in class cloud.opencode.base.test.http.RequestVerification
Asserts that the matched requests were called at least once.
wasCalled(int) - Method in class cloud.opencode.base.test.http.RequestVerification
Asserts that the matched requests were called exactly the specified number of times.
wasCalled(String) - Method in class cloud.opencode.base.test.mock.Spy
Verify method was called 验证方法被调用
wasCalledAtLeast(int) - Method in class cloud.opencode.base.test.http.RequestVerification
Asserts that the matched requests were called at least the specified number of times.
wasCalledAtMost(int) - Method in class cloud.opencode.base.test.http.RequestVerification
Asserts that the matched requests were called at most the specified number of times.
wasCalledTimes(String, int) - Method in class cloud.opencode.base.test.mock.Spy
Verify method was called n times 验证方法被调用n次
wasInvoked(String) - Method in class cloud.opencode.base.test.OpenMock.Verification
Verifies method was invoked 验证方法被调用
wasInvoked(String, int) - Method in class cloud.opencode.base.test.OpenMock.Verification
Verifies method was invoked exactly N times 验证方法被调用恰好N次
wasNeverCalled() - Method in class cloud.opencode.base.test.http.RequestVerification
Asserts that no matching requests were recorded.
wasNeverInvoked(String) - Method in class cloud.opencode.base.test.OpenMock.Verification
Verifies method was never invoked 验证方法从未被调用
when(RequestMatcher) - Method in class cloud.opencode.base.test.http.TestHttpServer
 
when(Class) - Static method in class cloud.opencode.base.test.OpenMock
Creates a mock builder for fluent configuration 创建用于流畅配置的模拟构建器
when(String, Object) - Method in class cloud.opencode.base.test.mock.MockBuilder
When method called, return value 当方法调用时,返回值
when(String, Object...) - Method in class cloud.opencode.base.test.mock.MockInvocationHandler
Sets up stubbing for method.
when(String, Function) - Method in class cloud.opencode.base.test.mock.MockBuilder
When method called, execute function 当方法调用时,执行函数
with(String, Object) - Method in class cloud.opencode.base.test.data.AutoFill.Builder
Overrides a specific field with the given value.
withBody(String) - Method in class cloud.opencode.base.test.http.MockResponse
 
withBody(String) - Method in class cloud.opencode.base.test.http.RequestVerification
Asserts that all matched requests have a body equal to the expected body.
withBodyContaining(String) - Method in class cloud.opencode.base.test.http.RequestVerification
Asserts that all matched requests have a body containing the expected substring.
withHeader(String, String) - Method in class cloud.opencode.base.test.http.MockResponse
 
withHeader(String, String) - Method in class cloud.opencode.base.test.http.RequestVerification
Asserts that all matched requests have the specified header with the expected value.
withRandomSeed() - Static method in class cloud.opencode.base.test.data.RepeatableRandom
Creates a repeatable random with a random seed.
withSeed(long) - Static method in class cloud.opencode.base.test.data.RepeatableRandom
Creates a repeatable random with specified seed.
withSeed(long, Runnable) - Static method in class cloud.opencode.base.test.OpenData
Executes with seeded random for reproducibility 使用种子随机执行以实现可重复性
withSeed(long, Supplier) - Static method in class cloud.opencode.base.test.OpenData
Executes with seeded random and returns result 使用种子随机执行并返回结果
withStatus(int) - Static method in class cloud.opencode.base.test.http.MockResponse
 
withStatus(int, String) - Static method in class cloud.opencode.base.test.http.MockResponse
 
word() - Static method in class cloud.opencode.base.test.data.Faker
Generates random word.
writeHtml(TestReport, Writer) - Static method in class cloud.opencode.base.test.report.ReportGenerator
Writes HTML report to writer.
writeHtml(TestReport, Path) - Static method in class cloud.opencode.base.test.report.ReportGenerator
Writes HTML report to file.
writeJson(TestReport, Path) - Static method in class cloud.opencode.base.test.report.ReportGenerator
Writes JSON report to file.
writeText(TestReport, Writer) - Static method in class cloud.opencode.base.test.report.ReportGenerator
Writes text report to writer.

Z

zipCode() - Static method in class cloud.opencode.base.test.data.Faker
Generates random ZIP code.
A B C D E F G H I J L M N O P Q R S T U V W Z 
All Classes and Interfaces|All Packages|Serialized Form