SysTestCaseCompanyData Class [AX 2012]
The SysTestCaseCompanyData class is designed as a base class for test cases that use company data.
Syntax
class SysTestCaseCompanyData extends SysTestCase
Run On
Called
Methods
Method | Description | |
---|---|---|
assertEquals | Checks whether two values are equal. (Inherited from SysTestAssert.) | |
assertExpectedInfoLogMessage | Validates that an expected message has been put in the Infolog. (Inherited from SysTestCase.) | |
assertFalse | Checks whether a condition is not true. (Inherited from SysTestAssert.) | |
assertNotEqual | Checks whether two values are not equal. (Inherited from SysTestAssert.) | |
assertNotNull | Checks whether the value is not nullNothingnullptrunita null reference (Nothing in Visual Basic). (Inherited from SysTestAssert.) | |
assertNotSame | Checks whether the objects are not the same. (Inherited from SysTestAssert.) | |
assertNull | Checks whether the value is nullNothingnullptrunita null reference (Nothing in Visual Basic). (Inherited from SysTestAssert.) | |
assertRealEquals | Checks whether two values are equal with regard to a delta. (Inherited from SysTestAssert.) | |
assertSame | Checks whether the objects are the same. (Inherited from SysTestAssert.) | |
assertTrue | Checks whether the condition is true. (Inherited from SysTestAssert.) | |
cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) | |
createSuite | Gets a new instance of the SysTestSuiteCompIsolateClassWithTts class. (Overrides the createSuite Method.) | |
equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) | |
exceptionExpected | Indicates whether the current test is expected to throw an exception. (Inherited from SysTestCase.) | |
exceptionMessage | Gets the exception message of the expected exception. (Inherited from SysTestCase.) | |
fail | Fails the current test case. (Inherited from SysTestAssert.) | |
faultCode | (Inherited from SysTestCase.) | |
faultExpected | (Inherited from SysTestCase.) | |
faultReason | (Inherited from SysTestCase.) | |
getListenerInformation | Gets the listener information for the test method. (Inherited from SysTestCase.) | |
getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) | |
handle | Retrieves the handle of the class of the object. (Inherited from Object.) | |
info | Logs an informational message to the Infolog. (Inherited from SysTestAssert.) | |
new | Initializes a new instance of the SysTestCase class. (Inherited from SysTestCase.) | |
notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) | |
notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) | |
objectOnServer | Determines whether the object is on a server. (Inherited from Object.) | |
otherCompany | Gets the third of three companies supported by this test case base class. | |
owner | Returns the instance that owns the object. (Inherited from Object.) | |
parmExceptionExpected | Determines whether an exception is expected in the current test. (Inherited from SysTestCase.) | |
parmFaultExpected | (Inherited from SysTestCase.) | |
primaryCompany | Gets the first of three companies supported by this test case base class. | |
run | Runs the test case. (Inherited from SysTestCase.) | |
secondaryCompany | Gets the second of three companies supported by this test case base class. | |
setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) | |
setUp | Sets up the test case environment. (Inherited from SysTestCase.) | |
setUpTestCase | Sets up the test environment for the test case. (Inherited from SysTestCase.) | |
tearDown | Tears down the test case environment. (Inherited from SysTestCase.) | |
tearDownTestCase | Tears down the test environment for the test case. (Overrides the tearDownTestCase Method.) | |
testMethods | Returns the test methods for a test case. (Inherited from SysTestCase.) | |
testsElementName | Gets the name of the code coverage element. (Inherited from SysTestCase.) | |
testsElementType | Gets the type of the code coverage element. (Inherited from SysTestCase.) | |
testSuite | ||
toString | Returns a string that represents the current object. (Inherited from Object.) | |
usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) | |
useSingleInstance | Gets a value that ensures all test methods are run in the same instance of the test case. (Overrides the useSingleInstance Method.) | |
useTtsIsolation | Gets a value that indicates whether automatic rollback is enforced. | |
wait | Pauses a process. (Inherited from Object.) | |
xml | Returns an XML string that represents the current object. (Inherited from Object.) | |
::clearCompanyCache | Clears the cache for the specified company. |
Top
Remarks
This class supports the following functionality.
The use of the SysTestSuiteCompIsolateClassWithTts test suite provides the benefits of company isolation and automatic transaction rollback, or
The use of the SysTestSuiteCompanyIsolateClass test suite provides the benefits of company isolation.
Deriving from SysTestCase provides the benefit of test case level set up and tear down methods.
The test methods are all run in the same instance of the test case.
The availability of three explicit test companies supports multi-company testing.
Inheritance Hierarchy
Object Class
SysTestAssert Class
SysTestCase Class
SysTestCaseCompanyData Class