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

leeonky / test-charm-java / 290

08 Sep 2025 03:25PM UTC coverage: 74.312% (-0.003%) from 74.315%
290

push

circleci

leeonky
Introduce PropertyWriterDecorator

10 of 25 new or added lines in 6 files covered. (40.0%)

20 existing lines in 10 files now uncovered.

8155 of 10974 relevant lines covered (74.31%)

0.74 hits per line

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

70.0
/bean-util/src/main/java/com/github/leeonky/util/PropertyAccessorDecorator.java
1
package com.github.leeonky.util;
2

3
import java.lang.annotation.Annotation;
4
import java.lang.reflect.Type;
5

6
public abstract class PropertyAccessorDecorator<T, A extends PropertyAccessor<T>> implements PropertyAccessor<T> {
7
    protected final A accessor;
8

9
    public PropertyAccessorDecorator(A accessor) {
1✔
10
        this.accessor = accessor;
1✔
11
    }
1✔
12

13
    @Override
14
    public String getName() {
15
        return accessor.getName();
1✔
16
    }
17

18
    @Override
19
    public <A extends Annotation> A getAnnotation(Class<A> annotationClass) {
NEW
20
        return accessor.getAnnotation(annotationClass);
×
21
    }
22

23
    @Override
24
    public boolean isBeanProperty() {
25
        return accessor.isBeanProperty();
1✔
26
    }
27

28
    @Override
29
    public BeanClass<T> getBeanType() {
30
        return accessor.getBeanType();
1✔
31
    }
32

33
    @Override
34
    public Object tryConvert(Object value) {
35
        return BeanClass.getConverter().tryConvert(getType().getType(), value);
×
36
    }
37

38
    @Override
39
    public Type getGenericType() {
NEW
40
        return accessor.getGenericType();
×
41
    }
42

43
    @Override
44
    public BeanClass<?> getType() {
45
        return BeanClass.create(GenericType.createGenericType(getGenericType()));
1✔
46
    }
47
}
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

© 2026 Coveralls, Inc