OPENBUS-3151 Adicionado um cleanup para que os itens de preferences sejam...

OPENBUS-3151 Adicionado um cleanup para que os itens de preferences sejam limpos do ambiente do usuário ao serem executados
parent 44052bef
package busexplorer.utils.preferences;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
......@@ -18,6 +19,11 @@ public class ApplicationPreferencesTest {
preferences = new ApplicationPreferences(APPNAME);
}
@AfterAll
public static void cleanup() {
preferences.clear();
}
@Test
public void testWriteReadRoot() {
preferences.write("nome1", "valor1");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment