anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: serg-delft/andy
Issue: assertThatExceptionOfType is not counted as an assertion by code check

`assertThatExceptionOfType` is not considered an assertion by the TestMethodsHaveAssertions code check: https://github.com/cse1110/andy/blob/main/src/main/java/nl/tudelft/cse1110/andy/codechecker/checks/TestMethodsHaveAssertions.java

This assertion method as well as all other AssertJ methods that have been missed should be added to this code check.

Changed files:
src/main/java/nl/tudelft/cse1110/andy/codechecker/checks/TestMethodsHaveAssertions.java

diff --git a/src/main/java/nl/tudelft/cse1110/andy/codechecker/checks/TestMethodsHaveAssertions.java b/src/main/java/nl/tudelft/cse1110/andy/codechecker/checks/TestMethodsHaveAssertions.java
index 523423e..76fa129 100644
--- a/src/main/java/nl/tudelft/cse1110/andy/codechecker/checks/TestMethodsHaveAssertions.java
+++ b/src/main/java/nl/tudelft/cse1110/andy/codechecker/checks/TestMethodsHaveAssertions.java
@@ -39,6 +39,13 @@ public class TestMethodsHaveAssertions extends WithinTestMethod {
         // assertj
         add("assertThat");
         add("assertThatThrownBy");
+        add("assertThatExceptionOfType");
+        add("assertThatCode");
+        add("assertThatIllegalArgumentException");
+        add("assertThatIllegalStateException");
+        add("assertThatIOException");
+        add("assertThatNullPointerException");
+        add("assertThatObject");
 
     }};