|
Last change
on this file since 10123 was 10050, checked in by Don-vip, 10 years ago |
|
add more unit tests
|
-
Property svn:eol-style
set to
native
|
|
File size:
969 bytes
|
| Line | |
|---|
| 1 | // License: GPL. For details, see LICENSE file.
|
|---|
| 2 | package org.openstreetmap.josm.plugins;
|
|---|
| 3 |
|
|---|
| 4 | import static org.junit.Assert.assertEquals;
|
|---|
| 5 |
|
|---|
| 6 | import org.junit.BeforeClass;
|
|---|
| 7 | import org.junit.Test;
|
|---|
| 8 | import org.openstreetmap.josm.JOSMFixture;
|
|---|
| 9 |
|
|---|
| 10 | /**
|
|---|
| 11 | * Unit tests of {@link PluginListParseException} class.
|
|---|
| 12 | */
|
|---|
| 13 | public class PluginListParseExceptionTest {
|
|---|
| 14 |
|
|---|
| 15 | /**
|
|---|
| 16 | * Setup test.
|
|---|
| 17 | */
|
|---|
| 18 | @BeforeClass
|
|---|
| 19 | public static void setUp() {
|
|---|
| 20 | JOSMFixture.createUnitTestFixture().init();
|
|---|
| 21 | }
|
|---|
| 22 |
|
|---|
| 23 | /**
|
|---|
| 24 | * Unit test of {@link PluginListParseException#PluginListParseException}.
|
|---|
| 25 | */
|
|---|
| 26 | @Test
|
|---|
| 27 | public void testPluginListParseException() {
|
|---|
| 28 | NullPointerException npe = new NullPointerException();
|
|---|
| 29 | PluginListParseException ex = new PluginListParseException(npe);
|
|---|
| 30 | assertEquals(npe, ex.getCause());
|
|---|
| 31 | ex = new PluginListParseException("bar", npe);
|
|---|
| 32 | assertEquals("bar", ex.getMessage());
|
|---|
| 33 | assertEquals(npe, ex.getCause());
|
|---|
| 34 | }
|
|---|
| 35 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.