diff options
author | Piotr Jaszczyk <piotr.jaszczyk@nokia.com> | 2018-04-11 16:29:30 +0200 |
---|---|---|
committer | Piotr Jaszczyk <piotr.jaszczyk@nokia.com> | 2018-04-12 14:44:29 +0200 |
commit | 17859bdd1f24904d2a9162a1a43f9db222750f4a (patch) | |
tree | 30b10e32d2554807065c7679f56a86f2831e60b3 /pom.xml | |
parent | 88d7666478e5e98e24ef32637a7580c9809f9458 (diff) |
Optimize and refactor EventPublisher class in VES
* 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>
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,6 +1,7 @@ <!--
================================================================================
Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved.
+Copyright (c) 2018 Nokia. All rights reserved.
================================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -137,6 +138,13 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property. <version>1.10</version>
</dependency>
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-core</artifactId>
+ <version>2.18.0</version>
+ <scope>test</scope>
+ </dependency>
+
</dependencies>
|