mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 08:21:21 +00:00
Use consistent templating for all tests
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package org.kohsuke.github.extras;
|
||||
|
||||
import com.github.tomakehurst.wiremock.core.WireMockConfiguration;
|
||||
import com.github.tomakehurst.wiremock.extension.responsetemplating.ResponseTemplateTransformer;
|
||||
import com.squareup.okhttp.Cache;
|
||||
import com.squareup.okhttp.OkHttpClient;
|
||||
import com.squareup.okhttp.OkUrlFactory;
|
||||
@@ -36,8 +35,7 @@ public class GitHubCachingTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
@Override
|
||||
protected WireMockConfiguration getWireMockOptions() {
|
||||
return super.getWireMockOptions()
|
||||
.extensions(ResponseTemplateTransformer.builder().global(true).maxCacheEntries(0L).build());
|
||||
return super.getWireMockOptions().extensions(templating.newResponseTransformer());
|
||||
}
|
||||
|
||||
@Before
|
||||
|
||||
Reference in New Issue
Block a user