File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
sqldev/src/test/java/org/utplsql/sqldev/test/dal Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change 1- /**
1+ /*
22 * Copyright 2019 Philipp Salvisberg <philipp.salvisberg@trivadis.com>
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
1616package org .utplsql .sqldev .test .dal ;
1717
1818import java .util .HashMap ;
19+
1920import org .utplsql .sqldev .dal .RealtimeReporterEventConsumer ;
2021import org .utplsql .sqldev .model .runner .PostTestEvent ;
2122import org .utplsql .sqldev .model .runner .RealtimeReporterEvent ;
2223
23- @ SuppressWarnings ("all" )
2424public class TestRealtimerReporterEventTimedConsumer implements RealtimeReporterEventConsumer {
25- private final HashMap <String , Long > postTestEvents = new HashMap <String , Long >();
26-
27- public HashMap <String , Long > getPostTestEvents () {
28- return this .postTestEvents ;
29- }
30-
31- @ Override
32- public void process (final RealtimeReporterEvent event ) {
33- if ((event instanceof PostTestEvent )) {
34- this .postTestEvents .put (((PostTestEvent )event ).getId (), Long .valueOf (System .currentTimeMillis ()));
25+ private final HashMap <String , Long > postTestEvents = new HashMap <>();
26+
27+ public HashMap <String , Long > getPostTestEvents () {
28+ return postTestEvents ;
29+ }
30+
31+ @ Override
32+ public void process (final RealtimeReporterEvent event ) {
33+ if (event instanceof PostTestEvent ) {
34+ postTestEvents .put (((PostTestEvent ) event ).getId (), System .currentTimeMillis ());
35+ }
3536 }
36- }
3737}
You can’t perform that action at this time.
0 commit comments