Struct stubr::Stubr[][src]

pub struct Stubr { /* fields omitted */ }
Expand description

Allows running a Wiremock mock server from Wiremock stubs. Delegates runtime to wiremock-rs.

Implementations

Runs a mock server. The server is unbinded when the instance is dropped. Use this in a test context.

  • stubs - folder or file containing the stubs

Runs a mock server in a blocking way. The server is unbinded when the instance is dropped. Use this in a test context.

  • stubs - folder or file containing the stubs

Runs a mock server with some configuration. The server is unbinded when the instance is dropped. Use this in a test context.

  • stubs - folder or file containing the stubs
  • config - global server configuration

Runs a mock server in a blocking way with some configuration. The server is unbinded when the instance is dropped. Use this in a test context.

  • stubs - folder or file containing the stubs
  • config - global server configuration

Runs stubs of a remote producer app.

  • name - producer name

Runs stubs of a remote producer app.

  • name - producer name

Runs stubs of a remote producer app.

  • name - producer name

Runs stubs of a remote producer app.

  • name - producer name

Get running server address

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.