Skip to content

Commit 4e27be6

Browse files
Spring PetClinic 3.3.0 -> 3.4.0.
1 parent 95ac0ab commit 4e27be6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

structurizr-component/src/test/java/com/structurizr/component/SpringPetClinicTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import com.structurizr.component.filter.IncludeFullyQualifiedNameRegexFilter;
77
import com.structurizr.component.matcher.AnnotationTypeMatcher;
88
import com.structurizr.component.matcher.ImplementsTypeMatcher;
9+
import com.structurizr.component.matcher.NameSuffixTypeMatcher;
910
import com.structurizr.component.url.PrefixSourceUrlStrategy;
1011
import com.structurizr.model.Component;
1112
import com.structurizr.model.Container;
@@ -35,7 +36,7 @@ void springPetClinic() {
3536

3637
ComponentFinder componentFinder = new ComponentFinderBuilder()
3738
.forContainer(webApplication)
38-
.fromClasses(new File(springPetClinicHome, "target/spring-petclinic-3.3.0-SNAPSHOT.jar"))
39+
.fromClasses(new File(springPetClinicHome, "target/spring-petclinic-3.4.0-SNAPSHOT.jar"))
3940
.fromSource(new File(springPetClinicHome, "src/main/java"))
4041
.filteredBy(new IncludeFullyQualifiedNameRegexFilter("org\\.springframework\\.samples\\.petclinic\\..*"))
4142
.withStrategy(
@@ -52,7 +53,7 @@ void springPetClinic() {
5253
)
5354
.withStrategy(
5455
new ComponentFinderStrategyBuilder()
55-
.matchedBy(new ImplementsTypeMatcher("org.springframework.data.repository.Repository"))
56+
.matchedBy(new NameSuffixTypeMatcher("Repository"))
5657
.withDescription(new FirstSentenceDescriptionStrategy())
5758
.withTechnology("Spring Data Repository")
5859
.withUrl(new PrefixSourceUrlStrategy("https://github.com/spring-projects/spring-petclinic/blob/main/src/main/java"))

structurizr-dsl/src/test/resources/dsl/spring-petclinic/workspace.dsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ workspace "Spring PetClinic" "A C4 model of the Spring PetClinic sample app (htt
2121
technology "Java and Spring"
2222

2323
!components {
24-
classes "${SPRING_PETCLINIC_HOME}/target/spring-petclinic-3.3.0-SNAPSHOT.jar"
24+
classes "${SPRING_PETCLINIC_HOME}/target/spring-petclinic-3.4.0-SNAPSHOT.jar"
2525
source "${SPRING_PETCLINIC_HOME}/src/main/java"
2626
filter include fqn-regex "org.springframework.samples.petclinic..*"
2727
strategy {
@@ -36,7 +36,7 @@ workspace "Spring PetClinic" "A C4 model of the Spring PetClinic sample app (htt
3636
}
3737
strategy {
3838
technology "Spring Data Repository"
39-
matcher implements "org.springframework.data.repository.Repository"
39+
matcher name-suffix "Repository"
4040
description first-sentence
4141
url prefix-src "https://github.com/spring-projects/spring-petclinic/blob/main/src/main/java"
4242
forEach {

0 commit comments

Comments
 (0)