Skip to content

Commit 4cbdbe8

Browse files
add TestRealtimerReporterEventTimedConsumer.java generated by Xtend
2.20.0
1 parent f878245 commit 4cbdbe8

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/**
22
* Copyright 2019 Philipp Salvisberg <philipp.salvisberg@trivadis.com>
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,25 +13,25 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.utplsql.sqldev.test.dal
16+
package org.utplsql.sqldev.test.dal;
1717

18-
import java.util.HashMap
19-
import org.utplsql.sqldev.dal.RealtimeReporterEventConsumer
20-
import org.utplsql.sqldev.model.runner.RealtimeReporterEvent
21-
import org.utplsql.sqldev.model.runner.PostTestEvent
18+
import java.util.HashMap;
19+
import org.utplsql.sqldev.dal.RealtimeReporterEventConsumer;
20+
import org.utplsql.sqldev.model.runner.PostTestEvent;
21+
import org.utplsql.sqldev.model.runner.RealtimeReporterEvent;
2222

23-
class TestRealtimerReporterEventTimedConsumer implements RealtimeReporterEventConsumer {
24-
25-
val postTestEvents = new HashMap<String, Long>
26-
27-
def getPostTestEvents() {
28-
return postTestEvents
29-
}
30-
31-
override void process(RealtimeReporterEvent event) {
32-
if (event instanceof PostTestEvent) {
33-
postTestEvents.put(event.id, System.currentTimeMillis)
34-
}
35-
}
36-
37-
}
23+
@SuppressWarnings("all")
24+
public 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()));
35+
}
36+
}
37+
}

0 commit comments

Comments
 (0)