mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
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:
parent
bcc7216c9e
commit
2f7f14670c
@ -33,7 +33,7 @@ import static bisq.apitest.config.BisqAppConfig.alicedaemon;
|
|||||||
import static java.lang.String.format;
|
import static java.lang.String.format;
|
||||||
import static java.lang.System.getProperty;
|
import static java.lang.System.getProperty;
|
||||||
import static java.nio.charset.StandardCharsets.UTF_8;
|
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_",
|
tmpJsonForm = File.createTempFile("temp_acct_form_",
|
||||||
".json",
|
".json",
|
||||||
Paths.get(getProperty("java.io.tmpdir")).toFile());
|
Paths.get(getProperty("java.io.tmpdir")).toFile());
|
||||||
tmpJsonForm.deleteOnExit();
|
|
||||||
JsonWriter writer = new JsonWriter(new OutputStreamWriter(new FileOutputStream(tmpJsonForm), UTF_8));
|
JsonWriter writer = new JsonWriter(new OutputStreamWriter(new FileOutputStream(tmpJsonForm), UTF_8));
|
||||||
writer.beginObject();
|
writer.beginObject();
|
||||||
|
|
||||||
@ -199,6 +198,7 @@ public class AbstractPaymentAccountTest extends MethodTest {
|
|||||||
log.error("", ex);
|
log.error("", ex);
|
||||||
fail(format("Could not write json file from form entries %s", COMPLETED_FORM_MAP));
|
fail(format("Could not write json file from form entries %s", COMPLETED_FORM_MAP));
|
||||||
}
|
}
|
||||||
|
tmpJsonForm.deleteOnExit();
|
||||||
return tmpJsonForm;
|
return tmpJsonForm;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user