Package com.art.anette.datamodel.dataobjects.interfaces

Examples of com.art.anette.datamodel.dataobjects.interfaces.Observer


    private static void testCommentUpdate(Logic logic) throws InterruptedException {
        final boolean[] success = {false};
        final Object lock = new Object();
        final Employee emp = logic.getDBControl().getEmployee(logic.getEmployee().getId());
        final String newPart = "///" + DateTimeUtils.formatStandardWay(new Date());
        emp.addObserver(new Observer() {
            public void inform(DataObject d) {
                logger.info("++++++++++++++++ inform  " + prettyPrintObjectForLogging(d) + " " + (d == emp));
                if (d.isValid() && d == emp && emp.getComment().endsWith(newPart)) {
                    logger.info("Got the udpated object");
                    success[0] = true;
View Full Code Here

TOP

Related Classes of com.art.anette.datamodel.dataobjects.interfaces.Observer

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.