This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.springframework.transaction.TransactionException; | |
import org.springframework.transaction.support.SimpleTransactionStatus; | |
import org.springframework.transaction.support.TransactionCallback; | |
import org.springframework.transaction.support.TransactionTemplate; | |
import static org.mockito.Mockito.spy; | |
public class FakeTransactionTemplate extends TransactionTemplate { | |
public static FakeTransactionTemplate spied() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make sure to install CHERE package | |
"C:\cygwin64\bin\env.exe" CHERE_INVOKING=1 /bin/bash -l |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
@ImportResource("classpath:springmvc-resteasy.xml") | |
public class RestClientConfiguration { | |
@Inject | |
private Environment environment; | |
@Bean | |
public HttpClient httpClient() { | |
PoolingHttpClientConnectionManager connectionManager = new PoolingHttpClientConnectionManager(); |