Skip to content

Instantly share code, notes, and snippets.

@irrationnelle
Created June 29, 2016 11:47
Show Gist options
  • Save irrationnelle/6fe7308cd6892223e5688433ded26cc4 to your computer and use it in GitHub Desktop.
Save irrationnelle/6fe7308cd6892223e5688433ded26cc4 to your computer and use it in GitHub Desktop.
Test codes for calculator
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