• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

iluwatar / java-design-patterns / #1672

06 Sep 2015 05:33PM UTC coverage: 85.286% (-0.4%) from 85.644%
#1672

push

Markus
Removed the Markdown Plus custom heading id's

Because the renderer of github doesnt support markdown plus...

3246 of 3806 relevant lines covered (85.29%)

0.85 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

22.22
/poison-pill/src/main/java/com/iluwatar/poison/pill/SimpleMessage.java
1
package com.iluwatar.poison.pill;
2

3
import java.util.Collections;
4
import java.util.HashMap;
5
import java.util.Map;
6

7
/**
8
 * {@link Message} basic implementation
9
 */
10
public class SimpleMessage implements Message {
1✔
11

12
        private Map<Headers, String> headers = new HashMap<>();
1✔
13
        private String body;
14

15
        @Override
16
        public void addHeader(Headers header, String value) {
17
                headers.put(header, value);
×
18
        }
×
19

20
        @Override
21
        public String getHeader(Headers header) {
22
                return headers.get(header);
×
23
        }
24

25
        @Override
26
        public Map<Headers, String> getHeaders() {
27
                return Collections.unmodifiableMap(headers);
×
28
        }
29

30
        @Override
31
        public void setBody(String body) {
32
                this.body = body;
×
33
        }
×
34

35
        @Override
36
        public String getBody() {
37
                return body;
×
38
        }
39
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc