mxhdev / SQLChecker

GNU General Public License v3.0
1 stars 1 forks source link

JUnit - String parsing #2

Open mxhdev opened 8 years ago

mxhdev commented 8 years ago

Introduction

There are currently many test calls for String parsing inside the main function of each class. This would be more appropriate in separate JUnit classes.

What to do

Implement a JUnit class for each class which exposes a

public static String

function and test these functions with different parameters.

Weblinks

JUnit Javadoc (JUnit 4.12) http://junit.org/javadoc/latest/index.html JUnit 4 Example http://www.mkyong.com/unittest/junit-4-tutorial-1-basic-usage/

mxhdev commented 8 years ago

The JUnit test classes could be placed inside the sqlchecker.test.junit package. The "junit" package might not exist yet