org.codehaus.mojo.sql
Class SqlExecMojoTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.plugin.testing.AbstractMojoTestCase
                  extended by org.codehaus.mojo.sql.SqlExecMojoTest
All Implemented Interfaces:
junit.framework.Test

public class SqlExecMojoTest
extends org.apache.maven.plugin.testing.AbstractMojoTestCase

Unit test for simple SqlExecMojo.


Field Summary
private  SqlExecMojo mojo
           
private  Properties p
           
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
basedir, container
 
Constructor Summary
SqlExecMojoTest()
           
 
Method Summary
 void setUp()
           
 void testAllMojo()
          Ensure srcFiles always execute first
 void testBadDelimiter()
           
 void testBadDelimiterType()
           
 void testBadDriver()
           
 void testBadFile()
           
 void testBadUrl()
           
 void testBlockMode()
           
 void testCreateCommandMojo()
           
 void testDefaultUsernamePassword()
           
 void testDriverProperties()
           
 void testDropCommandMojo()
           
 void testFileArrayMojo()
           
 void testFileSetMojo()
           
 void testGoodDelimiter()
           
 void testGoodDelimiterType()
           
 void testKeepFormat()
           
 void testNoCommandMojo()
          No error when there is no input
 void testOnError()
           
 void testOnErrorAbortAfterMojo()
           
 void testOnErrorAbortMojo()
           
 void testOnErrorContinueMojo()
           
 void testOrderFile()
           
 void testOutputFile()
           
 void testSkip()
           
 void testUsernamePasswordLookup()
           
 
Methods inherited from class org.apache.maven.plugin.testing.AbstractMojoTestCase
configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, setVariableValueToObject
 
Methods inherited from class org.codehaus.plexus.PlexusTestCase
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mojo

private SqlExecMojo mojo

p

private Properties p
Constructor Detail

SqlExecMojoTest

public SqlExecMojoTest()
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class org.apache.maven.plugin.testing.AbstractMojoTestCase
Throws:
Exception

testNoCommandMojo

public void testNoCommandMojo()
                       throws org.apache.maven.plugin.MojoExecutionException
No error when there is no input

Throws:
org.apache.maven.plugin.MojoExecutionException

testCreateCommandMojo

public void testCreateCommandMojo()
                           throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

testDropCommandMojo

public void testDropCommandMojo()
                         throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

testFileSetMojo

public void testFileSetMojo()
                     throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

testFileArrayMojo

public void testFileArrayMojo()
                       throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

testAllMojo

public void testAllMojo()
                 throws org.apache.maven.plugin.MojoExecutionException
Ensure srcFiles always execute first

Throws:
org.apache.maven.plugin.MojoExecutionException

testOrderFile

public void testOrderFile()
                   throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

testOnErrorContinueMojo

public void testOnErrorContinueMojo()
                             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

testOnErrorAbortMojo

public void testOnErrorAbortMojo()
                          throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

testOnErrorAbortAfterMojo

public void testOnErrorAbortAfterMojo()
                               throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

testDefaultUsernamePassword

public void testDefaultUsernamePassword()
                                 throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

testUsernamePasswordLookup

public void testUsernamePasswordLookup()
                                throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

testBadDriver

public void testBadDriver()

testBadUrl

public void testBadUrl()

testBadFile

public void testBadFile()

testOnError

public void testOnError()

testSkip

public void testSkip()
              throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

testDriverProperties

public void testDriverProperties()
                          throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

testBlockMode

public void testBlockMode()
                   throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

testKeepFormat

public void testKeepFormat()
                    throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

testBadDelimiter

public void testBadDelimiter()
                      throws Exception
Throws:
Exception

testGoodDelimiter

public void testGoodDelimiter()
                       throws Exception
Throws:
Exception

testBadDelimiterType

public void testBadDelimiterType()
                          throws Exception
Throws:
Exception

testGoodDelimiterType

public void testGoodDelimiterType()
                           throws Exception
Throws:
Exception

testOutputFile

public void testOutputFile()
                    throws Exception
Throws:
Exception


Copyright © 2006-2011 The Kuali Foundation. All Rights Reserved.