|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
net.sourceforge.jtds.test.UnitTestBase
net.sourceforge.jtds.test.DefaultPropertiesUnitTest
public class DefaultPropertiesUnitTest
Unit tests for the DefaultProperties class.
| Constructor Summary | |
|---|---|
DefaultPropertiesUnitTest(java.lang.String name)
Constructor. |
|
| Method Summary | |
|---|---|
void |
test_addDefaultPropertyIfNotSet_DefaultKeyNotSet()
Tests that DefaultProperties.addDefaultPropertyIfNotSet(java.util.Properties, java.lang.String, java.lang.String, java.util.Map)
does not set a default property if the defaultKey is not set. |
void |
test_addDefaultPropertyIfNotSet_DefaultKeySet_PropertyAlreadySet()
Tests that DefaultProperties.addDefaultPropertyIfNotSet(java.util.Properties, java.lang.String, java.lang.String, java.util.Map)
does not set a default property if the property is already set. |
void |
test_addDefaultPropertyIfNotSet_DefaultKeySet_PropertyNotSet()
Tests that DefaultProperties.addDefaultPropertyIfNotSet(java.util.Properties, java.lang.String, java.lang.String, java.util.Map)
sets a default property if the property is not already set. |
void |
test_addDefaultPropertyIfNotSet_PropertyAlreadySet()
Tests that DefaultProperties.addDefaultPropertyIfNotSet(java.util.Properties, java.lang.String, java.lang.String)
does not set a default property if the property is already set. |
void |
test_addDefaultPropertyIfNotSet_PropertyNotSet()
Tests that DefaultProperties.addDefaultPropertyIfNotSet(java.util.Properties, java.lang.String, java.lang.String)
sets a default property if the property is not already set. |
void |
test_getNamedPipePath_DEFAULT()
|
void |
test_getNamedPipePath_INVALID()
|
void |
test_getNamedPipePath_SQLSERVER()
|
void |
test_getNamedPipePath_SYBASE()
|
void |
test_getServerType_intToString_Null()
|
void |
test_getServerType_intToString_SQLSERVER()
|
void |
test_getServerType_intToString_SYBASE()
|
void |
test_getServerType_StringToInteger_Null()
|
void |
test_getServerType_StringToInteger_SQLSERVER()
|
void |
test_getServerType_StringToInteger_SYBASE()
|
void |
test_getTdsVersion_StringToInteger_Null()
|
void |
test_getTdsVersion_StringToInteger_TDS42()
|
void |
test_getTdsVersion_StringToInteger_TDS50()
|
void |
test_getTdsVersion_StringToInteger_TDS70()
|
void |
test_getTdsVersion_StringToInteger_TDS80()
|
| Methods inherited from class net.sourceforge.jtds.test.UnitTestBase |
|---|
assertEquals, invokeConstructor, invokeGetInstanceField, invokeInstanceMethod, invokeSetInstanceField, invokeStaticMethod, ucFirst |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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 |
| Constructor Detail |
|---|
public DefaultPropertiesUnitTest(java.lang.String name)
name - The name of the test.| Method Detail |
|---|
public void test_addDefaultPropertyIfNotSet_PropertyNotSet()
DefaultProperties.addDefaultPropertyIfNotSet(java.util.Properties, java.lang.String, java.lang.String)
sets a default property if the property is not already set.
public void test_addDefaultPropertyIfNotSet_PropertyAlreadySet()
DefaultProperties.addDefaultPropertyIfNotSet(java.util.Properties, java.lang.String, java.lang.String)
does not set a default property if the property is already set.
public void test_addDefaultPropertyIfNotSet_DefaultKeyNotSet()
DefaultProperties.addDefaultPropertyIfNotSet(java.util.Properties, java.lang.String, java.lang.String, java.util.Map)
does not set a default property if the defaultKey is not set.
public void test_addDefaultPropertyIfNotSet_DefaultKeySet_PropertyNotSet()
DefaultProperties.addDefaultPropertyIfNotSet(java.util.Properties, java.lang.String, java.lang.String, java.util.Map)
sets a default property if the property is not already set.
public void test_addDefaultPropertyIfNotSet_DefaultKeySet_PropertyAlreadySet()
DefaultProperties.addDefaultPropertyIfNotSet(java.util.Properties, java.lang.String, java.lang.String, java.util.Map)
does not set a default property if the property is already set.
public void test_getServerType_intToString_Null()
public void test_getServerType_intToString_SQLSERVER()
public void test_getServerType_intToString_SYBASE()
public void test_getServerType_StringToInteger_Null()
public void test_getServerType_StringToInteger_SQLSERVER()
public void test_getServerType_StringToInteger_SYBASE()
public void test_getTdsVersion_StringToInteger_Null()
public void test_getTdsVersion_StringToInteger_TDS42()
public void test_getTdsVersion_StringToInteger_TDS50()
public void test_getTdsVersion_StringToInteger_TDS70()
public void test_getTdsVersion_StringToInteger_TDS80()
public void test_getNamedPipePath_DEFAULT()
public void test_getNamedPipePath_INVALID()
public void test_getNamedPipePath_SQLSERVER()
public void test_getNamedPipePath_SYBASE()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||