Package net.jini.config

Examples of net.jini.config.ConfigurationNotFoundException


        conf.setException(null);

        // 12
        final Throwable[] exceptionList2 = {
              new ConfigurationException(""),
              new ConfigurationNotFoundException(""),
              new NoSuchEntryException(""),
              new Error() };
        for (int e = 0; e < exceptionList2.length; ++e) {
            Throwable testException = exceptionList2[e];
            logger.log(Level.INFO, "-- subcase: " + testException);
View Full Code Here


    public ValidConfigurationWithoutDefaults(String[] options, ClassLoader cl)
            throws ConfigurationException {
        wasCalled = true;

        if (options == null) {
            throw new ConfigurationNotFoundException(
                    "default options are not supplied");
        }
    }
View Full Code Here

    /**
     * This method performs all actions mentioned in class description.
     */
    public void run() throws Exception {
        ConfigurationNotFoundException ce;
        ce = new ConfigurationNotFoundException(null);
        assertion(ce.getMessage() == null);

        ce = new ConfigurationNotFoundException("");
        assertion(ce.getMessage().equals(""));

        String message = "Some message";
        ce = new ConfigurationNotFoundException(message);
        assertion(ce.getMessage().equals(message));

        ce = new ConfigurationNotFoundException(null, null);
        assertion(ce.getMessage() == null);
        assertion(ce.getCause() == null);

        ce = new ConfigurationNotFoundException("", null);
        assertion(ce.getMessage().equals(""));
        assertion(ce.getCause() == null);

        ce = new ConfigurationNotFoundException(message, null);
        assertion(ce.getMessage().equals(message));
        assertion(ce.getCause() == null);

        Exception e = new Exception();
        ce = new ConfigurationNotFoundException(null, e);
        assertion(ce.getMessage() == null);
        assertion(ce.getCause().equals(e));

        ce = new ConfigurationNotFoundException("", e);
        assertion(ce.getMessage().equals(""));
        assertion(ce.getCause().equals(e));

        ce = new ConfigurationNotFoundException(message, e);
        assertion(ce.getMessage().equals(message));
        assertion(ce.getCause().equals(e));
    }
View Full Code Here

TOP

Related Classes of net.jini.config.ConfigurationNotFoundException

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.