Skip to content

Commit

Permalink
Dummy: code smell - join these multiple assertions subject to one ass…
Browse files Browse the repository at this point in the history
…ertion chain
  • Loading branch information
pascalgrimaud committed Jan 14, 2022
1 parent 1c9305f commit 1b10c23
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 1b10c23

Please sign in to comment.