From 17e849145ccc0397459e3d1362e8f7ce81664f03 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Sun, 3 Sep 2017 19:10:19 +0900 Subject: [PATCH] SubmoduleConfigTest: Add additional tests in fetchRecurseToConfigValue Add tests for "true" and "false" matching to "YES" and "NO". Change-Id: I58223855022871ac4b21bd34ff6a9cd00fce30a1 Signed-off-by: David Pursehouse --- .../tst/org/eclipse/jgit/lib/SubmoduleConfigTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/SubmoduleConfigTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/SubmoduleConfigTest.java index f5b0c5b0c..fb8dec51d 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/SubmoduleConfigTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/SubmoduleConfigTest.java @@ -87,5 +87,7 @@ public class SubmoduleConfigTest { public void fetchRecurseToConfigValue() { assertEquals("on-demand", FetchRecurseSubmodulesMode.ON_DEMAND.toConfigValue()); + assertEquals("true", FetchRecurseSubmodulesMode.YES.toConfigValue()); + assertEquals("false", FetchRecurseSubmodulesMode.NO.toConfigValue()); } }