Skip to content

Commit 8c39974

Browse files
Update dir structure
1 parent 13ce5be commit 8c39974

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target/

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
<name>Codecov example Java repository</name>
1010
<url>http://github.com/codecov/example-java</url>
1111
<properties>
12-
<maven.compiler.release>18</maven.compiler.release>
12+
<maven.compiler.source>18</maven.compiler.source>
13+
<maven.compiler.target>18</maven.compiler.target>
1314
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1415
</properties>
1516

src/Calculator.java

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package calculator;
2+
3+
public class Calculator {
4+
public static int add(int x, int y) {
5+
return x + y;
6+
}
7+
}

src/CalculatorTest.java renamed to src/test/java/calculator/CalculatorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.codecov;
1+
package calculator;
22

33
import static org.junit.Assert.*;
44

@@ -7,6 +7,6 @@
77
public class CalculatorTest {
88
@Test
99
public void testAdd() {
10-
assertEquals(new Calculator.add(1, 1), 2);
10+
assertEquals(new Calculator().add(1, 1), 2);
1111
}
1212
}

0 commit comments

Comments
 (0)