mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-24 18:11:47 +01:00
added test cases
Former-commit-id: 2f23cb9e248dfbbc7be40252172c560b48acef57
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.owasp.dependencycheck.utils;
|
package org.owasp.dependencycheck.utils;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
@@ -194,4 +195,27 @@ public class DependencyVersionTest {
|
|||||||
|
|
||||||
assertArrayEquals(expected, dv);
|
assertArrayEquals(expected, dv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test of getVersionParts method, of class DependencyVersion.
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void testGetVersionParts() {
|
||||||
|
DependencyVersion instance = new DependencyVersion();
|
||||||
|
List<String> versionParts = Arrays.asList("1", "1", "1");
|
||||||
|
instance.setVersionParts(versionParts);
|
||||||
|
List<String> expResult = Arrays.asList("1", "1", "1");;
|
||||||
|
List<String> result = instance.getVersionParts();
|
||||||
|
assertEquals(expResult, result);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test of setVersionParts method, of class DependencyVersion.
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void testSetVersionParts() {
|
||||||
|
List<String> versionParts = Arrays.asList("1", "1", "1");
|
||||||
|
DependencyVersion instance = new DependencyVersion();
|
||||||
|
instance.setVersionParts(versionParts);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user