Skip to content

Commit 8254737

Browse files
committed
EVCSBranchNotFound test added
1 parent af3f313 commit 8254737

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/test/java/org/scm4j/vcs/api/exceptions/ExceptionsTest.java

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
package org.scm4j.vcs.api.exceptions;
22

3-
import static org.junit.Assert.assertEquals;
4-
import static org.junit.Assert.assertFalse;
5-
import static org.junit.Assert.assertTrue;
6-
73
import org.junit.Test;
84

5+
import static org.junit.Assert.*;
6+
97
public class ExceptionsTest {
108

119
public static final String TEST_MESSAGE = "test message";
10+
public static final String TEST_REPO_URL = "test repo url";
11+
public static final String TEST_BRANCH_NAME = "test branchName";
1212

1313
@Test
1414
public void testEVCSException() {
@@ -40,4 +40,11 @@ public void testEVCSTagExists() {
4040
assertTrue(e1.getMessage().contains(TEST_MESSAGE));
4141
assertEquals(e1.getCause(), e);
4242
}
43+
44+
@Test
45+
public void testEVCSBranchNotFound() {
46+
EVCSBranchNotFound e = new EVCSBranchNotFound(TEST_REPO_URL, TEST_BRANCH_NAME);
47+
assertTrue(e.getMessage().contains(TEST_REPO_URL));
48+
assertTrue(e.getMessage().contains(TEST_BRANCH_NAME));
49+
}
4350
}

0 commit comments

Comments
 (0)