Skip to content

Commit 7fd368b

Browse files
committed
Test base and edge case
1 parent 2893d6a commit 7fd368b

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package org.example;
2+
3+
import org.junit.jupiter.api.Test;
4+
5+
import static org.assertj.core.api.Assertions.assertThat;
6+
7+
public class BasicTest {
8+
@Test
9+
void shouldAlwaysPass() {
10+
assertThat(1 + 1).isEqualTo(2);
11+
}
12+
}

src/test/java/org/example/MainTest.java renamed to src/test/java/org/example/EdgeCaseTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
import static org.assertj.core.api.Assertions.assertThat;
66

7-
class MainTest {
7+
public class EdgeCaseTest {
88
@Test
9-
void test() {
10-
assertThat(true).isTrue();
9+
void shouldAlwaysFail() {
10+
assertThat("actual").isEqualTo("expected");
1111
}
12-
}
12+
}

0 commit comments

Comments
 (0)