Skip to content

Instantly share code, notes, and snippets.

@meaganewaller
Created November 6, 2013 23:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meaganewaller/7346296 to your computer and use it in GitHub Desktop.
Save meaganewaller/7346296 to your computer and use it in GitHub Desktop.
package com.kata.junit;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
public class PrimeFactorsTest {
private PrimeFactors primeFactors;
@Before
pubic void setUp() throws Exception {
primeFactors = new PrimeFactors();
}
@Test
public void oneGeneratesEmptyList() throws Exception {
List actualResult = primeFactors.generate(1)
ArrayList expectedResult = new ArrayList<Integer>();
assertEquals(actualResult, expectedResult);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment