public class VersionMBeanTest extends MBeanTest
This JUnit test class is for testing the VersionMBean that is available in Derby. Running these tests requires a JVM supporting J2SE 5.0 or better, due to the implementation's dependency of the platform management agent.
This class currently tests the following:
The test fixtures will fail if an exception occurs (will be reported as an error in JUnit).
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE
Constructor and Description |
---|
VersionMBeanTest(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
private javax.management.ObjectName |
getDerbyJarObjectName()
Creates an object name instance for the Derby MBean whose object name's
textual representation includes the following key properties:
type=Version
jar=derby.jar
The object name may also include other key properties such as a system
identifier (DERBY-3466).
|
private javax.management.ObjectName |
getDerbynetJarObjectName()
Creates an object name instance for the Derby MBean whose object name's
textual representation includes the following key properties:
type=Version
jar=derbynet.jar
The object name may also include other key properties such as a system
identifier (DERBY-3466).
|
static junit.framework.Test |
suite() |
void |
testDerbyJarAttributeAlpha() |
void |
testDerbyJarAttributeBeta() |
void |
testDerbyJarAttributeBuildNumber() |
void |
testDerbyJarAttributeMaintenanceVersion() |
void |
testDerbyJarAttributeMajorVersion() |
void |
testDerbyJarAttributeMinorVersion() |
void |
testDerbyJarAttributeProductName() |
void |
testDerbyJarAttributeProductTechnologyName() |
void |
testDerbyJarAttributeProductVendorName() |
void |
testDerbyJarAttributeVersionString() |
void |
testDerbynetJarAttributeAlpha() |
void |
testDerbynetJarAttributeBeta() |
void |
testDerbynetJarAttributeBuildNumber() |
void |
testDerbynetJarAttributeMaintenanceVersion() |
void |
testDerbynetJarAttributeMajorVersion() |
void |
testDerbynetJarAttributeMinorVersion() |
void |
testDerbynetJarAttributeProductName() |
void |
testDerbynetJarAttributeProductTechnologyName() |
void |
testDerbynetJarAttributeProductVendorName() |
void |
testDerbynetJarAttributeVersionString() |
assertBooleanAttribute, assertIntAttribute, assertLongAttribute, assertStringAttribute, checkBooleanAttributeValue, checkIntAttributeValue, checkLongAttributeValue, checkStringAttributeValue, enableManagement, getApplicationManagementMBean, getAttribute, getCommandLineProperties, getDerbyDomainMBeans, getDerbyMBeanName, getMBeanServerConnection, getMBeanServerConnection, invokeOperation, invokeOperation, isPlatformJMXClient, queryMBeans, setAttribute, setUp, suite, tearDown
assertCallError, assertCheckTable, assertCommitError, assertCompileError, assertEquals, assertEquals, assertEquals, assertEquivalentDataType, assertErrorCode, assertGetIntError, assertNextError, assertPreparedStatementError, assertResults, assertResults, assertSQLExceptionEquals, assertSQLState, assertSQLState, assertStatementError, assertStatementError, assertStatementError, assertStatementError, assertStatementErrorUnordered, assertTableRowCount, assertUpdateCount, assertUpdateCount, assertWarning, chattyPrepare, chattyPrepareCall, checkAllConsistency, checkEstimatedRowCount, closeStatement, commit, createStatement, createStatement, createStatement, dropTable, dropTable, dropView, dropView, dumpRs, dumpRs, emptyStatementCache, executeQuery, expectCompilationError, expectCompilationError, expectExecutionError, getClientTransactionID, getConnection, getDatabaseProperty, getLastSQLException, goodStatement, goodUpdate, initializeConnection, openConnection, openDefaultConnection, openDefaultConnection, openDefaultConnection, openUserConnection, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, rollback, runBare, runBareOverridable, runScript, runScript, runSQLCommands, setAutoCommit, usingDB2Client, usingDerbyNetClient, usingEmbedded
alarm, assertDirectoryDeleted, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertLaunchedJUnitTestMethod, assertLaunchedJUnitTestMethod, assertSameNullness, assertSecurityManager, assertThrowableEquals, currentDirectory, execJavaCmd, execJavaCmd, execJavaCmd, fail, getClassVersionMajor, getEmmaJar, getFailureFolder, getFilesWith, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, hasInterruptibleIO, isCVM, isIBMJVM, isJ9Platform, isJava5, isJava7, isPhoneME, isPlatform, isSunJVM, isWindowsPlatform, newAssertionFailedError, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeFiles, removeSystemProperty, runsWithEmma, runsWithJaCoCo, setSystemErr, setSystemOut, setSystemProperty, sleep, sleepAtLeastOneTick, traceit, vmAtLeast
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, toString
public static junit.framework.Test suite()
private javax.management.ObjectName getDerbyJarObjectName() throws java.lang.Exception
Creates an object name instance for the Derby MBean whose object name's textual representation includes the following key properties:
The object name may also include other key properties such as a system identifier (DERBY-3466).
MalformedObjectNameException
- if the object name is not validjava.lang.Exception
private javax.management.ObjectName getDerbynetJarObjectName() throws java.lang.Exception
Creates an object name instance for the Derby MBean whose object name's textual representation includes the following key properties:
The object name may also include other key properties such as a system identifier (DERBY-3466).
MalformedObjectNameException
- if the object name is not validjava.lang.Exception
public void testDerbyJarAttributeAlpha() throws java.lang.Exception
java.lang.Exception
public void testDerbynetJarAttributeAlpha() throws java.lang.Exception
java.lang.Exception
public void testDerbyJarAttributeBeta() throws java.lang.Exception
java.lang.Exception
public void testDerbynetJarAttributeBeta() throws java.lang.Exception
java.lang.Exception
public void testDerbyJarAttributeBuildNumber() throws java.lang.Exception
java.lang.Exception
public void testDerbynetJarAttributeBuildNumber() throws java.lang.Exception
java.lang.Exception
public void testDerbyJarAttributeMaintenanceVersion() throws java.lang.Exception
java.lang.Exception
public void testDerbynetJarAttributeMaintenanceVersion() throws java.lang.Exception
java.lang.Exception
public void testDerbyJarAttributeMajorVersion() throws java.lang.Exception
java.lang.Exception
public void testDerbynetJarAttributeMajorVersion() throws java.lang.Exception
java.lang.Exception
public void testDerbyJarAttributeMinorVersion() throws java.lang.Exception
java.lang.Exception
public void testDerbynetJarAttributeMinorVersion() throws java.lang.Exception
java.lang.Exception
public void testDerbyJarAttributeProductName() throws java.lang.Exception
java.lang.Exception
public void testDerbynetJarAttributeProductName() throws java.lang.Exception
java.lang.Exception
public void testDerbyJarAttributeProductTechnologyName() throws java.lang.Exception
java.lang.Exception
public void testDerbynetJarAttributeProductTechnologyName() throws java.lang.Exception
java.lang.Exception
public void testDerbyJarAttributeProductVendorName() throws java.lang.Exception
java.lang.Exception
public void testDerbynetJarAttributeProductVendorName() throws java.lang.Exception
java.lang.Exception
public void testDerbyJarAttributeVersionString() throws java.lang.Exception
java.lang.Exception
public void testDerbynetJarAttributeVersionString() throws java.lang.Exception
java.lang.Exception
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.