@@ -0,0 +1,564 @@
+package com.levelup.java.junit;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport org.junit.Test;%0A%0A/**%0A * This java example will demonstrate a simple%0A * test using Junit%0A * %0A * @author Justin Musgrove%0A * @see %3Ca href='http://www.leveluplunch.com/java/examples/junit-test/'%3ESimple Test Junit%3C/a%3E%0A * %0A */%0Apublic class SimpleTest %7B%0A%0A%09static class Calculator %7B%0A%0A%09%09public static int add (int a, int b) %7B%0A%09%09%09return a + b;%0A%09%09%7D%0A%09%09%0A%09%7D%0A%09%0A%09@Test%0A%09public void calculator_add () %7B%0A%09%09int calculatedValue = Calculator.add(5,  10);%0A%09%09assertEquals(15, calculatedValue);%0A%09%7D%0A%09%0A%7D%0A

add junit simple test