File tree Expand file tree Collapse file tree 5 files changed +31
-17
lines changed
java/com/ericsson/ei/notifications/trigger Expand file tree Collapse file tree 5 files changed +31
-17
lines changed Original file line number Diff line number Diff line change 43
43
name : report_coverage
44
44
# Generating test coverage report and publishing to Codacy
45
45
script :
46
- - mvn cobertura:cobertura -B
46
+ - mvn jacoco:prepare-agent test jacoco:report -B
47
47
- curl -Ls -o codacy-coverage-reporter-assembly.jar https://github.com/codacy/codacy-coverage-reporter/releases/download/6.0.2/codacy-coverage-reporter-6.0.2-assembly.jar
48
- - java -jar codacy-coverage-reporter-assembly.jar report -l Java -r target/site/cobertura/coverage .xml
48
+ - java -jar codacy-coverage-reporter-assembly.jar report -l Java -r target/site/jacoco/jacoco .xml
Original file line number Diff line number Diff line change 426
426
<version >${springBootVersion} </version >
427
427
</plugin >
428
428
429
- <!-- PhoenixNAP RAML Code Generator plugin used to generate sources
429
+ <!-- PhoenixNAP RAML Code Generator plugin used to generate sources
430
430
from raml -->
431
431
<plugin >
432
432
<groupId >com.phoenixnap.oss</groupId >
504
504
<groupId >org.apache.maven.plugins</groupId >
505
505
<artifactId >maven-surefire-plugin</artifactId >
506
506
<version >2.22.2</version >
507
- <!-- Surefire tests are split into parallel and sequential tests.
508
- If the test is sensitive to run in parallel it should be
509
- excluded from that execution and moved into sequential. -->
507
+ <!-- Surefire tests are split into parallel and sequential
508
+ tests. If the test is sensitive to run in parallel it should be excluded
509
+ from that execution and moved into sequential. -->
510
510
<executions >
511
511
<execution >
512
512
<id >default-test</id >
603
603
</configuration >
604
604
</plugin >
605
605
<plugin >
606
- <groupId >org.codehaus.mojo </groupId >
607
- <artifactId >cobertura -maven-plugin</artifactId >
608
- <version >2.7 </version >
606
+ <groupId >org.jacoco </groupId >
607
+ <artifactId >jacoco -maven-plugin</artifactId >
608
+ <version >0.8.5 </version >
609
609
<configuration >
610
- <formats >
611
- <format >html</format >
612
- <format >xml</format >
613
- </formats >
610
+ <excludes >
611
+ <exclude >com/ericsson/ei/controller/model/*</exclude >
612
+ </excludes >
614
613
</configuration >
614
+ <executions >
615
+ <execution >
616
+ <id >jacoco-initialize</id >
617
+ <goals >
618
+ <goal >prepare-agent</goal >
619
+ </goals >
620
+ </execution >
621
+ <execution >
622
+ <id >jacoco-site</id >
623
+ <phase >package</phase >
624
+ <goals >
625
+ <goal >report</goal >
626
+ </goals >
627
+ </execution >
628
+ </executions >
615
629
</plugin >
616
630
</plugins >
617
631
</build >
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ public class SubscriptionNotificationSteps extends FunctionalTestBase {
93
93
@ Autowired
94
94
private MongoDBHandler mongoDBHandler ;
95
95
96
- @ InjectMocks
96
+ @ Autowired
97
97
private EmailSender emailSender ;
98
98
99
99
private SimpleSmtpServer smtpServer ;
@@ -195,12 +195,13 @@ public void send_one_previous_event() throws Throwable {
195
195
eventManager .sendEiffelEvents (EIFFEL_EVENTS_JSON_PATH , eventNamesToSend );
196
196
}
197
197
198
- @ Then ("^Then Notification email contains ( '(.*?)') and ( '(.*?)') values" )
198
+ @ Then ("^Notification email contains '(.*)' and '(.*)' values" )
199
199
public void notification_email_contains_expected_values (String sender , String subject ) {
200
200
assertEquals (sender , emailSender .getSender ());
201
201
assertEquals (subject , emailSender .getSubject ());
202
202
}
203
203
204
+
204
205
@ Then ("^Mail subscriptions were triggered$" )
205
206
public void mail_subscriptions_were_triggered () {
206
207
LOGGER .debug ("Verifying received emails." );
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ Feature: Test Subscription Trigger
8
8
And Subscriptions are created
9
9
When I send Eiffel events
10
10
And Wait for EI to aggregate objects
11
- Then Notification email contains <our expected> values
12
11
Then Mail subscriptions were triggered
13
12
And Rest subscriptions were triggered
14
13
When I send one previous event again
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ failed.notifications.collection.name: failed_notifications
45
45
failed.notifications.collection.ttl : 600
46
46
notification.retry : 3
47
47
48
- email.sender : noreply@ericsson .com
48
+ email.sender : noreply@domain .com
49
49
email.subject : Email Subscription Notification
50
50
51
51
spring.mail.host :
You can’t perform that action at this time.
0 commit comments