@@ -0,0 +1,1059 @@
+package no.ntnu.capgeminitest.dbacalculator;%0A%0Aimport static org.hamcrest.CoreMatchers.*;%0Aimport static org.junit.Assert.*;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic class DbaCalculatorLogicTest %7B%0A%09private DbaCalculatorLogic logic = new DbaCalculatorLogic();%0A%09%0A%09@Before%0A%09public void setUp() throws Exception %7B%0A%09%7D%0A%09%0A%09@Test%0A%09public void testInitialState() %7B%0A%09%09assertThat(logic.text.get(), equalTo(%220%22));%0A%09%7D%0A%09%0A%09@Test%0A%09public void testIncrement() %7B%0A%09%09increment(50);%0A%09%09assertThat(logic.text.get(), equalTo(%2250%22));%0A%09%7D%0A%09%0A%09@Test%0A%09public void testDecrement() %7B%0A%09%09decrement(10);%0A%09%09assertThat(logic.text.get(), equalTo(%22-10%22));%0A%09%7D%0A%09%0A%09@Test%0A%09public void testIncrementDecrement() %7B%0A%09%09increment(20);%0A%09%09decrement(10);%0A%09%09increment(9);%0A%09%09decrement(9);%0A%09%09assertThat(logic.text.get(), equalTo(%2210%22));%0A%09%7D%0A%09%0A%09public void increment(int number) %7B%0A%09%09for (int i = 0; i %3C number; i++) %7B%0A%09%09%09logic.numberIncrementer.set(new Object());%0A%09%09%7D%0A%09%7D%0A%09%0A%09public void decrement(int number) %7B%0A%09%09for (int i = 0; i %3C number; i++) %7B%0A%09%09%09logic.numberDecrementer.set(new Object());%0A%09%09%7D%0A%09%7D%0A%7D%0A

Add test for Calculator logic.