- Timestamp:
- 2020-10-28T23:52:47+01:00 (4 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/actions/ExitActionTest.java
r17276 r17277 3 3 4 4 import static org.junit.jupiter.api.Assertions.assertTrue; 5 6 import java.awt.GraphicsEnvironment; 5 7 6 8 import org.junit.jupiter.api.Test; … … 86 88 } 87 89 }; 88 new MockUp<SaveLayersDialog>() { 89 @Mock 90 private void closeDialog(Invocation invocation) { 91 saveLayersDialogCloseDialogCalled[0] = true; 92 } 93 }; 90 if (!GraphicsEnvironment.isHeadless()) { 91 new MockUp<SaveLayersDialog>() { 92 @Mock 93 private void closeDialog(Invocation invocation) { 94 saveLayersDialogCloseDialogCalled[0] = true; 95 } 96 }; 97 } 94 98 95 99 // No layer … … 105 109 assertTrue(imageProviderShutdownCalledNowTrue[0]); 106 110 assertTrue(jcsCacheManagerShutdownCalled[0]); 107 assertTrue(saveLayersDialogCloseDialogCalled[0]); 111 if (!GraphicsEnvironment.isHeadless()) { 112 assertTrue(saveLayersDialogCloseDialogCalled[0]); 113 } 108 114 } 109 115 } -
trunk/test/unit/org/openstreetmap/josm/data/osm/search/SearchCompilerTest.java
r17275 r17277 604 604 TaggingPresets.readFromPreferences(); 605 605 606 assertThrows( IllegalArgumentException.class, () -> SearchCompiler.compile(settings));606 assertThrows(SearchParseError.class, () -> SearchCompiler.compile(settings)); 607 607 } 608 608
Note:
See TracChangeset
for help on using the changeset viewer.