Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into SchoolController-Is…
Browse files Browse the repository at this point in the history
…sue-12
  • Loading branch information
Cosimo5lli committed Nov 11, 2016
2 parents f428570 + 9e49c0c commit 24a5ec4
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .travis.yml
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:
Expand Down
3 changes: 2 additions & 1 deletion com.examples.exercise/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.data.file>${project.build.directory}/coverage-reports/jacoco.exec</jacoco.data.file>
<jacoco.report.path>${project.reporting.outputDirectory}/jacoco-ut</jacoco.report.path>
</properties>

<build>
Expand Down Expand Up @@ -54,7 +55,7 @@
</goals>
<configuration>
<dataFile>${jacoco.data.file}</dataFile>
<outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
<outputDirectory>${jacoco.report.path}</outputDirectory>
</configuration>
</execution>
</executions>
Expand Down
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());
}

}

0 comments on commit 24a5ec4

Please sign in to comment.