team-propra / roommate

A project created as part of the module "Programmierpraktikum 2" at Heinrich Heine University Düsseldorf
2 stars 0 forks source link

Architecture Tests #28

Closed themassiveone closed 11 months ago

themassiveone commented 11 months ago

Ohhh, im exited for these 🥳. image

Any reasonable application for these yet? I was thinking of enforcing services to only call domain and repository code and similar rules

themassiveone commented 11 months ago

I also wanted to bring up the fact, that architecture changes might be imminent due to roommate specification changes. We should stay as flexible as possible for now!

themassiveone commented 11 months ago

As we are supposed to comply with onion, we should start testing it IMMEDIATELY

@Test
@DisplayName("Die Mwst Anwendung hat eine Onion Architektur")
public void onionArchitektur() throws Exception {
  ArchRule rule = onionArchitecture()
    .domainModels("mwst.domain..")
    .domainServices("mwst.services..")
    .applicationServices("mwst.services..")
    .adapter("web", "mwst.web")
    .adapter("persistence", "mwst.katalog")
    .adapter("kalender", "mwst.kalender");
  rule.check(klassen);
}