@@ -0,0 +1,647 @@
+package ru.job4j.loop;%0A%0Aimport org.junit.Test;%0Aimport static org.junit.Assert.assertThat;%0Aimport static org.hamcrest.core.Is.is;%0A%0A/**%0A * FactorialTest.%0A * @author mklimentiev%0A * @version 1.0%0A * @since 01.04.2017%0A*/%0Apublic class FactorialTest %7B%0A%0A%09/**%0A%09 * Test calc.%0A%09*/%0A%09@Test%0A%09public void whenCalculateFactorialForFiveThenOneHundredTwenty() %7B%0A%09%09Factorial factorial = new Factorial();%0A%09%09int result = factorial.calc(5);%0A%09%09assertThat(result, is(120));%0A%09%7D%0A%0A%09/**%0A%09 * Test calc.%0A%09*/%0A%09@Test%0A%09public void whenCalculateFactorialForZeroThenOne() %7B%0A%09%09Factorial factorial = new Factorial();%0A%09%09int result = factorial.calc(0);%0A%09%09assertThat(result, is(1));%0A%09%7D%0A%7D%0A

add FactorialTest.java