Package myPackage.FooHandler

Examples of myPackage.FooHandler.PreBookmark


        // add new
        CompanyType co = cDoc.addNewCompany();

        xc = cDoc.newCursor();
        PreBookmark prebk = (PreBookmark) xc.getBookmark(PreBookmark.class);

        expected = "{preSet in FooHandler: 2, <xml-fragment></xml-fragment>, {company.xsd}company, false, -1}";
        actual = prebk.getMsg();
        Assert.assertTrue("Expected: " + expected + "\n  actual: " + actual, expected.equals(actual));


        PostBookmark postbk = (PostBookmark) xc.getBookmark(PostBookmark.class);

        expected = "{postSet in FooHandler: 2, " + cDoc + ", {company.xsd}company, false, -1}";
        actual = postbk.getMsg();
        Assert.assertTrue("Expected: " + expected + "\n  actual: " + actual, expected.equals(actual));

        xc.dispose();


        // set
        co.setName2("xbean name");

        xc = co.newCursor();
        prebk = (PreBookmark) xc.getBookmark(PreBookmark.class);

        expected = "{preSet in FooHandler: 1, <xml-fragment/>, name, true, -1}";
        actual = prebk.getMsg();
        Assert.assertTrue("Expected: " + expected + "\n  actual: " + actual, expected.equals(actual));


        postbk = (PostBookmark) xc.getBookmark(PostBookmark.class);
View Full Code Here

TOP

Related Classes of myPackage.FooHandler.PreBookmark

Copyright © 2018 www.massapicom. 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.