pchudzik / springmock

alternative spring mocking infrastructure
https://blog.pchudzik.com/201707/springmock-v1/
MIT License
22 stars 4 forks source link

allow to create mocks without injecting them into specification #3

Closed pchudzik closed 7 years ago

pchudzik commented 7 years ago

Like with @MockBean from spring:

@Configuration
@MockBean(Service.class)
static class Config {}

Will create bean in the scope but will not force you to inject it into specification

pchudzik commented 7 years ago

Mocks injection into configuration classes is done.

TODO: class level annotation implementation

pchudzik commented 7 years ago

class level mocks are supported but without configuration @Imported classes are ignored