Search in sources :

Example 1 with UseCaseServices

use of org.obeonetwork.dsl.graal.m2doc.services.UseCaseServices in project InformationSystem by ObeoNetwork.

the class UseCaseServicesTest method verifyAllDomainClasses.

private void verifyAllDomainClasses(UseCase uc, String[] expectedClassesNames) {
    UseCaseServices service = new UseCaseServices();
    List<DomainClass> allDomainClasses = service.allDomainClasses(uc);
    Stream<String> domainClassesNames = allDomainClasses.stream().map((domainClass) -> service.fullQualifiedName(domainClass));
    assertArrayEquals("", expectedClassesNames, domainClassesNames.toArray());
}
Also used : UseCaseServices(org.obeonetwork.dsl.graal.m2doc.services.UseCaseServices) DomainClass(org.obeonetwork.graal.DomainClass)

Aggregations

UseCaseServices (org.obeonetwork.dsl.graal.m2doc.services.UseCaseServices)1 DomainClass (org.obeonetwork.graal.DomainClass)1