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

wistefan / tmforum-api / #62

19 Oct 2023 01:12PM UTC coverage: 68.167% (+0.5%) from 67.631%
#62

push

web-flow
Account management api implementation (#34)

* Creating the directories

* Adding pom

* now adding pom, error on last commit

* Account complete implementation, no testing

* Solving problems with git config

* Adding some left out classes and some tests

* Adding FinancialAccount Integration Test and solving some errors on the main classes

* adding Integration Test and solved errors for Party, Bill, Settlement and Financial Account, and BillFormat

* Adding final integration tests and adapting api to query format

* Fixing Event Subscription

* Cleaning the code from comments

---------

Co-authored-by: MVazquez <marcosvazquezcampos@MacBook-Air-de-Marcos.local>

475 of 475 new or added lines in 32 files covered. (100.0%)

3150 of 4621 relevant lines covered (68.17%)

0.68 hits per line

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

0.0
/account/src/main/java/org/fiware/tmforum/account/MappingHelper.java
1
package org.fiware.tmforum.account;
2

3
import org.fiware.tmforum.product.CategoryRef;
4
import org.mapstruct.Named;
5

6
import java.net.URI;
7
import java.util.Optional;
8

9
@Named("MappingHelper")
10
public class MappingHelper {
×
11

12

13
    @Named("toCategoryRef")
14
    public static CategoryRef toCategoryRef(String parentId) {
15
        if (parentId == null) {
×
16
            return null;
×
17
        }
18
        return new CategoryRef(parentId);
×
19
    }
20

21
    @Named("fromCategoryRef")
22
    public static String fromCategoryRef(CategoryRef parentId) {
23
        if (parentId == null) {
×
24
            return null;
×
25
        }
26
        return Optional.ofNullable(parentId.getEntityId()).map(URI::toString).orElse(null);
×
27
    }
28
}
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