]> source.dussan.org Git - jgit.git/commitdiff
SubmoduleConfigTest: Add additional tests in fetchRecurseToConfigValue 34/104234/3
authorDavid Pursehouse <david.pursehouse@gmail.com>
Sun, 3 Sep 2017 10:10:19 +0000 (19:10 +0900)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 5 Sep 2017 21:30:18 +0000 (23:30 +0200)
Add tests for "true" and "false" matching to "YES" and "NO".

Change-Id: I58223855022871ac4b21bd34ff6a9cd00fce30a1
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/SubmoduleConfigTest.java

index f5b0c5b0c10c80539322cb6c86f7b69ebd75bb99..fb8dec51d33b4a7dd8eb95f50cdd6f48cdaf6694 100644 (file)
@@ -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());
        }
 }