com.javaranch.unittest.helper.sql.pool.test
Class TestJNDIUnitTestHelper

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--com.javaranch.unittest.helper.sql.pool.test.TestJNDIUnitTestHelper
All Implemented Interfaces:
junit.framework.Test

public class TestJNDIUnitTestHelper
extends junit.framework.TestCase

Title: TestJNDIUnitTestHelper

Description: What would be the sense of a UnitTest Helper without a UnitTest

Copyright: Copyright (c) 2002

- - - - - - - - - - - - - - - - -

You are welcome to do whatever you want to with this source file provided that you maintain this comment fragment (between the dashed lines). Modify it, change the package name, change the class name ... personal or business use ... sell it, share it ... add a copyright for the portions you add ...

My goal in giving this away and maintaining the copyright is to hopefully direct developers back to JavaRanch.

The original source can be found at JavaRanch

- - - - - - - - - - - - - - - - -

Company: JavaRanch


Constructor Summary
TestJNDIUnitTestHelper(java.lang.String method)
          Constructor TestJNDIUnitTestHelper
 
Method Summary
static void main(java.lang.String[] args)
          Method main
static junit.framework.Test suite()
          Method suite
 void tearDown()
          Method tearDown
 void testGetConnection()
          Method testGetConnection Simply creates the JNDI DataSource, gets a connection and frees it.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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, format
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestJNDIUnitTestHelper

public TestJNDIUnitTestHelper(java.lang.String method)
Constructor TestJNDIUnitTestHelper
Parameters:
method -  
Method Detail

testGetConnection

public void testGetConnection()
Method testGetConnection Simply creates the JNDI DataSource, gets a connection and frees it. Deemed successful if no exceptions are thrown.

tearDown

public void tearDown()
Method tearDown
Overrides:
tearDown in class junit.framework.TestCase

suite

public static junit.framework.Test suite()
Method suite
Returns:
TestSuite to be ran.

main

public static void main(java.lang.String[] args)
Method main
Parameters:
args -