From 88aad76a0e54b4a8757bbc9ea45fec8f70baa832 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Fri, 05 Oct 2012 08:16:11 -0400 Subject: [PATCH] Catch all exceptions from MarkdownPapers and rethrow as ParseException (issue 142) --- tests/com/gitblit/tests/GitBlitTest.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/com/gitblit/tests/GitBlitTest.java b/tests/com/gitblit/tests/GitBlitTest.java index 00b5854..418f938 100644 --- a/tests/com/gitblit/tests/GitBlitTest.java +++ b/tests/com/gitblit/tests/GitBlitTest.java @@ -17,8 +17,8 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertTrue; import java.util.List; @@ -43,7 +43,7 @@ RepositoryModel model = GitBlit.self().getRepositoryModel( GitBlitSuite.getHelloworldRepository().getDirectory().getName()); assertTrue("Helloworld model is null!", model != null); - assertEquals(GitBlitSuite.getHelloworldRepository().getDirectory().getName(), model.toString()); + assertEquals(GitBlitSuite.getHelloworldRepository().getDirectory().getName(), model.name); assertTrue(GitBlit.self().calculateSize(model) > 22000L); } -- Gitblit v1.9.1