IT. Expert System.

Android Reference

DOMTestCase


org.w3c.domts

Class DOMTestCase

    • Constructor Detail

      • DOMTestCase

        public DOMTestCase()
        This constructor is for DOMTestCase's that make specific demands for parser configuration. setFactory should be called before the end of the tests constructor to set the factory.
      • DOMTestCase

        public DOMTestCase(DOMTestDocumentBuilderFactory factory)
        This constructor is for DOMTestCase's that do not add any requirements for parser configuration.
        Parameters:
        factory - document factory to be used by test, may not be null.
    • Method Detail

      • doMain

        public static void doMain(Class testClass,
                  String[] args)
        This method is called by the main() for each test and locates the appropriate test framework and runs the specified test
        Parameters:
        testClass - test class
        args - arguments to test class
      • setFramework

        public void setFramework(DOMTestFramework framework)
        Sets test framework to be used by test.
        Parameters:
        framework -
      • wait

        public void wait(int millisecond)
        Wait
        Parameters:
        millisecond - milliseconds to wait
      • fail

        public void fail(String assertID)
        Fail test
        Parameters:
        assertID - identifier of assertion
      • assertTrue

        public void assertTrue(String assertID,
                      boolean actual)
        Asserts that actual==true
        Parameters:
        assertID - identifier of assertion
        actual - actual value
      • assertTrue

        public void assertTrue(String assertID,
                      Object actual)
        Asserts that actual==true
        Parameters:
        assertID - identifier of assertion
        actual - actual value
      • assertFalse

        public void assertFalse(String assertID,
                       boolean actual)
        Asserts that actual==false
        Parameters:
        assertID - identifier of assertion
        actual - actual value
      • assertFalse

        public void assertFalse(String assertID,
                       Object actual)
        Asserts that actual==false
        Parameters:
        assertID - identifier of assertion
        actual - actual value
      • assertNull

        public void assertNull(String assertID,
                      Object actual)
        Asserts that actual == null
        Parameters:
        assertID - identifier of assertion
        actual - actual value
      • assertNotNull

        public void assertNotNull(String assertID,
                         Object actual)
        Asserts that actual != null
        Parameters:
        assertID - identifier of assertion
        actual - actual value
      • assertSame

        public void assertSame(String assertID,
                      Object expected,
                      Object actual)
        Asserts that actual and expected are the same object
        Parameters:
        assertID - identifier of assertion
        actual - actual value
      • assertInstanceOf

        public void assertInstanceOf(String assertID,
                            Class cls,
                            Object obj)
        Asserts that obj is an instance of cls
        Parameters:
        assertID - identifier of assertion
        obj - object
        cls - class, may not be null.
      • assertSize

        public void assertSize(String assertID,
                      int expectedSize,
                      NodeList collection)
        Asserts that the length of the collection is the expected size.
        Parameters:
        assertID - identifier of assertion
        expectedSize - expected size
        collection - collection
      • assertSize

        public void assertSize(String assertID,
                      int expectedSize,
                      NamedNodeMap collection)
        Asserts that the length of the collection is the expected size.
        Parameters:
        assertID - identifier of assertion
        expectedSize - expected size
        collection - collection
      • assertSize

        public void assertSize(String assertID,
                      int expectedSize,
                      Collection collection)
        Asserts that the length of the collection is the expected size.
        Parameters:
        assertID - identifier of assertion
        expectedSize - expected size
        collection - collection
      • assertEqualsIgnoreCase

        public void assertEqualsIgnoreCase(String assertID,
                                  String expected,
                                  String actual)
        Asserts that expected.equalsIgnoreCase(actual) is true
        Parameters:
        assertID - identifier of assertion
        actual - actual value
        expected - Expected value, may not be null.
      • assertEqualsIgnoreCase

        public void assertEqualsIgnoreCase(String assertID,
                                  Collection expected,
                                  Collection actual)
        Asserts that each entry in actual is matched with an entry in expected that only differs by case. Order is not significant.
        Parameters:
        assertID - identifier of assertion
        actual - actual value
        expected - Expected value, may not be null.
      • assertEqualsIgnoreCase

        public void assertEqualsIgnoreCase(String assertID,
                                  List expected,
                                  List actual)
        Asserts that each entry in actual is matched with an entry in expected that only differs by case. Order is significant.
        Parameters:
        assertID - identifier of assertion
        actual - actual value
        expected - Expected value, may not be null.
      • assertEqualsAutoCase

        public void assertEqualsAutoCase(String context,
                                String assertID,
                                String expected,
                                String actual)
        Asserts that expected.equalsIgnoreCase(actual) is true
        Parameters:
        assertID - identifier of assertion
        actual - actual value
        expected - Expected value, may not be null.
      • assertEqualAutoCase

        public void assertEqualAutoCase(String context,
                               String assertID,
                               Collection expected,
                               Collection actual)
        Asserts that each entry in actual is matched with an entry in expected that only differs by case. Order is not significant.
        Parameters:
        assertID - identifier of assertion
        actual - actual value
        expected - Expected value, may not be null.
      • assertEqualsAutoCase

        public void assertEqualsAutoCase(String context,
                                String assertID,
                                List expected,
                                List actual)
        Asserts that each entry in actual is matched with an entry in expected that only differs by case. Order is significant.
        Parameters:
        assertID - identifier of assertion
        actual - actual value
        expected - Expected value, may not be null.
      • assertEquals

        public void assertEquals(String assertID,
                        String expected,
                        String actual)
        Asserts that expected.equals(actual) is true
        Parameters:
        assertID - identifier of assertion
        actual - actual value
        expected - Expected value, may not be null.
      • assertEquals

        public void assertEquals(String assertID,
                        int expected,
                        int actual)
        Asserts that values of expected and actual are equal.
        Parameters:
        assertID - identifier of assertion
        actual - actual value
        expected - Expected value, may not be null.
      • assertEquals

        public void assertEquals(String assertID,
                        double expected,
                        double actual)
        Asserts that values of expected and actual are equal.
        Parameters:
        assertID - identifier of assertion
        actual - actual value
        expected - Expected value, may not be null.
      • assertEquals

        public void assertEquals(String assertID,
                        boolean expected,
                        boolean actual)
        Asserts that values of expected and actual are equal.
        Parameters:
        assertID - identifier of assertion
        actual - actual value
        expected - Expected value, may not be null.
      • assertEquals

        public void assertEquals(String assertID,
                        Collection expected,
                        NodeList actual)
        Asserts that each entry in actual exactly matches with an entry in expected. Order is not significant.
        Parameters:
        assertID - identifier of assertion
        actual - actual value
        expected - Expected value, may not be null.
      • assertEquals

        public void assertEquals(String assertID,
                        Collection expected,
                        Collection actual)
        Asserts that each entry in actual exactly matches with an entry in expected. Order is not significant.
        Parameters:
        assertID - identifier of assertion
        actual - actual value
        expected - Expected value, may not be null.
      • assertNotEqualsIgnoreCase

        public void assertNotEqualsIgnoreCase(String assertID,
                                     String expected,
                                     String actual)
        Asserts that expected.equalsIgnoreCase(actual) is false
        Parameters:
        assertID - identifier of assertion
        actual - actual value
        expected - Expected value, may not be null.
      • assertNotEqualsAutoCase

        public void assertNotEqualsAutoCase(String context,
                                   String assertID,
                                   String expected,
                                   String actual)
        Asserts that expected.equalsIgnoreCase(actual) is false
        Parameters:
        assertID - identifier of assertion
        actual - actual value
        expected - Expected value, may not be null.
      • assertNotEquals

        public void assertNotEquals(String assertID,
                           String expected,
                           String actual)
        Asserts that values of expected and actual are not equal.
        Parameters:
        assertID - identifier of assertion
        actual - actual value
        expected - Expected value, may not be null.
      • assertNotEquals

        public void assertNotEquals(String assertID,
                           int expected,
                           int actual)
        Asserts that values of expected and actual are not equal.
        Parameters:
        assertID - identifier of assertion
        actual - actual value
        expected - Expected value, may not be null.
      • assertNotEquals

        public void assertNotEquals(String assertID,
                           double expected,
                           double actual)
        Asserts that values of expected and actual are not equal.
        Parameters:
        assertID - identifier of assertion
        actual - actual value
        expected - Expected value, may not be null.
      • assertURIEquals

        public void assertURIEquals(String assertID,
                           String scheme,
                           String path,
                           String host,
                           String file,
                           String name,
                           String query,
                           String fragment,
                           Boolean isAbsolute,
                           String actual)
        Asserts aspects of a URI
        Parameters:
        assertID - identifier of assertion
        scheme - Expected scheme, for example, "file". If null, scheme is ignored.
        path - Expected path, for example, "/DOM/Test". If null, path is ignored.
        host - Expected host, for example, "www.w3.org". If null, host is ignored.
        file - Expected file, for example, "staff.xml". If null, file is ignored.
        name - Expected name, for example, "staff". If null, name is ignored.
        name - Expected name, for example, "staff". If null, name is ignored.
        isAbsolute - if Boolean.TRUE, URI must be absolute. Null indicates no assertion.
        actual - URI to be tested.
      • same

        public boolean same(Object expected,
                   Object actual)
        Compares the identity of actual and expected.
        Parameters:
        expected - expected
        actual - actual
        Returns:
        true if actual and expected are the same object.
      • equalsIgnoreCase

        public boolean equalsIgnoreCase(String expected,
                               String actual)
        Compares the value of actual and expected ignoring case.
        Parameters:
        expected - expected
        actual - actual
        Returns:
        true if actual and expected are equal ignoring case.
      • equalsIgnoreCase

        public boolean equalsIgnoreCase(Collection expected,
                               Collection actual)
        Compares the values in actual and expected ignoring case and order.
        Parameters:
        expected - expected
        actual - actual
        Returns:
        true if actual and expected are equal ignoring case.
      • equalsIgnoreCase

        public boolean equalsIgnoreCase(List expected,
                               List actual)
        Compares the values in actual and expected ignoring case.
        Parameters:
        expected - expected
        actual - actual
        Returns:
        true if actual and expected are equal ignoring case.
      • equalsAutoCase

        public boolean equalsAutoCase(String context,
                             String expected,
                             String actual)
        Compares the value of actual and expected ignoring case.
        Parameters:
        expected - expected
        actual - actual
        Returns:
        true if actual and expected are equal ignoring case.
      • equalsAutoCase

        public boolean equalsAutoCase(String context,
                             Collection expected,
                             Collection actual)
        Compares the values in actual and expected ignoring case and order.
        Parameters:
        expected - expected
        actual - actual
        Returns:
        true if actual and expected are equal ignoring case.
      • equalsAutoCase

        public boolean equalsAutoCase(String context,
                             List expected,
                             List actual)
        Compares the values in actual and expected ignoring case.
        Parameters:
        expected - expected
        actual - actual
        Returns:
        true if actual and expected are equal ignoring case.
      • equals

        public boolean equals(String expected,
                     String actual)
        Compares the values of actual and expected.
        Parameters:
        expected - expected
        actual - actual
        Returns:
        true if actual and expected are equal.
      • equals

        public boolean equals(int expected,
                     int actual)
        Compares the values of actual and expected.
        Parameters:
        expected - expected
        actual - actual
        Returns:
        true if actual and expected are equal.
      • equals

        public boolean equals(double expected,
                     double actual)
        Compares the values of actual and expected.
        Parameters:
        expected - expected
        actual - actual
        Returns:
        true if actual and expected are equal.
      • equals

        public boolean equals(Collection expected,
                     Collection actual)
        Compares the values in actual and expected ignoring order.
        Parameters:
        expected - expected
        actual - actual
        Returns:
        true if actual and expected are equal.
      • equals

        public boolean equals(List expected,
                     List actual)
        Compares the values in actual and expected.
        Parameters:
        expected - expected
        actual - actual
        Returns:
        true if actual and expected are equal.
      • size

        public int size(Collection collection)
        Gets the size of the collection
        Parameters:
        collection - collection, may not be null.
        Returns:
        size of collection
      • size

        public int size(NamedNodeMap collection)
        Gets the size of the collection
        Parameters:
        collection - collection, may not be null.
        Returns:
        size of collection
      • size

        public int size(NodeList collection)
        Gets the size of the collection
        Parameters:
        collection - collection, may not be null.
        Returns:
        size of collection


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 2889 / . Delta: 0.09144 с