-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into SchoolController-Is…
…sue-12
- Loading branch information
Showing
3 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,5 +1,11 @@ | ||
sudo: false | ||
|
||
language: java | ||
|
||
cache: | ||
directories: | ||
- $HOME/.m2 | ||
|
||
install: true | ||
|
||
script: | ||
|
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
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()); | ||
} | ||
|
||
} |