Examples of StockInvestment


Examples of test.wsdl.roundtrip.StockInvestment

     *  and StockInvestment classes across the wire correctly.
     */
    public void testStockInvestment() {

        try {
            StockInvestment stock = new StockInvestment();
            stock.setName("International Business Machines");
            stock.setId(1);
            stock.setTradeExchange("NYSE");
            stock.setLastTradePrice(200.55F);
            float lastTradePrice = binding.getRealtimeLastTradePrice(stock);
            assertEquals("The expected and actual values did not match.",
                         201.25F,
                         lastTradePrice,
                         FLOAT_DELTA);
View Full Code Here

Examples of test.wsdl.roundtrip.StockInvestment

     *  Like the above test, but uses the alternate port.
     */
    public void testStockInvestmentWithPort2() {

        try {
            StockInvestment stock = new StockInvestment();
            stock.setName("International Business Machines");
            stock.setId(1);
            stock.setTradeExchange("NYSE");
            stock.setLastTradePrice(200.55F);
            float lastTradePrice = binding2.getRealtimeLastTradePrice(stock);
            assertEquals("The expected and actual values did not match.",
                         201.25F,
                         lastTradePrice,
                         FLOAT_DELTA);
View Full Code Here

Examples of test.wsdl.roundtrip.StockInvestment

     *  Test the overloaded method getId with a StockInvestment.
     */
    public void testInvestmentGetId() {

        try {
            StockInvestment stock = new StockInvestment();
            stock.setName("International Business Machines");
            stock.setId(1);
            stock.setTradeExchange("NYSE");
            stock.setLastTradePrice(200.55F);

            // Temporarily commented out until I can get this to work.
            int id = binding.getId(stock);
            assertEquals("The wrong id was sent back", 1, id);           
        } catch (RemoteException re) {
View Full Code Here

Examples of test.wsdl.roundtrip.StockInvestment

     *  and StockInvestment classes across the wire correctly.
     */
    public void testStockInvestment() {

        try {
            StockInvestment stock = new StockInvestment();
            stock.setName("International Business Machines");
            stock.setId(1);
            stock.setTradeExchange("NYSE");
            stock.setLastTradePrice(200.55F);
            float lastTradePrice = binding.getRealtimeLastTradePrice(stock);
            assertEquals("The expected and actual values did not match.",
                         201.25F,
                         lastTradePrice,
                         FLOAT_DELTA);
View Full Code Here

Examples of test.wsdl.roundtrip.StockInvestment

     *  and StockInvestment classes across the wire correctly.
     */
    public void testStockInvestment() {

        try {
            StockInvestment stock = new StockInvestment();
            stock.setName("International Business Machines");
            stock.setId(1);
            stock.setTradeExchange("NYSE");
            stock.setLastTradePrice(200.55F);
            float lastTradePrice = binding.getRealtimeLastTradePrice(stock);
            assertEquals("The expected and actual values did not match.",
                         201.25F,
                         lastTradePrice,
                         FLOAT_DELTA);
View Full Code Here

Examples of test.wsdl.roundtrip.StockInvestment

     *  Test the overloaded method getId with a StockInvestment.
     */
    public void testInvestmentGetId() {

        try {
            StockInvestment stock = new StockInvestment();
            stock.setName("International Business Machines");
            stock.setId(1);
            stock.setTradeExchange("NYSE");
            stock.setLastTradePrice(200.55F);

            // Temporarily commented out until I can get this to work.
            int id = binding.getId(stock);
            assertEquals("The wrong id was sent back", 1, id);           
        } catch (RemoteException re) {
View Full Code Here

Examples of test.wsdl.roundtrip.StockInvestment

     *  Test to insure that a JAX-RPC Value Type works correctly.  StockInvestment
     *  subclasses Investment and should pass data members in both the Investment
     *  and StockInvestment classes across the wire correctly.
     */
    public void testStockInvestment() throws Exception {
        StockInvestment stock = new StockInvestment();
        stock.setName("International Business Machines");
        stock.setId(1);
        stock.setTradeExchange("NYSE");
        stock.setLastTradePrice(200.55F);
        float lastTradePrice = binding.getRealtimeLastTradePrice(stock);
        assertEquals("The expected and actual values did not match.",
                201.25F,
                lastTradePrice,
                FLOAT_DELTA);
View Full Code Here

Examples of test.wsdl.roundtrip.StockInvestment

    /**
     *  Like the above test, but uses the alternate port.
     */
    public void testStockInvestmentWithPort2() throws Exception {
        StockInvestment stock = new StockInvestment();
        stock.setName("International Business Machines");
        stock.setId(1);
        stock.setTradeExchange("NYSE");
        stock.setLastTradePrice(200.55F);
        float lastTradePrice = binding2.getRealtimeLastTradePrice(stock);
        assertEquals("The expected and actual values did not match.",
                201.25F,
                lastTradePrice,
                FLOAT_DELTA);
View Full Code Here

Examples of test.wsdl.roundtrip.StockInvestment

    /**
     *  Test the overloaded method getId with a StockInvestment.
     */
    public void testInvestmentGetId() throws RemoteException {
        StockInvestment stock = new StockInvestment();
        stock.setName("International Business Machines");
        stock.setId(1);
        stock.setTradeExchange("NYSE");
        stock.setLastTradePrice(200.55F);

        // Temporarily commented out until I can get this to work.
        int id = binding.getId(stock);
        assertEquals("The wrong id was sent back", 1, id);
    } // testInvestmentGetId
View Full Code Here

Examples of test.wsdl.roundtrip.StockInvestment

     *  and StockInvestment classes across the wire correctly.
     */
    public void testStockInvestment() {

        try {
            StockInvestment stock = new StockInvestment();
            stock.setName("International Business Machines");
            stock.setId(1);
            stock.setTradeExchange("NYSE");
            stock.setLastTradePrice(200.55F);
            float lastTradePrice = binding.getRealtimeLastTradePrice(stock);
            assertEquals("The expected and actual values did not match.",
                         201.25F,
                         lastTradePrice,
                         FLOAT_DELTA);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.