servoy sReturnTypes 2 100% height: 30px; 2 Supported Clients sWordList SmartClient sWordList WebClient sWordList NGClient sWordList MobileClient
servoy sSummary 12% 30% 58% height: 30px; 3 Methods Summary void Asserts that two values are equal. void Asserts that two values are equal. void Asserts that a condition is false. void Asserts that a condition is false. void Asserts that two floating point values are equal to within a given tolerance. void Asserts that two floating point values are equal to within a given tolerance. void Asserts that a regular expression matches a string. void Asserts that a regular expression matches a string. void Asserts that an object is not null. void Asserts that an object is not null. void Asserts that two values are not the same. void Asserts that two values are not the same. void Asserts that an object is not undefined. void Asserts that an object is not undefined. void Asserts that an object is null. void Asserts that an object is null. void Asserts that two values are the same. void Asserts that two values are the same. void Asserts that a condition is true. void Asserts that a condition is true. void Asserts that an object is undefined. void Asserts that an object is undefined. void Fails a test. void Fails a test. void Fails a test.
Returns
sIndent function servoy sDetail 2 100% height:30px 2 Methods Details assertEquals name assertEquals(expected, actual) des sIndent Asserts that two values are equal. AssertionFailedError is thrown if the actual value does not match the regular expression. prs Parameters
sIndent expected the expected value. actual the actual value. ret clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow Returns
sIndent assertEquals name assertEquals(message, expected, actual) des sIndent Asserts that two values are equal. AssertionFailedError is thrown if the actual value does not match the regular expression. prs Parameters
sIndent message The test description/message. expected the expected value. actual the actual value. ret clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow assertFalse name assertFalse(boolean_condition) des sIndent Asserts that a condition is false. AssertionFailedError is thrown if the evaluation was not false. prs Parameters
sIndent boolean_condition the actual value. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow assertFalse name assertFalse(message, boolean_condition) des sIndent Asserts that a condition is false. AssertionFailedError is thrown if the evaluation was not false. prs Parameters
sIndent message The test description/message. boolean_condition the actual value. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow assertFloatEquals name assertFloatEquals(expectedFloat, actualFloat, tolerance) des sIndent Asserts that two floating point values are equal to within a given tolerance. AssertionFailedError is thrown if the expected value is not within the tolerance of the actual one. prs Parameters
sIndent expectedFloat the expected value. actualFloat the actual value. tolerance tolerance when comparing. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow assertFloatEquals name assertFloatEquals(message, expectedFloat, actualFloat, tolerance) des sIndent Asserts that two floating point values are equal to within a given tolerance. AssertionFailedError is thrown if the expected value is not within the tolerance of the actual one. prs Parameters
sIndent message The test description/message. expectedFloat the expected value. actualFloat the actual value. tolerance tolerance when comparing. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow assertMatches name assertMatches(regularExpression, actualString) des sIndent Asserts that a regular expression matches a string. AssertionFailedError is thrown if the expected value is not the actual one. prs Parameters
sIndent regularExpression the regular expression used for matching. actualString the actual value to be matched. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow assertMatches name assertMatches(message, regularExpression, actualString) des sIndent Asserts that a regular expression matches a string. AssertionFailedError is thrown if the expected value is not the actual one. prs Parameters
sIndent message The test description/message. regularExpression the regular expression used for matching. actualString the actual value to be matched. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow assertNotNull name assertNotNull(object) des sIndent Asserts that an object is not null. AssertionFailedError is thrown if the object is not null. prs Parameters
sIndent object the actual value. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow assertNotNull name assertNotNull(message, object) des sIndent Asserts that an object is not null. AssertionFailedError is thrown if the object is not null. prs Parameters
sIndent message The test description/message. object the actual value. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow assertNotSame name assertNotSame(notExpected, actual) des sIndent Asserts that two values are not the same. AssertionFailedError is thrown if the expected value is the actual one. prs Parameters
sIndent notExpected the value that is not expected. actual the actual value. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow assertNotSame name assertNotSame(message, notExpected, actual) des sIndent Asserts that two values are not the same. AssertionFailedError is thrown if the expected value is the actual one. prs Parameters
sIndent message The test description/message. notExpected the value that is not expected. actual the actual value. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow assertNotUndefined name assertNotUndefined(definedObject) des sIndent Asserts that an object is not undefined. AssertionFailedError is thrown if the object is undefined. prs Parameters
sIndent definedObject the actual value. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow assertNotUndefined name assertNotUndefined(message, definedObject) des sIndent Asserts that an object is not undefined. AssertionFailedError is thrown if the object is undefined. prs Parameters
sIndent message The test description/message. definedObject the actual value. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow assertNull name assertNull(nullValue) des sIndent Asserts that an object is null. AssertionFailedError is thrown if the object is not null. prs Parameters
sIndent nullValue the actual value. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow assertNull name assertNull(message, nullValue) des sIndent Asserts that an object is null. AssertionFailedError is thrown if the object is not null. prs Parameters
sIndent message The test description/message. nullValue the actual value. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow assertSame name assertSame(expected, actual) des sIndent Asserts that two values are the same. AssertionFailedError is thrown if the expected value is not the actual one. prs Parameters
sIndent expected the expected value. actual the actual value. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow assertSame name assertSame(message, expected, actual) des sIndent Asserts that two values are the same. AssertionFailedError is thrown if the expected value is not the actual one. prs Parameters
sIndent message The test description/message. expected the expected value. actual the actual value. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow assertTrue name assertTrue(boolean_condition) des sIndent Asserts that a condition is true. AssertionFailedError is thrown if the evaluation was not true. prs Parameters
sIndent boolean_condition the actual value. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow assertTrue name assertTrue(message, boolean_condition) des sIndent Asserts that a condition is true. AssertionFailedError is thrown if the evaluation was not true. prs Parameters
sIndent message The test description/message. boolean_condition the actual value. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow assertUndefined name assertUndefined(undefinedValue) des sIndent Asserts that an object is undefined. AssertionFailedError is thrown if the object is defined. prs Parameters
sIndent undefinedValue the actual value. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow assertUndefined name assertUndefined(message, undefinedValue) des sIndent Asserts that an object is undefined. AssertionFailedError is thrown if the object is defined. prs Parameters
sIndent message The test description/message. undefinedValue the actual value. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow fail name fail(message) des sIndent Fails a test. AssertionFailedError is always thrown. prs Parameters
sIndent message The test description/message. This is usually the only parameter specified when calling this method. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow fail name fail(message, instanceOfCallStack) des sIndent Fails a test. AssertionFailedError is always thrown. prs Parameters
sIndent message The test description/message. This is usually the only parameter specified when calling this method. instanceOfCallStack an internal JSUnit call stack. Use null for this if you want to get to the next optional parameter. Usually not specified. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow fail name fail(message, instanceOfCallStack, userMessage) des sIndent Fails a test. AssertionFailedError is always thrown. prs Parameters
sIndent message The test description/message. This is usually the only parameter specified when calling this method. instanceOfCallStack an internal JSUnit call stack. Use null for this if you want to get to the next optional parameter. Usually not specified. userMessage a user message. Usually not specified. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient,MobileClient sam Sample
sIdent javascript lastDetailRow