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

AuthMe / ConfigMe / 11408980610

16 Oct 2024 04:53PM UTC coverage: 99.322% (-0.09%) from 99.416%
11408980610

Pull #398

github

ljacqu
Add tests for record properties
Pull Request #398: #135 Support more ways to create beans (e.g. Java records)

557 of 574 branches covered (97.04%)

200 of 201 new or added lines in 10 files covered. (99.5%)

7 existing lines in 2 files now uncovered.

1612 of 1623 relevant lines covered (99.32%)

4.6 hits per line

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

55.56
/src/main/java/ch/jalu/configme/beanmapper/ConfigMeMapperException.java
1
package ch.jalu.configme.beanmapper;
2

3
import ch.jalu.configme.beanmapper.context.MappingContext;
4
import ch.jalu.configme.exception.ConfigMeException;
5
import org.jetbrains.annotations.NotNull;
6
import org.jetbrains.annotations.Nullable;
7

8
/**
9
 * Exception during a bean mapping process.
10
 */
11
public class ConfigMeMapperException extends ConfigMeException {
12

13
    private static final long serialVersionUID = 5439842847683269906L;
14

15
    /**
16
     * Constructor.
17
     *
18
     * @param message the exception message
19
     */
20
    public ConfigMeMapperException(@NotNull String message) {
21
        super(message);
3✔
22
    }
1✔
23

24
    /**
25
     * Constructor.
26
     *
27
     * @param message the exception message
28
     * @param cause the cause
29
     */
30
    public ConfigMeMapperException(@NotNull String message, @Nullable Throwable cause) {
UNCOV
31
        super(message, cause);
×
UNCOV
32
    }
×
33

34
    /**
35
     * Constructor.
36
     *
37
     * @param mappingContext the mapping context with which the message should be extended
38
     * @param message basic message to extend
39
     */
40
    public ConfigMeMapperException(@NotNull MappingContext mappingContext, @NotNull String message) {
41
        super(constructMessage(mappingContext, message));
5✔
42
    }
1✔
43

44
    /**
45
     * Constructor.
46
     *
47
     * @param mappingContext the mapping context with which the message should be extended
48
     * @param message basic message to extend
49
     * @param cause the cause
50
     */
51
    public ConfigMeMapperException(@NotNull MappingContext mappingContext, @NotNull String message,
52
                                   @Nullable Throwable cause) {
UNCOV
53
        super(constructMessage(mappingContext, message), cause);
×
UNCOV
54
    }
×
55

56
    private static @NotNull String constructMessage(@NotNull MappingContext mappingContext, @NotNull String message) {
57
        return message + ", for mapping of: [" + mappingContext.createDescription() + "]";
14✔
58
    }
59
}
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