mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Preparing the ground for rewriting Preferences GUI code (and hopefully fixing the tiny-pref-window bug on macosx)
This commit is contained in:
@ -43,18 +43,18 @@ public class DefaultTargetTest extends AbstractWithPreferencesTest {
|
||||
|
||||
@Before
|
||||
public void saveBoardFromPreferences() throws Exception {
|
||||
oldBoardID = Preferences.get("board");
|
||||
oldBoardID = PreferencesData.get("board");
|
||||
}
|
||||
|
||||
@After
|
||||
public void restoreBoardIntoPreferences() throws Exception {
|
||||
Preferences.set("board", oldBoardID);
|
||||
Preferences.save();
|
||||
PreferencesData.set("board", oldBoardID);
|
||||
PreferencesData.save();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDefaultTarget() throws Exception {
|
||||
Preferences.set("board", "unreal_board");
|
||||
PreferencesData.set("board", "unreal_board");
|
||||
|
||||
// should not raise an exception
|
||||
new Base(new String[0]);
|
||||
|
Reference in New Issue
Block a user