org.objectweb.cjdbc.scenario.users
Class SQLInjectionScenario.SQLInjectionTest

java.lang.Object
  extended byorg.objectweb.cjdbc.scenario.users.SQLInjectionScenario.SQLInjectionTest
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
SQLInjectionScenario

class SQLInjectionScenario.SQLInjectionTest
extends java.lang.Object
implements java.lang.Runnable

This class defines a SQLInjectionTest

Version:
1.0
Author:
Nicolas Modrzyk

Field Summary
private  java.lang.StringBuffer buf
           
(package private)  java.sql.Connection con
           
private  java.lang.StringBuffer sqlGameBuf
           
private  java.lang.StringBuffer sqlGameTransBuf
           
private  java.lang.StringBuffer sqlLottoBuf
           
 
Constructor Summary
(package private) SQLInjectionScenario.SQLInjectionTest()
           
 
Method Summary
 void run()
           
 void setUp()
          Set up the test.
 void tearDown()
          Clean object after test and reset connection.
 void testCJDBCSqlInjection()
          Start single unit test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sqlGameTransBuf

private java.lang.StringBuffer sqlGameTransBuf

sqlGameBuf

private java.lang.StringBuffer sqlGameBuf

sqlLottoBuf

private java.lang.StringBuffer sqlLottoBuf

buf

private java.lang.StringBuffer buf

con

java.sql.Connection con
Constructor Detail

SQLInjectionScenario.SQLInjectionTest

SQLInjectionScenario.SQLInjectionTest()
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
See Also:
Runnable.run()

setUp

public void setUp()
           throws java.lang.Exception
Set up the test. Prepare the statements and get the connection

Throws:
java.lang.Exception - if fails

tearDown

public void tearDown()
              throws java.lang.Exception
Clean object after test and reset connection.

Throws:
java.lang.Exception - if fails

testCJDBCSqlInjection

public void testCJDBCSqlInjection()
Start single unit test



Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.