mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-04-29 19:58:15 +02:00
minor codacy suggested changes
This commit is contained in:
@@ -56,12 +56,12 @@ public class UrlStringUtilsTest {
|
||||
@Test
|
||||
public void testExtractImportantUrlData() throws Exception {
|
||||
String text = "http://github.com/jeremylong/DependencyCheck/index.html";
|
||||
List<String> expResult = Arrays.asList("github", "jeremylong", "DependencyCheck", "index");;
|
||||
List<String> expResult = Arrays.asList("github", "jeremylong", "DependencyCheck", "index");
|
||||
List<String> result = UrlStringUtils.extractImportantUrlData(text);
|
||||
assertEquals(expResult, result);
|
||||
|
||||
text = "http://github.com/jeremylong/DependencyCheck/.gitignore";
|
||||
expResult = Arrays.asList("github", "jeremylong", "DependencyCheck", "gitignore");;
|
||||
expResult = Arrays.asList("github", "jeremylong", "DependencyCheck", "gitignore");
|
||||
result = UrlStringUtils.extractImportantUrlData(text);
|
||||
assertEquals(expResult, result);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user