Package Parameter

Source Code of Parameter.NumberParametersMockito

package Parameter;



import Methods.Parameters.Parameter;
import Package.Files.ReaderFile;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import junit.framework.Assert;
import org.junit.Test;
import org.mockito.Mockito;

public class NumberParametersMockito {
   

   
    public NumberParametersMockito() {
    }
   
    @Test
    public void constructMockTest() throws FileNotFoundException, IOException {
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        Parameter listParameters = Mockito.mock(Parameter.class);
        Mockito.when(listParameters.getArrayInfo(reader)).thenReturn(new HashMap());
        Assert.assertEquals(new HashMap(), listParameters.getArrayInfo(reader));
    }
}
TOP

Related Classes of Parameter.NumberParametersMockito

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.