Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

shop
Class ShoppingCartTest  view ShoppingCartTest download ShoppingCartTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byshop.ShoppingCartTest
All Implemented Interfaces:
junit.framework.Test

public class ShoppingCartTest
extends junit.framework.TestCase

Shopping cart test scenario using Java & EJB invocation. In order to run this test, set your JNDI settings using the following variables:


Field Summary
private  boolean debugMode
           
private  java.lang.String wsdlPath
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
ShoppingCartTest(java.lang.String arg0)
           
 
Method Summary
private  void debug(java.lang.Object s)
           
static void main(java.lang.String[] args)
          Starts the application.
private  void printOrder(Order order)
           
private  void printOrders(Orders orders)
           
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
static junit.framework.Test suite()
           
 void testWSDL_EJB_InputOnly()
          Tests input only operations on the EJB binding for the shopping cart scenario via WSDL
 void testWSDL_EJB()
          Tests the EJB binding for the shopping cart scenario via WSDL
 void testWSDL_Java_InputOnly()
          Tests input only operations on the Java binding for the shopping cart scenario via WSDL
 void testWSDL_Java()
          Tests the Java binding for the shopping cart scenario via WSDL
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
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, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

debugMode

private boolean debugMode

wsdlPath

private java.lang.String wsdlPath
Constructor Detail

ShoppingCartTest

public ShoppingCartTest(java.lang.String arg0)
Method Detail

main

public static void main(java.lang.String[] args)
Starts the application.


suite

public static junit.framework.Test suite()

setUp

protected void setUp()
Description copied from class: junit.framework.TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.


printOrder

private void printOrder(Order order)

printOrders

private void printOrders(Orders orders)

testWSDL_Java

public void testWSDL_Java()
                   throws java.lang.Exception
Tests the Java binding for the shopping cart scenario via WSDL


testWSDL_EJB

public void testWSDL_EJB()
                  throws java.lang.Exception
Tests the EJB binding for the shopping cart scenario via WSDL


testWSDL_Java_InputOnly

public void testWSDL_Java_InputOnly()
                             throws java.lang.Exception
Tests input only operations on the Java binding for the shopping cart scenario via WSDL


testWSDL_EJB_InputOnly

public void testWSDL_EJB_InputOnly()
                            throws java.lang.Exception
Tests input only operations on the EJB binding for the shopping cart scenario via WSDL


debug

private void debug(java.lang.Object s)