Package cloud.filibuster.junit.statem
Class CompositeFaultSpecification.Builder
- java.lang.Object
-
- cloud.filibuster.junit.statem.CompositeFaultSpecification.Builder
-
- Enclosing class:
- CompositeFaultSpecification
public static class CompositeFaultSpecification.Builder extends java.lang.Object
Builder for creation of aCompositeFaultSpecification
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompositeFaultSpecification
build()
Build aCompositeFaultSpecification
.CompositeFaultSpecification.Builder
faultOnRequest(io.grpc.MethodDescriptor<? extends com.google.protobuf.GeneratedMessageV3,? extends com.google.protobuf.GeneratedMessageV3> methodDescriptor, com.google.protobuf.GeneratedMessageV3 request)
Add a specific request fault to theCompositeFaultSpecification
.CompositeFaultSpecification.Builder
faultOnRequest(io.grpc.MethodDescriptor<? extends com.google.protobuf.GeneratedMessageV3,? extends com.google.protobuf.GeneratedMessageV3> methodDescriptor, io.grpc.Status.Code code, com.google.protobuf.GeneratedMessageV3 request)
Add a specific request fault to theCompositeFaultSpecification
.
-
-
-
Method Detail
-
faultOnRequest
@CanIgnoreReturnValue public CompositeFaultSpecification.Builder faultOnRequest(io.grpc.MethodDescriptor<? extends com.google.protobuf.GeneratedMessageV3,? extends com.google.protobuf.GeneratedMessageV3> methodDescriptor, com.google.protobuf.GeneratedMessageV3 request)
Add a specific request fault to theCompositeFaultSpecification
.- Parameters:
methodDescriptor
- a GRPC method descriptorrequest
- the request- Returns:
CompositeFaultSpecification.Builder
-
faultOnRequest
@CanIgnoreReturnValue public CompositeFaultSpecification.Builder faultOnRequest(io.grpc.MethodDescriptor<? extends com.google.protobuf.GeneratedMessageV3,? extends com.google.protobuf.GeneratedMessageV3> methodDescriptor, io.grpc.Status.Code code, com.google.protobuf.GeneratedMessageV3 request)
Add a specific request fault to theCompositeFaultSpecification
.- Parameters:
methodDescriptor
- a GRPC method descriptorcode
- the injected faults status coderequest
- the request- Returns:
CompositeFaultSpecification.Builder
-
build
public CompositeFaultSpecification build()
Build aCompositeFaultSpecification
.- Returns:
CompositeFaultSpecification
-
-