我用的是jersey 2我的问题是,我如何才能测试它,而不必运行它所连接的run服务?private WebTarget service;
* Get the base {@link Client} and {@link WebTarget}@PostConstruct
public void base(
public void shouldAuthorize(){ Mockito.when(AppConfig.getExternalService().getUrl()).thenReturn("123456");
Assertions.assertEquals(externalService.isAuthorizeappConfig.getExternalService().
我在一个Maven项目中使用了JUnit 4.5和Mockito1.7。org.mockito.exceptions.misusing.InvalidUseOfMatchersExceptionSomewhere before this line you probably misused Mockito argument matchers.Her