source: josm/trunk/test/unit/org/openstreetmap/josm/gui/layer/LayerPositionStrategyTest.java

Last change on this file was 17275, checked in by Don-vip, 3 years ago

see #16567 - upgrade almost all tests to JUnit 5, except those depending on WiremockRule

See https://github.com/tomakehurst/wiremock/issues/684

  • Property svn:eol-style set to native
File size: 571 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.layer;
3
4import static org.junit.jupiter.api.Assertions.assertEquals;
5
6import org.junit.jupiter.api.Test;
7
8/**
9 * Test the {@link LayerPositionStrategy} class.
10 */
11class LayerPositionStrategyTest {
12
13 /**
14 * Test of robustness against null manager.
15 */
16 @Test
17 void testNullManager() {
18 assertEquals(0, LayerPositionStrategy.inFrontOfFirst(l -> true).getPosition(null));
19 assertEquals(0, LayerPositionStrategy.afterLast(l -> true).getPosition(null));
20 }
21}
Note: See TracBrowser for help on using the repository browser.