Code Review
/
aai
/
model-loader.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix sonar issues
[aai/model-loader.git]
/
src
/
test
/
java
/
org
/
onap
/
aai
/
modelloader
/
extraction
/
TestArtifactInfoExtractor.java
diff --git
a/src/test/java/org/onap/aai/modelloader/extraction/TestArtifactInfoExtractor.java
b/src/test/java/org/onap/aai/modelloader/extraction/TestArtifactInfoExtractor.java
index
3957c7c
..
3bfb2a5
100644
(file)
--- a/
src/test/java/org/onap/aai/modelloader/extraction/TestArtifactInfoExtractor.java
+++ b/
src/test/java/org/onap/aai/modelloader/extraction/TestArtifactInfoExtractor.java
@@
-79,7
+79,7
@@
public class TestArtifactInfoExtractor {
List<IArtifactInfo> artifacts = extractor.extract(getNotificationDataWithOneService());
List<IArtifactInfo> artifacts = extractor.extract(getNotificationDataWithOneService());
- assert
True("One artifact should have been returned", artifacts.size() == 1
);
+ assert
Equals("One artifact should have been returned", 1, artifacts.size()
);
assertEquals("The actual artifact did not match the expected one", expected, artifacts.get(0));
}
assertEquals("The actual artifact did not match the expected one", expected, artifacts.get(0));
}
@@
-90,7
+90,7
@@
public class TestArtifactInfoExtractor {
List<IArtifactInfo> artifacts = extractor.extract(getNotificationDataWithOneResource());
List<IArtifactInfo> artifacts = extractor.extract(getNotificationDataWithOneResource());
- assert
True("One artifact should have been returned", artifacts.size() == 1
);
+ assert
Equals("One artifact should have been returned", 1, artifacts.size()
);
assertEquals("The actual artifact did not match the expected one", expectedArtifacts, artifacts);
}
assertEquals("The actual artifact did not match the expected one", expectedArtifacts, artifacts);
}
@@
-102,7
+102,7
@@
public class TestArtifactInfoExtractor {
List<IArtifactInfo> artifacts = extractor.extract(getNotificationDataWithOneServiceAndResources());
List<IArtifactInfo> artifacts = extractor.extract(getNotificationDataWithOneServiceAndResources());
- assert
True("One artifact should have been returned", artifacts.size() == 2
);
+ assert
Equals("Two artifact should have been returned", 2, artifacts.size()
);
assertEquals("The actual artifact did not match the expected one", expectedArtifacts, artifacts);
}
}
assertEquals("The actual artifact did not match the expected one", expectedArtifacts, artifacts);
}
}