This commit is contained in:
2013-03-21 17:19:39 +08:00
6 changed files with 86 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
.idea
*.iml
target
+14
View File
@@ -0,0 +1,14 @@
Java Dojo
=========
# What to do?
```
git://github.com/gigix/java-dojo.git
cd java-dojo
mvn clean install
```
You should see build "BUILD SUCCESS" at the end.
Enjoy your Dojo!
+1
View File
@@ -0,0 +1 @@
afasd
+46
View File
@@ -0,0 +1,46 @@
<?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>org.thoughtworkers</groupId>
<artifactId>java-dojo</artifactId>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.5.2</version>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>cobertura</goal>
</goals>
</execution>
</executions>
<configuration>
<check>
<branchRate>100</branchRate>
<lineRate>100</lineRate>
<totalBranchRate>100</totalBranchRate>
<totalLineRate>100</totalLineRate>
<packageLineRate>100</packageLineRate>
<packageBranchRate>100</packageBranchRate>
</check>
</configuration>
</plugin>
</plugins>
</build>
</project>
@@ -0,0 +1,7 @@
package org.thoughtworkers;
public class Hello {
public String say() {
return "Hello, world!";
}
}
@@ -0,0 +1,14 @@
package org.thoughtworkers;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
public class HelloTest {
@Test
public void shouldSayHelloToTheWorld() throws Exception {
Hello hello = new Hello();
assertThat(hello.say(), is("Hello, world!"));
}
}