File tree Expand file tree Collapse file tree 5 files changed +17
-8
lines changed
main/java/org/jacoco/examples/maven/java
test/java/org/jacoco/examples/maven/java Expand file tree Collapse file tree 5 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 11language : java
22sudo : false # faster builds
33
4+ jdk :
5+ - oraclejdk11
6+ - oraclejdk14
7+
48after_success :
59 - bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change 1-
2-
3-
41# [ Codecov] [ 0 ] Java Example
52
3+ [ ![ Build Status] ( https://travis-ci.org/codecov/example-java.svg?branch=master )] ( https://travis-ci.org/codecov/example-java )
4+ [ ![ codecov] ( https://codecov.io/gh/codecov/example-java/branch/master/graph/badge.svg )] ( https://codecov.io/gh/codecov/example-java )
5+
66## Guide
77
88### Travis Setup
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22
3- <!--
3+ <!--
44 Copyright (c) 2009, 2012 Mountainminds GmbH & Co. KG and Contributors
55 All rights reserved. This program and the accompanying materials
66 are made available under the terms of the Eclipse Public License v1.0
77 which accompanies this distribution, and is available at
88 http://www.eclipse.org/legal/epl-v10.html
9-
9+
1010 Contributors:
1111 Marc R. Hoffmann - initial API and implementation
1212-->
2222
2323 <name >JaCoCo Maven plug-in example for Java project</name >
2424 <url >http://www.eclemma.org/jacoco</url >
25+ <properties >
26+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
27+ <maven .compiler.source>1.8</maven .compiler.source>
28+ <maven .compiler.target>1.8</maven .compiler.target>
29+ </properties >
2530
2631 <dependencies >
2732 <dependency >
Original file line number Diff line number Diff line change 11package org .jacoco .examples .maven .java ;
22
33public class HelloWorld {
4-
4+
55 public String getMessage (boolean bigger ) {
66 if (bigger ) {
77 return "Hello Universe!" ;
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ public class HelloWorldTest {
1313 public void setup () {
1414 subject = new HelloWorld ();
1515 }
16-
16+
1717 @ Test
1818 public void testGetMessage () {
1919 assertEquals ("Hello World!" , subject .getMessage (false ));
2020 }
21-
21+
2222}
You can’t perform that action at this time.
0 commit comments