org.objectweb.cjdbc.scenario.users
Class SQLInjectionScenario.SQLInjectionTest
java.lang.Object
org.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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
SQLInjectionScenario.SQLInjectionTest
SQLInjectionScenario.SQLInjectionTest()
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.