File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
src/test/java/org/scm4j/vcs/api/exceptions Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 11package 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-
73import org .junit .Test ;
84
5+ import static org .junit .Assert .*;
6+
97public 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}
You can’t perform that action at this time.
0 commit comments