Created
June 29, 2016 11:47
-
-
Save irrationnelle/6fe7308cd6892223e5688433ded26cc4 to your computer and use it in GitHub Desktop.
Test codes for calculator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.calculator.test; | |
import com.calculator.Calculator; | |
import org.junit.Test; | |
import static org.junit.Assert.*; | |
public class CalculatorTest { | |
@Test | |
public void sum() throws Exception { | |
Calculator calculator = new Calculator(); | |
assertEquals(30, calculator.sum(10, 20)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment