Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Commit 289b9de

Browse files
committed
Merge branch 'develop'
2 parents f95ef21 + 2a26f77 commit 289b9de

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/itest/java/com/sybit/airtable/mock/WireMockBaseTest.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,17 @@
2424
/**
2525
* Base Class to test using WireMock.
2626
*
27-
* Config files for the requests are stored at
28-
* 'src/test/resources/__files' and 'src/test/resources/mappings'.
27+
* Config files for the requests are stored at 'src/test/resources/__files' and
28+
* 'src/test/resources/mappings'.
2929
*/
3030
public class WireMockBaseTest {
3131

32+
private static WireMockServer wireMockServer;
33+
private static WiremockProp prop;
34+
35+
protected static Airtable airtable = new Airtable();
36+
protected static Base base;
37+
3238
private class WiremockProp {
3339

3440
private boolean recording;
@@ -128,20 +134,15 @@ public void setServerPort(int aServerPort) {
128134
}
129135
};
130136

131-
private static WireMockServer wireMockServer;
132-
private static WiremockProp prop;
133-
134-
protected static Airtable airtable = new Airtable();
135-
protected static Base base;
136-
137137
@Before
138138
public void setUp() throws AirtableException {
139-
139+
140140
airtable.configure();
141141
airtable.setProxy("127.0.0.1");
142142
airtable.setEndpointUrl("http://localhost:8080");
143143
base = airtable.base("appTtHA5PfJnVfjdu");
144-
144+
145+
prop = new WiremockProp();
145146
prop.setRecording(false);
146147
prop.setCleanDirectorys(false);
147148
prop.setProxyBase("192.168.1.254");
@@ -223,4 +224,3 @@ public static void cleanExistingRecords() {
223224
}
224225

225226
}
226-

0 commit comments

Comments
 (0)