Skip to content

Commit

Permalink
Merge pull request #534 from pascalgrimaud/dummy-code-smell
Browse files Browse the repository at this point in the history
Dummy: code smell - join these multiple assertions
  • Loading branch information
pascalgrimaud authored Jan 14, 2022
2 parents 1c9305f + 1b10c23 commit b0dd974
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ new file mode 100644
index 0000000..fd7d1f9
--- /dev/null
+++ b/src/test/java/{{packagePath}}/dummy/infrastructure/secondary/DummyInMemoryRepositoryTest.java
@@ -0,0 +1,54 @@
@@ -0,0 +1,53 @@
+package {{packageName}}.dummy.infrastructure.secondary;
+
+import static org.assertj.core.api.Assertions.assertThat;
Expand Down Expand Up @@ -351,7 +351,6 @@ index 0000000..fd7d1f9
+ repository.add(dummy);
+
+ List<Dummy> result = repository.list();
+ assertThat(result).hasSize(1);
+ assertThat(result).contains(dummy);
+ assertThat(result).hasSize(1).contains(dummy);
+ }
+}

0 comments on commit b0dd974

Please sign in to comment.