package com.github.platinumrondo.clickcount.model;

import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;

public class SingleIncrementCountModelTest {
    private SingleIncrementCountModel model;
    
    @Before
    public void setUp() {
        model = new SingleIncrementCountModel();
    }
    
    @Test
    public void testIncrement() {
        model.increment();
        assertEquals(1, model.get());
    }
    
    @Test
    public void testGet() {
        assertEquals(0, model.get());
    }
    
    @Test
    public void testReset() {
        model.reset();
        assertEquals(0, model.get());
    }

}

@@ -139,16 +139,42 @@
 quals;%0A%0A
+import java.util.Random;%0A%0A
 public c
@@ -360,32 +360,288 @@
 %0A    %0A    @Test%0A
+    public void testConstructorWithInitialValue() %7B%0A        Random r = new Random();%0A        int initialValue = r.nextInt();%0A        model = new SingleIncrementCountModel(initialValue);%0A        assertEquals(initialValue, model.get());%0A    %7D%0A    %0A    @Test%0A
     public void 

Test the constructor with initial value.