Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll committed Sep 28, 2022
1 parent 38d91ba commit 737967f
Showing 1 changed file with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void addForFeatureComponentWithSameNameReturnsDifferentInstances() {
}

@Test
void getOrAddForFeatureComponentWhenNewReturnsGeneratedMethod() {
void getOrAddForFeatureComponentWhenNewReturnsGeneratedClass() {
GeneratedClass generatedClass1 = this.generatedClasses
.getOrAddForFeatureComponent("one", TestComponent.class, emptyTypeCustomizer);
GeneratedClass generatedClass2 = this.generatedClasses
Expand All @@ -109,7 +109,7 @@ void getOrAddForFeatureComponentWhenNewReturnsGeneratedMethod() {
}

@Test
void getOrAddForFeatureWhenNewReturnsGeneratedMethod() {
void getOrAddForFeatureWhenNewReturnsGeneratedClass() {
GeneratedClass generatedClass1 = this.generatedClasses
.getOrAddForFeature("one", emptyTypeCustomizer);
GeneratedClass generatedClass2 = this.generatedClasses
Expand All @@ -119,7 +119,7 @@ void getOrAddForFeatureWhenNewReturnsGeneratedMethod() {
}

@Test
void getOrAddForFeatureComponentWhenRepeatReturnsSameGeneratedMethod() {
void getOrAddForFeatureComponentWhenRepeatReturnsSameGeneratedClass() {
GeneratedClass generatedClass1 = this.generatedClasses
.getOrAddForFeatureComponent("one", TestComponent.class, emptyTypeCustomizer);
GeneratedClass generatedClass2 = this.generatedClasses
Expand All @@ -131,7 +131,7 @@ void getOrAddForFeatureComponentWhenRepeatReturnsSameGeneratedMethod() {
}

@Test
void getOrAddForFeatureWhenRepeatReturnsSameGeneratedMethod() {
void getOrAddForFeatureWhenRepeatReturnsSameGeneratedClass() {
GeneratedClass generatedClass1 = this.generatedClasses
.getOrAddForFeature("one", emptyTypeCustomizer);
GeneratedClass generatedClass2 = this.generatedClasses
Expand All @@ -145,10 +145,14 @@ void getOrAddForFeatureWhenRepeatReturnsSameGeneratedMethod() {
@Test
void getOrAddForFeatureComponentWhenHasFeatureNamePrefix() {
GeneratedClasses prefixed = this.generatedClasses.withFeatureNamePrefix("prefix");
GeneratedClass generatedClass1 = this.generatedClasses.getOrAddForFeatureComponent("one", TestComponent.class, emptyTypeCustomizer);
GeneratedClass generatedClass2 = this.generatedClasses.getOrAddForFeatureComponent("one", TestComponent.class, emptyTypeCustomizer);
GeneratedClass generatedClass3 = prefixed.getOrAddForFeatureComponent("one", TestComponent.class, emptyTypeCustomizer);
GeneratedClass generatedClass4 = prefixed.getOrAddForFeatureComponent("one", TestComponent.class, emptyTypeCustomizer);
GeneratedClass generatedClass1 = this.generatedClasses.getOrAddForFeatureComponent(
"one", TestComponent.class, emptyTypeCustomizer);
GeneratedClass generatedClass2 = this.generatedClasses.getOrAddForFeatureComponent(
"one", TestComponent.class, emptyTypeCustomizer);
GeneratedClass generatedClass3 = prefixed.getOrAddForFeatureComponent
("one", TestComponent.class, emptyTypeCustomizer);
GeneratedClass generatedClass4 = prefixed.getOrAddForFeatureComponent(
"one", TestComponent.class, emptyTypeCustomizer);
assertThat(generatedClass1).isSameAs(generatedClass2).isNotSameAs(generatedClass3);
assertThat(generatedClass3).isSameAs(generatedClass4);
}
Expand Down

0 comments on commit 737967f

Please sign in to comment.