diff options
author | Andrey Somov <public.somov@gmail.com> | 2018-02-06 21:34:12 +0100 |
---|---|---|
committer | Andrey Somov <public.somov@gmail.com> | 2018-02-06 21:34:12 +0100 |
commit | db64a63abefe8c502b2cf209debdd377d6961155 (patch) | |
tree | 0177de1f869a7c3711a09c96ad3cde071bd5b778 /src/test/java/org/yaml/snakeyaml/error/MarkedYAMLExceptionTest.java | |
parent | c0dd2da0404fbbf0d3020b7ccf82122a03bddd82 (diff) | |
download | snakeyaml-db64a63abefe8c502b2cf209debdd377d6961155.tar.gz |
Refactor: Mark does not use index
Diffstat (limited to 'src/test/java/org/yaml/snakeyaml/error/MarkedYAMLExceptionTest.java')
-rw-r--r-- | src/test/java/org/yaml/snakeyaml/error/MarkedYAMLExceptionTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/java/org/yaml/snakeyaml/error/MarkedYAMLExceptionTest.java b/src/test/java/org/yaml/snakeyaml/error/MarkedYAMLExceptionTest.java index aa96689d..8a6f7ec1 100644 --- a/src/test/java/org/yaml/snakeyaml/error/MarkedYAMLExceptionTest.java +++ b/src/test/java/org/yaml/snakeyaml/error/MarkedYAMLExceptionTest.java @@ -20,7 +20,7 @@ import junit.framework.TestCase; public class MarkedYAMLExceptionTest extends TestCase { public void testToString1() { - Mark mark = new Mark("test1", 0, 0, 0, "*The first line.\nThe last line.".toCharArray(), 0); + Mark mark = new Mark("test1", 0, 0, "*The first line.\nThe last line.".toCharArray(), 0); MarkedYAMLException exception = new MarkedYAMLException(null, null, "Error happened", mark); assertTrue(exception.toString().contains("Error happened")); assertTrue(exception.toString().contains("The first line")); @@ -28,7 +28,7 @@ public class MarkedYAMLExceptionTest extends TestCase { } public void testToString2() { - Mark mark = new Mark("search", 0, 0, 0, "*The first line.\nThe last line.".toCharArray(), 0); + Mark mark = new Mark("search", 0, 0, "*The first line.\nThe last line.".toCharArray(), 0); MarkedYAMLException exception = new MarkedYAMLException("See http://www.google.com", mark, "Error2 happened", mark); assertTrue(exception.toString().contains("Error2 happened")); @@ -43,14 +43,14 @@ public class MarkedYAMLExceptionTest extends TestCase { } public void testToString4() { - Mark mark = new Mark("search", 0, 0, 0, "*The first line.\nThe last line.".toCharArray(), 0); + Mark mark = new Mark("search", 0, 0, "*The first line.\nThe last line.".toCharArray(), 0); MarkedYAMLException exception = new MarkedYAMLException("See http://www.google.com", mark, null, null, null, null); assertTrue(exception.toString().contains("first line")); } public void testGetters() { - Mark mark = new Mark("search", 0, 0, 0, "*The first line.\nThe last line.".toCharArray(), 0); + Mark mark = new Mark("search", 0, 0, "*The first line.\nThe last line.".toCharArray(), 0); MarkedYAMLException exception = new MarkedYAMLException("See http://www.google.com", mark, "Error2 happened", mark); assertEquals("See http://www.google.com", exception.getContext()); |