Skip to content

Commit

Permalink
Add test for primitive type.
Browse files Browse the repository at this point in the history
  • Loading branch information
footaku committed Oct 29, 2023
1 parent 07b703b commit 811b630
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/test/java/com/example/footaku/NormalClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,8 @@ public String annotatedWithJakartaNullable() {
public String annotatedWithSpringNullable() {
return "Hello, world";
}

public int primitiveTypeNeedNotAnnotations() {
return -1;
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.github.footaku.erai;

import io.github.footaku.erai.rule.ShouldBeIndicateReturnValueNullability;
import com.societegenerale.commons.plugin.utils.ArchUtils;
import io.github.footaku.erai.rule.ShouldBeIndicateReturnValueNullability;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand All @@ -28,7 +28,6 @@ public void defaultSettingTestShouldThrowViolations() {
});

Assertions.assertThat(th).isInstanceOf(AssertionError.class).hasMessageContaining("was violated (2 times)");

}

@Test
Expand Down

0 comments on commit 811b630

Please sign in to comment.