summaryrefslogtreecommitdiffstats
path: root/src/test/java
AgeCommit message (Collapse)AuthorFilesLines
2018-08-01Replace nsaCore library with SpringPawelSzalapski6-228/+59
Change-Id: I2227939a67a2cbba2d392136d49ef4419600d186 Issue-ID: DCAEGEN2-602 Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com>
2018-07-18VES collector application settings providerZlatko Murgoski4-10/+444
Extract application settings to diferent class First step to remove nsaServerLibrary Change-Id: Ib4fb236ac4683d241c7841ba66f1afbcfb10c92a Signed-off-by: ZlatkoMurgoski <zlatko.murgoski@nokia.com> Issue-ID: DCAEGEN2-566
2018-07-02Prepare codebase for dynamic DMaaP configurationPawelSzalapski8-382/+288
From now on, there is only one single place where we can create whole app core concerning sending events and it has a single entry point, based on DMaaP configuration. It can be used to rebuild part of app that is responsible for sending events dynamically. Changes are in scope for the dynamic DMaaP config feature. + bumped up code coverage a bit Change-Id: Iecc8c4e534ae9b781f47e3616409271ba83169c8 Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com> Issue-ID: DCAEGEN2-517
2018-06-24Remove dead code from VESCollectorPawelSzalapski11-298/+297
Many things there are unused or have inproper modifiers, spelling etc. I run static analysis tool (Intellij code inspect) and clear those things up. It will be easier to maintain now. No actual behavior changes were done. Issue-ID: DCAEGEN2-526 Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com> Change-Id: I1a4ad0c896bd32165cba654344ffc5245648c615
2018-06-18Refactor DmaapPropertyReaderkoblosz3-53/+228
Issue-ID: DCAEGEN2-522 Signed-off-by: KOBLOSZ SANDRA <sandra.koblosz@nokia.com> Change-Id: I2d9928ff3ffeda0e204480f13e8c8bf91bddf912
2018-06-15Merge "Fix bug about custom exceptions not being used"Vijay Venkatesh Kumar2-61/+66
2018-06-11Merge "Refactor tests to check actual behavior of methods"Vijay Venkatesh Kumar2-172/+129
2018-06-11Fix bug about custom exceptions not being usedPawelSzalapski2-61/+66
The bug was that custom exception config was never actually queried because of the mismatch between the production code usages and .json config file. Change-Id: I416ef5f45770f9bb55d5dff143277b6c62fa25ba Issue-ID: DCAEGEN2-518 Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com>
2018-06-11Fix tests to not create files in repositoryPawelSzalapski3-203/+175
While we run unittests, they create files directly inside the repository, those files are later proposed as changes to commit. Change-Id: Iffcb3820959f85099d3fe0ab9db1a198f8f60d78 Issue-ID: DCAEGEN2-524 Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com>
2018-06-11Refactor tests to check actual behavior of methodsPawelSzalapski2-172/+129
Testcases were skimming through the code, but actually make no asserts. Change-Id: Icba8fe890c01fc11a4507ca468ab4d9b6141caf9 Issue-ID: DCAEGEN2-524 Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com>
2018-06-08Merge "Simplify & remove duplicated testcases"Vijay Venkatesh Kumar5-392/+79
2018-06-08Merge "Refactored event processor + sonar"Vijay Venkatesh Kumar3-132/+183
2018-06-08Merge "Refactor tests to check actual behavior of methods"Vijay Venkatesh Kumar2-104/+53
2018-06-08Refactored event processor + sonarKrysiak Adam Gabriel3-132/+183
Issue-ID: DCAEGEN2-521 Change-Id: I9290f21701945cd1bb5e7a43a671991417f25491 Signed-off-by: Krysiak Adam Gabriel <adam.krysiak@nokia.com>
2018-06-06Merge "Remove tests that do not actually test anything"Vijay Venkatesh Kumar1-131/+15
2018-06-06Remove tests that do not actually test anythingPawelSzalapski1-131/+15
Testcases in this file are written in a way that they always throw exceptions, information about this is logged and the assertion is always true. Change-Id: Icbb0b6d4df9782e3a05f8d31fc71886a12a0105a Issue-ID: DCAEGEN2-524 Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com>
2018-06-06Refactor tests to check actual behavior of methodsPawelSzalapski2-104/+53
Testcases were skimming through the code, but actually make no asserts. Change-Id: I3cab0a75c885e1e459b18066f13e351970f476b0 Issue-ID: DCAEGEN2-524 Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com>
2018-06-06Refactor DMaaPPropertyReader testsPawelSzalapski1-41/+27
DMaaPPropertyReader tests had no meaningful assert statements Tests for actual topic retrieval were added Change-Id: Ieb861f02d8484ac4bfd5a49b3c70d296bd2c129b Issue-ID: DCAEGEN2-524 Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com>
2018-06-06Simplify & remove duplicated testcasesPawelSzalapski5-392/+79
Testcases in those files were overengineered, plus there were duplicates so they got simplified. Obsolete classes that were unneeded were removed Change-Id: I9fce325aed4f1a3a6073f0c564adac1ec5a6beae Issue-ID: DCAEGEN2-524 Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com>
2018-04-12Optimize and refactor EventPublisher class in VESPiotr Jaszczyk3-35/+262
* Remove need for having sendEvent synchronized by means of using Guava LoadingCache. The only thing that made it synchronized was the creation of new entries in the map but the synchronization was made on each incoming event. * Split the class to smaller classes which conform to SRP. This makes us able to... * ... write unit tests for affected classes * TODO: upgrade to Java8 so lambdas will simplify the code even more Change-Id: I14cf4cfab0570ce5aecc9a5e5dc9f541c499f9d7 Issue-ID: DCAEGEN2-440 Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
2018-03-07sonar complaince updatesVijay VK1-207/+290
Change-Id: I3f1bee6b9ff072528246186a73ee5133f9a918aa Signed-off-by: VENKATESH KUMAR <vv770d@att.com> Issue-ID: DCAEGEN2-388
2018-02-27Misc updates to collectorVijay VK2-2/+49
Change-Id: I7a3b52c454442d6a9f93331142b78bf671ffcd0a Signed-off-by: VENKATESH KUMAR <vv770d@att.com> Issue-ID: DCAEGEN2-373
2018-02-21additional coverageVijay VK2-59/+94
Change-Id: Ibaf0bef19e447162233217b0aa44c04cbe550dce Signed-off-by: VENKATESH KUMAR <vv770d@att.com> Issue-ID: DCAEGEN2-227
2018-02-21fix sonar issue and additional testVijay VK3-261/+331
Change-Id: If32e2319c71b947b7e5c68410f32b19ba5ac8125 Signed-off-by: VENKATESH KUMAR <vv770d@att.com> Issue-ID: DCAEGEN2-227
2018-02-20optimization and sonar fixesVijay VK2-302/+254
Change-Id: I47b2c429abc2a8c795f9faa7739d8d75f67ed287 Signed-off-by: VENKATESH KUMAR <vv770d@att.com> Issue-ID: DCAEGEN2-227
2018-02-18additional testcaseVijay VK1-0/+123
Change-Id: Ib4fcdf3754c43f4d1996ea50b888d976e728705a Signed-off-by: VENKATESH KUMAR <vv770d@att.com> Issue-ID: DCAEGEN2-227
2018-02-14Fix keystore alais config and TCVENKATESH KUMAR6-39/+268
Change-Id: I8e0349f411dc05625b14536afc0acb1fac9a55c2 Signed-off-by: VENKATESH KUMAR <vv770d@att.com> Issue-ID: DCAEGEN2-227
2018-01-20Optimize collector publish mechanismvagrant1-1/+70
Change-Id: I6d5fb2ad45257831e8e0ff62812df1fd1401464d Issue-ID: DCAEGEN2-281 Signed-off-by: Vijay VK <vv770d@att.com>
2017-09-25fix merge error n sonar itemsVijay2-5/+35
https://jenkins.onap.org/job/dcaegen2-collectors-ves-master-merge-java/33/console Change-Id: I90693665dcf650028186a47ed69eaf15bc2f0d15 Issue-ID:DCAEGEN2-82 Signed-off-by: Vijay <vv770d@att.com>
2017-09-21junit addon for vesVijay3-55/+214
Issue-ID:DCAEGEN2-82 Change-Id: Ic1ddd426545b3ccce331ec753dd6dbb7077babc9 Signed-off-by: Vijay <vv770d@att.com>
2017-09-20vescollector junit addonVijay3-0/+328
Issue-ID:DCAEGEN2-82 Change-Id: I109a01ec7d4927e3fbce723355012d80290f2b48 Signed-off-by: Vijay <vv770d@att.com>
2017-09-18add junit for ves functionsVijay3-0/+205
Issue-ID:DCAEGEN2-82 Change-Id: Id416ce87a833b9dcc8ab471ebc4611059c2978c1 Signed-off-by: Vijay <vv770d@att.com>
2017-09-17Fixing checkstyle errorsBharat saraswal5-310/+271
(followed:onap-java-style) removed redundant code. Issue-Id:DCAEGEN2-92 Change-Id: Ie4741757f89357b31ce8968a6f7670db3014d528 Signed-off-by: Bharat saraswal <bharat.saraswal@huawei.com>
2017-09-14sonar coverage for vesVijay1-0/+70
Change-Id: I60d2746d588f610737985a25632a459f0083ee62 Issue-Id:DCAEGEN2-82 Signed-off-by: Vijay <vv770d@att.com>
2017-09-14update to fix junit and coverageVijay2-6/+19
Issue-Id:DCAEGEN2-82 Change-Id: Ib43e0e5caaf7be9c07df68faf68f0af7ceb3a595 Signed-off-by: Vijay <vv770d@att.com>
2017-08-23dcaegen2 vescollector seedcodeVENKATESH KUMAR3-0/+330
Initial seed code delivery for vescollector for support on the gen2dcae platform Issue-ID: DCAEGEN2-52 Change-Id: Id2477eb266f05caf64c67dd809b1ad146ff4fb92 Signed-off-by: VENKATESH KUMAR <vv770d@att.com>