Skip to content

Commit

Permalink
add java-tdd module
Browse files Browse the repository at this point in the history
  • Loading branch information
jak78 committed Apr 3, 2020
1 parent 811d543 commit 53a63cb
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
3 changes: 3 additions & 0 deletions java-tdd/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.idea/
/target/
*.iml
42 changes: 42 additions & 0 deletions java-tdd/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>fr.jakubowski</groupId>
<artifactId>java-tdd</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.6.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.15.0</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>3.3.3</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
</plugins>
</build>

</project>
6 changes: 6 additions & 0 deletions java-tdd/src/main/java/RomanNumeral.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
public class RomanNumeral {

public static String convert(int arabicNumber) {
return "";
}
}
11 changes: 11 additions & 0 deletions java-tdd/src/test/java/RomanNumeralTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.assertThat;

public class RomanNumeralTest {
@Test
public void firstTest() {
assertThat(RomanNumeral.convert(0)).isEqualTo("");
}

}

0 comments on commit 53a63cb

Please sign in to comment.