EMMA Coverage Report (generated Tue Dec 18 20:38:46 CET 2007)
[all classes][cz.vutbr.feec.session.feedback]

## COVERAGE SUMMARY FOR SOURCE FILE [Main.java]

name | class, % | method, % | block, % | line, %
--- | --- | --- | --- | ---
Main.java | 0% (0/2) | 0% (0/5) | 0% (0/46) | 0% (0/15)

### COVERAGE BREAKDOWN BY CLASS AND METHOD

name | class, % | method, % | block, % | line, %
--- | --- | --- | --- | ---
class Main | 0% (0/1) | 0% (0/2) | 0% (0/28) | 0% (0/10)
Main (): void |  | 0% (0/1) | 0% (0/3) | 0% (0/1)
main (String []): void |  | 0% (0/1) | 0% (0/25) | 0% (0/9)
class MyLogger | 0% (0/1) | 0% (0/3) | 0% (0/18) | 0% (0/5)
<static initializer> |  | 0% (0/1) | 0% (0/5) | 0% (0/3)
MyLogger (): void |  | 0% (0/1) | 0% (0/3) | 0% (0/1)
received (LMVPacket): void |  | 0% (0/1) | 0% (0/10) | 0% (0/2)

1 | package cz.vutbr.feec.session.feedback;
2 |
3 | import java.net.InetAddress;
4 | import java.net.UnknownHostException;
5 |
6 | import org.apache.log4j.Logger;
7 |
8 | import cz.vutbr.feec.packets.ttp.LMVPacket;
9 |
10 | class MyLogger extends EventAdaptor {
11 | private static Logger logger = org.apache.log4j.Logger
12 | .getLogger(EventAdaptor.class.getName());
13 |
14 | @Override
15 | public void received(LMVPacket packet) {
16 | logger.info("Prijat paket LMVPacket:"+packet);
17 | }
18 | }
19 |
20 | public class Main {
21 | public static void main(String[] args) throws UnknownHostException {
22 | InetAddress addr = InetAddress.getByName("147.229.146.241");
23 | int port = 5000;
24 |
25 | FeedbackSessionStatus mft = new FeedbackSession(addr, port);
26 | mft.start();
27 | mft.addListener(new MyLogger());
28 | try {
29 | Thread.sleep(10000);
30 | } catch (InterruptedException e) {
31 | }
32 | mft.stop();
33 | }
34 | }

[all classes][cz.vutbr.feec.session.feedback]
EMMA 2.0.5312 EclEmma Fix 1 (C) Vladimir Roubtsov