File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
src/test/java/nl/goodbytes/util/linkdetector Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,23 @@ public void testLink() throws Exception
8686 assertTrue (fragments .get (0 ).isLink ());
8787 }
8888
89+ @ Test
90+ public void testCaseSensitivity () throws Exception
91+ {
92+ // Setup test fixture.
93+ final String input = "HTTPS://www.example.org" ;
94+
95+ // Execute system under test.
96+ final List <Fragment > fragments = LinkDetector .parse (input );
97+
98+ // Verify results.
99+ assertEquals (1 , fragments .size ());
100+ assertEquals (0 , fragments .get (0 ).startIndex ());
101+ assertEquals (input .length (), fragments .get (0 ).endIndex ());
102+ assertEquals (input , fragments .get (0 ).toString ());
103+ assertTrue (fragments .get (0 ).isLink ());
104+ }
105+
89106 @ Test
90107 public void testEmbeddedLink () throws Exception
91108 {
You can’t perform that action at this time.
0 commit comments