mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-21 00:29:21 +01:00
corrected test case
Former-commit-id: 2604392e83f5b1bf398d4e2d08e7592aa4d7bb36
This commit is contained in:
@@ -70,7 +70,7 @@ public class DependencyTest {
|
|||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testSetFileName() {
|
public void testSetFileName() {
|
||||||
String fileName = "test.file";
|
String fileName = "file.tar";
|
||||||
Dependency instance = new Dependency();
|
Dependency instance = new Dependency();
|
||||||
instance.setFileName(fileName);
|
instance.setFileName(fileName);
|
||||||
assertEquals(fileName, instance.getFileName());
|
assertEquals(fileName, instance.getFileName());
|
||||||
@@ -81,7 +81,7 @@ public class DependencyTest {
|
|||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testSetActualFilePath() {
|
public void testSetActualFilePath() {
|
||||||
String actualFilePath = "test.file";
|
String actualFilePath = "file.tar";
|
||||||
Dependency instance = new Dependency();
|
Dependency instance = new Dependency();
|
||||||
instance.setActualFilePath(actualFilePath);
|
instance.setActualFilePath(actualFilePath);
|
||||||
assertEquals(actualFilePath, instance.getActualFilePath());
|
assertEquals(actualFilePath, instance.getActualFilePath());
|
||||||
@@ -93,7 +93,7 @@ public class DependencyTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testGetActualFilePath() {
|
public void testGetActualFilePath() {
|
||||||
Dependency instance = new Dependency();
|
Dependency instance = new Dependency();
|
||||||
String expResult = "test.file";
|
String expResult = "file.tar";
|
||||||
instance.setActualFilePath(expResult);
|
instance.setActualFilePath(expResult);
|
||||||
String result = instance.getActualFilePath();
|
String result = instance.getActualFilePath();
|
||||||
assertEquals(expResult, result);
|
assertEquals(expResult, result);
|
||||||
@@ -104,7 +104,7 @@ public class DependencyTest {
|
|||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testSetFilePath() {
|
public void testSetFilePath() {
|
||||||
String filePath = "test.file";
|
String filePath = "file.tar";
|
||||||
Dependency instance = new Dependency();
|
Dependency instance = new Dependency();
|
||||||
instance.setFilePath(filePath);
|
instance.setFilePath(filePath);
|
||||||
assertEquals(filePath, instance.getFilePath());
|
assertEquals(filePath, instance.getFilePath());
|
||||||
@@ -116,7 +116,7 @@ public class DependencyTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testGetFilePath() {
|
public void testGetFilePath() {
|
||||||
Dependency instance = new Dependency();
|
Dependency instance = new Dependency();
|
||||||
String expResult = "path/test.file";
|
String expResult = "file.tar";
|
||||||
instance.setFilePath(expResult);
|
instance.setFilePath(expResult);
|
||||||
String result = instance.getFilePath();
|
String result = instance.getFilePath();
|
||||||
assertEquals(expResult, result);
|
assertEquals(expResult, result);
|
||||||
|
|||||||
Reference in New Issue
Block a user