diff --git a/.classpath b/.classpath
new file mode 100644
index 00000000..1247f9fa
--- /dev/null
+++ b/.classpath
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000..b83d2226
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/target/
diff --git a/.project b/.project
new file mode 100644
index 00000000..ef506eb9
--- /dev/null
+++ b/.project
@@ -0,0 +1,23 @@
+
+
+ travis-ci-tutorial-java
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.m2e.core.maven2Builder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+ org.eclipse.m2e.core.maven2Nature
+
+
diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000..a3b98fd0
--- /dev/null
+++ b/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,8 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
+org.eclipse.jdt.core.compiler.release=disabled
+org.eclipse.jdt.core.compiler.source=1.7
diff --git a/.settings/org.eclipse.m2e.core.prefs b/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 00000000..f897a7f1
--- /dev/null
+++ b/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/.travis.yml b/.travis.yml
index a46bfb85..a32fd709 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,6 +5,6 @@ jdk:
notifications:
email:
recipients:
- - ldeng@towson.edu
+ -gracewilson34@yahoo.com
on_success: always # default: change
on_failure: always # default: always
diff --git a/src/main/java/travis_ci_tutorial_java/SimpleCalculator.java b/src/main/java/travis_ci_tutorial_java/SimpleCalculator.java
index a768b9a2..61833856 100755
--- a/src/main/java/travis_ci_tutorial_java/SimpleCalculator.java
+++ b/src/main/java/travis_ci_tutorial_java/SimpleCalculator.java
@@ -4,4 +4,10 @@ public class SimpleCalculator {
public int add(int a, int b) {
return a + b;
}
+ public int sub(int a, int b) {
+ return a - b;
+ }
+ public int multiply(int a, int b) {
+ return a * b;
+ }
}
diff --git a/src/test/java/travis_ci_tutorial_java/SimpleCalculatorTest.java b/src/test/java/travis_ci_tutorial_java/SimpleCalculatorTest.java
index 9c578eb9..70e98742 100755
--- a/src/test/java/travis_ci_tutorial_java/SimpleCalculatorTest.java
+++ b/src/test/java/travis_ci_tutorial_java/SimpleCalculatorTest.java
@@ -5,10 +5,23 @@
import static org.junit.Assert.*;
import org.junit.*;
-public class SimpleCalculatorTest {
+public class SimpleCalculatorTest
+{
@Test
- public void testAdd() {
+ public void testAdd()
+ {
SimpleCalculator calc = new SimpleCalculator();
assertEquals(calc.add(1, 1), 2);
}
+ public void testSub()
+ {
+ SimpleCalculator calc = new SimpleCalculator();
+ assertEquals(calc.add(1, 1),1);
+ }
+ public void testMultiply()
+ {
+ SimpleCalculator calc = new SimpleCalculator();
+ assertEquals(calc.add(1, 1), 1);
+ }
}
+
diff --git a/target/classes/travis_ci_tutorial_java/SimpleCalculator.class b/target/classes/travis_ci_tutorial_java/SimpleCalculator.class
index aadae118..8ce17f7c 100644
Binary files a/target/classes/travis_ci_tutorial_java/SimpleCalculator.class and b/target/classes/travis_ci_tutorial_java/SimpleCalculator.class differ
diff --git a/target/test-classes/travis_ci_tutorial_java/SimpleCalculatorTest.class b/target/test-classes/travis_ci_tutorial_java/SimpleCalculatorTest.class
index f6880b57..043f3f69 100644
Binary files a/target/test-classes/travis_ci_tutorial_java/SimpleCalculatorTest.class and b/target/test-classes/travis_ci_tutorial_java/SimpleCalculatorTest.class differ