fix testdata

GitOrigin-RevId: 9cf995a9d83b43464d2c54269f8f4bfcbdadbdfc
This commit is contained in:
Anna Kozlova
2022-06-13 12:33:11 +02:00
committed by intellij-monorepo-bot
parent 74365eb084
commit a1c3e202e3
2 changed files with 4 additions and 4 deletions

View File

@@ -9,8 +9,8 @@ public class AssertNotEqualsBetweenInconvertibleTypes {
@Test
public void test() {
<weak_warning descr="Possible redundant assertion: incompatible types are compared 'String' and 'int'">assertNotEquals</weak_warning>("java", 1);
<weak_warning descr="Possible redundant assertion: incompatible types are compared 'int[]' and 'double'">assertNotEquals</weak_warning>(new int[0], 1.0);
<weak_warning descr="Possibly redundant assertion: incompatible types are compared 'String' and 'int'">assertNotEquals</weak_warning>("java", 1);
<weak_warning descr="Possibly redundant assertion: incompatible types are compared 'int[]' and 'double'">assertNotEquals</weak_warning>(new int[0], 1.0);
assertNotEquals(new int[0], new int[1]); //ok
}
}

View File

@@ -5,8 +5,8 @@ import org.assertj.core.api.Assertions;
class MyTest {
@org.junit.jupiter.api.Test
void myTest() {
Assertions.assertThat("java").as("test").<weak_warning descr="Possible redundant assertion: incompatible types are compared 'int' and 'String'">isNotEqualTo</weak_warning>(1);
Assertions.assertThat(new int[0]).describedAs("test").<weak_warning descr="Possible redundant assertion: incompatible types are compared 'double' and 'int[]'">isNotEqualTo</weak_warning>(1.0);
Assertions.assertThat("java").as("test").<weak_warning descr="Possibly redundant assertion: incompatible types are compared 'int' and 'String'">isNotEqualTo</weak_warning>(1);
Assertions.assertThat(new int[0]).describedAs("test").<weak_warning descr="Possibly redundant assertion: incompatible types are compared 'double' and 'int[]'">isNotEqualTo</weak_warning>(1.0);
Assertions.assertThat(new int[0]).isNotEqualTo(new int[1]); //ok
}
}