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

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

name | class, % | method, % | block, % | line, %
--- | --- | --- | --- | ---
LMSLandMarkGroup.java | 100% (1/1) | 86% (6/7) | 62% (33/53) | 73% (8,1/11)

### COVERAGE BREAKDOWN BY CLASS AND METHOD

name | class, % | method, % | block, % | line, %
--- | --- | --- | --- | ---
class LMSLandMarkGroup | 100% (1/1) | 86% (6/7) | 62% (33/53) | 73% (8,1/11)
toString (): String |  | 0% (0/1) | 0% (0/10) | 0% (0/2)
generate (byte [], int): int |  | 100% (1/1) | 50% (9/18) | 73% (2,2/3)
<static initializer> |  | 100% (1/1) | 88% (7/8) | 87% (0,9/1)
LMSLandMarkGroup (): void |  | 100% (1/1) | 100% (3/3) | 100% (1/1)
getLandmarkIPaddr (): long |  | 100% (1/1) | 100% (3/3) | 100% (1/1)
parse (byte [], int, int): int |  | 100% (1/1) | 100% (7/7) | 100% (2/2)
setLandmarkIPaddr (long): void |  | 100% (1/1) | 100% (4/4) | 100% (2/2)

1 | package cz.vutbr.feec.packets.ttp;
2 |
3 | import cz.vutbr.feec.packets.IPacket;
4 | import cz.vutbr.feec.packets.PacketGenerateException;
5 | import cz.vutbr.feec.packets.PacketParseException;
6 | import cz.vutbr.feec.packets.PacketUtils;
7 |
8 | import org.apache.commons.lang.builder.ToStringBuilder;
9 |
10 | //import cz.vutbr.feec.utko.iptv.net.rtp.PacketUtils;
11 |
12 | public class LMSLandMarkGroup implements IPacket {
13 |
14 | private long landmarkIPaddr;
15 |
16 | public int generate(byte[] buffer, int offset)
17 | throws PacketGenerateException {
18 | assert PacketUtils.checkSize(getLandmarkIPaddr(), 32);
19 | PacketUtils.setOctet4(buffer, offset, getLandmarkIPaddr());
20 | return 4;
21 | }
22 |
23 | public int parse(byte[] buffer, int offset, int length)
24 | throws PacketParseException {
25 | setLandmarkIPaddr(PacketUtils.getOctet4(buffer, offset));
26 | return 4;
27 | }
28 |
29 | public long getLandmarkIPaddr() {
30 | return landmarkIPaddr;
31 | }
32 |
33 | public void setLandmarkIPaddr(long landmarkIPaddr) {
34 | this.landmarkIPaddr = landmarkIPaddr;
35 | }
36 |
37 | /**
38 | * @see java.lang.Object#toString()
39 | */
40 | public String toString() {
41 | return new ToStringBuilder(this).append("landmarkIPaddr",
42 | this.landmarkIPaddr).toString();
43 | }
44 |
45 | }

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