diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..49ca981 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.idea +*.iml +target + diff --git a/README.md b/README.md new file mode 100644 index 0000000..dea635b --- /dev/null +++ b/README.md @@ -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! diff --git a/a.txt b/a.txt new file mode 100644 index 0000000..481fb86 --- /dev/null +++ b/a.txt @@ -0,0 +1 @@ +afasd diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..f849aa0 --- /dev/null +++ b/pom.xml @@ -0,0 +1,46 @@ + + + 4.0.0 + + org.thoughtworkers + java-dojo + 1.0 + + + junit + junit + 4.8.2 + + + + + + + + org.codehaus.mojo + cobertura-maven-plugin + 2.5.2 + + + test + + cobertura + + + + + + 100 + 100 + 100 + 100 + 100 + 100 + + + + + + \ No newline at end of file diff --git a/src/main/java/org/thoughtworkers/Hello.java b/src/main/java/org/thoughtworkers/Hello.java new file mode 100644 index 0000000..169fcd1 --- /dev/null +++ b/src/main/java/org/thoughtworkers/Hello.java @@ -0,0 +1,7 @@ +package org.thoughtworkers; + +public class Hello { + public String say() { + return "Hello, world!"; + } +} diff --git a/src/test/java/org/thoughtworkers/HelloTest.java b/src/test/java/org/thoughtworkers/HelloTest.java new file mode 100644 index 0000000..ba514ce --- /dev/null +++ b/src/test/java/org/thoughtworkers/HelloTest.java @@ -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!")); + } +}