Examples of QuoteBase


Examples of com.example.simple.cs.QuoteBase


public class ChangeSummaryGenTestCase extends TestCase {

    public void testMixedQuoteType() throws IOException {
        QuoteBase quote = CSFactory.INSTANCE.createQuoteBase();
        DataObject dQuote = (DataObject)quote;

        // ChangeSummary csp = quote.getChanges();
        ChangeSummary cs = dQuote.getChangeSummary();
        ChangeSummary csp = quote.getChanges();
        cs.beginLogging();

        assertSame(cs, csp);
       
        quote.setSymbol("fbnt");
        quote.setCompanyName("FlyByNightTechnology");
        quote.setPrice(new BigDecimal("1000.0"));
        quote.setOpen1(new BigDecimal("1000.0"));
        quote.setHigh(new BigDecimal("1000.0"));
        quote.setLow(new BigDecimal("1000.0"));
        quote.setVolume(1000);
        quote.setChange1(1000);
       
        List quotes = quote.getQuotes();
        Quote innerQuote = CSFactory.INSTANCE.createQuote();
       
        quotes.add(innerQuote);
        innerQuote.setPrice(new BigDecimal("2000.0"));
       
View Full Code Here

Examples of com.example.simple.cs.QuoteBase


public class ChangeSummaryGenTestCase extends TestCase {

    public void testMixedQuoteType() throws IOException {
        QuoteBase quote = CSFactory.INSTANCE.createQuoteBase();
        DataObject dQuote = (DataObject)quote;

        // ChangeSummary csp = quote.getChanges();
        ChangeSummary cs = dQuote.getChangeSummary();
        ChangeSummary csp = quote.getChanges();
        cs.beginLogging();

        assertSame(cs, csp);
       
        quote.setSymbol("fbnt");
        quote.setCompanyName("FlyByNightTechnology");
        quote.setPrice(new BigDecimal("1000.0"));
        quote.setOpen1(new BigDecimal("1000.0"));
        quote.setHigh(new BigDecimal("1000.0"));
        quote.setLow(new BigDecimal("1000.0"));
        quote.setVolume(1000);
        quote.setChange1(1000);
       
        List quotes = quote.getQuotes();
        Quote innerQuote = CSFactory.INSTANCE.createQuote();
       
        quotes.add(innerQuote);
        innerQuote.setPrice(new BigDecimal("2000.0"));
       
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.