Replace junit with jupiter asserts

Don't mix junit and jupter apis, apitest should only be using
jupiter.  Also moved a file.deleteOnExit statement within the
method that created the file.
This commit is contained in:
ghubstan 2020-12-28 14:32:16 -03:00
parent bcc7216c9e
commit 2f7f14670c
No known key found for this signature in database
GPG Key ID: E35592D6800A861E

View File

@ -33,7 +33,7 @@ import static bisq.apitest.config.BisqAppConfig.alicedaemon;
import static java.lang.String.format;
import static java.lang.System.getProperty;
import static java.nio.charset.StandardCharsets.UTF_8;
import static org.junit.Assert.*;
import static org.junit.jupiter.api.Assertions.*;
@ -176,7 +176,6 @@ public class AbstractPaymentAccountTest extends MethodTest {
tmpJsonForm = File.createTempFile("temp_acct_form_",
".json",
Paths.get(getProperty("java.io.tmpdir")).toFile());
tmpJsonForm.deleteOnExit();
JsonWriter writer = new JsonWriter(new OutputStreamWriter(new FileOutputStream(tmpJsonForm), UTF_8));
writer.beginObject();
@ -199,6 +198,7 @@ public class AbstractPaymentAccountTest extends MethodTest {
log.error("", ex);
fail(format("Could not write json file from form entries %s", COMPLETED_FORM_MAP));
}
tmpJsonForm.deleteOnExit();
return tmpJsonForm;
}
}