Skip to content

Commit 17715d4

Browse files
committed
format
1 parent 9ab78cc commit 17715d4

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/test/java/io/fusionauth/http/FormDataTest.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,17 @@ public Builder(String scheme) {
199199
this.scheme = scheme;
200200
}
201201

202+
public Builder assertOptionalExceptionOnWrite(Class<? extends Exception> clazz) {
203+
// Note that this assertion really depends upon the system the test is run on, the size of the request, and the amount of data that can be cached.
204+
// - So this is an optional assertion - if exception is not null, then we should be able to assert some attributes.
205+
// - With the larger sizes this exception is mostly always thrown when running tests locally, but in GHA, it doesn't always occur.
206+
if (thrownOnWrite != null) {
207+
assertEquals(thrownOnWrite.getClass(), clazz);
208+
}
209+
210+
return this;
211+
}
212+
202213
public Builder expectNoExceptionOnWrite() {
203214
assertNull(thrownOnWrite);
204215
return this;
@@ -310,17 +321,6 @@ public Builder expectResponse(String response) throws Exception {
310321
return this;
311322
}
312323

313-
public Builder assertOptionalExceptionOnWrite(Class<? extends Exception> clazz) {
314-
// Note that this assertion really depends upon the system the test is run on, the size of the request, and the amount of data that can be cached.
315-
// - So this is an optional assertion - if exception is not null, then we should be able to assert some attributes.
316-
// - With the larger sizes this exception is mostly always thrown when running tests locally, but in GHA, it doesn't always occur.
317-
if (thrownOnWrite != null) {
318-
assertEquals(thrownOnWrite.getClass(), clazz);
319-
}
320-
321-
return this;
322-
}
323-
324324
public Builder withBodyParameterCount(int bodyParameterCount) {
325325
this.bodyParameterCount = bodyParameterCount;
326326
return this;

0 commit comments

Comments
 (0)