package com.devproserv.courses.command;

import static org.mockito.Mockito.*;

import javax.servlet.http.HttpServletRequest;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;

/**
 * Test suite for CommandFactory class
 * It is not fully isolated from other classes in the package
 * 
 * @author vovas11
 */
//@RunWith(PowerMockRunner.class)
//@PrepareForTest(CommandFactory.class)
public class CommandFactoryTest {
    
    @Test
    public void testFirst() throws Exception {
        
        //HttpServletRequest request = mock(HttpServletRequest.class);
        //when(request.getParameter("command")).thenReturn("login");
        
        //CommandFactory commandFactoryMock = mock(CommandFactory.class);
        
    }
}

@@ -32,24 +32,26 @@
 command;%0D%0A%0D%0A
+//
 import stati
@@ -74,24 +74,26 @@
 ckito.*;%0D%0A%0D%0A
+//
 import javax
@@ -149,24 +149,26 @@
 unit.Test;%0D%0A
+//
 import org.j
@@ -189,16 +189,18 @@
 nWith;%0D%0A
+//
 import o
@@ -239,16 +239,18 @@
 ckito;%0D%0A
+//
 import o
@@ -308,16 +308,18 @@
 rTest;%0D%0A
+//
 import o

Change CommandFactoryTest