Examples of BadTestListener


Examples of com.sun.jini.test.share.BadTestListener

     * <li>verifies that the lookup discovery manager utility under test sends
     * the expected events, with the expected contents to the first listener
     * </ul>
     */
    public void run() throws Exception {
        discoveryMgr.addDiscoveryListener(new BadTestListener(logger));
        super.run();
        logger.log(Level.FINE, "Adding bad listener");
        boolean exceptionHappened = false;
        try {
            discoveryMgr.addDiscoveryListener(new BadTestListener(logger));
        } catch (BadTestListener.BadListenerException e) {
            logger.log(Level.FINEST, "Expected exception happened");
            exceptionHappened = true;
        }
        if (!exceptionHappened) {
View Full Code Here

Examples of com.sun.jini.test.share.BadTestListener

     */
    public void run() throws Exception {
        logger.log(Level.FINE, "run()");
        /* Add the bad listener. */
        logger.log(Level.FINE, "Adding bad listener");
        locatorDiscovery.addDiscoveryListener(new BadTestListener(logger));
        /* Start the additional lookup services */
        startAddLookups();
        /* Verify discovery of the initial lookups */
        doDiscovery(initLookupsToStart, mainListener);
        /*
 
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.