Package com.eviware.soapui.security

Source Code of com.eviware.soapui.security.SQLInjectionTest

/*
*  soapUI, copyright (C) 2004-2011 eviware.com
*
*  soapUI is free software; you can redistribute it and/or modify it under the
*  terms of version 2.1 of the GNU Lesser General Public License as published by
*  the Free Software Foundation.
*
*  soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
*  even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*  See the GNU Lesser General Public License for more details at gnu.org.
*/

package com.eviware.soapui.security;

import java.util.ArrayList;
import java.util.List;

import org.junit.Before;
import org.junit.Test;

import com.eviware.soapui.SoapUI;
import com.eviware.soapui.config.SecurityScanConfig;
import com.eviware.soapui.security.scan.SQLInjectionScan;

/**
* @author dragica.soldo
*
*/
public class SQLInjectionTest extends AbstractSecurityTestCaseWithMockService
{

  /**
   *
   * @throws java.lang.Exception
   */
  @Before
  public void setUp() throws Exception
  {
    super.setUp();
    testStepName = "HTTP Test Request";
    securityCheckType = SQLInjectionScan.TYPE;
    securityCheckName = SQLInjectionScan.NAME;
  }

  @Override
  protected void addSecurityScanConfig( SecurityScanConfig securityScanConfig )
  {

    SQLInjectionScan sqlCheck = ( SQLInjectionScan )SoapUI.getSoapUICore().getSecurityScanRegistry()
        .getFactory( securityCheckType ).buildSecurityScan( testStep, securityScanConfig, null );

    List<String> params = new ArrayList<String>();
    params.add( "q" );
  }

  @Test
  public void testStart()
  {

    SecurityTestRunnerImpl testRunner = new SecurityTestRunnerImpl( createSecurityTest(), null );

    testRunner.start( false );

    // assertEquals( TestStepResult.TestStepStatus.OK,
    testRunner.getStatus();
    // );

    // TODO: finish
    assertEquals( true, true );

  }
}
TOP

Related Classes of com.eviware.soapui.security.SQLInjectionTest

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.