Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simple test to check jacoco coverage report
- Loading branch information
1 parent
b3c2487
commit 4af62d1
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
com.examples.exercise/src/test/java/com/examples/exercise/StudentTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.examples.exercise; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
import org.junit.Test; | ||
|
||
// TODO: remove this when there are other tests in the project | ||
public class StudentTest { | ||
|
||
@Test | ||
public void test() { | ||
// test only for checking jacoco report | ||
Student student = new Student(); | ||
student.setId("id"); | ||
student.setName("name"); | ||
assertEquals("id", student.getId()); | ||
assertEquals("name", student.getName()); | ||
} | ||
|
||
} |