Java Testing

This example illustrates about how to write a Black Box test using HttpUnit.

Java Testing

Java Testing

     

  1. HttpUnit Test
    This example illustrates about how to write a Black Box test using HttpUnit. The Block Box test is useful in evaluating the overall health of the application and its ability to provide value to users where an application is tested using its outward-facing interface (usually a graphical user interface). 
          
  2. Running 'assertEquals' method in Junit Test From Ant
    In this example assertEquals (excepted, actual) method are used  to test the application with the JUnit framework, this unit tests are possible by extend the junit.framework.TestCases class.
         
  3. JUnit Test 'assertTrue' Example Using Ant
    This example illustrates about how to use the 'assertTrue' assertion method to test whether the class file executed test cases successfully or not.
        
  4. JUnit Test 'assertSame' Example Using Ant
    This example illustrates about how to use the 'assertSame' assertion method.
         
  5. JUnit Test 'assertNotSame' Example Using Ant 
    As like the previous example it illustrates about how to use the 'assertNotSame' assertion method. 
       
  6. JUnit Test 'assertNotEquals' Example Using Ant
    In the previous example we explain how to use of assertEquals assertion method, in this example we try to illustrates about how to use the 'assertNotEquals' assertion method to test whether the class file executed test cases successfully or not. 
       
  7. JUnit Test 'assertFalse' Example Using Ant
    This example illustrates about how to use the 'assertFalse' assertion method to test whether the class file executed test cases successfully or not.