Package com.codingcrayons.aspectfaces.plugins.j2ee.configuration

Examples of com.codingcrayons.aspectfaces.plugins.j2ee.configuration.ServerConfiguration


  @Test
  public void testAddConfigurationByUrl() {
    try {
      String name = "config";
      Configuration configuration = new ServerConfiguration(name, null);
      AFWeaver.addConfiguration(configuration, new URL("127.0.0.1"), true, true);
      assertNotNull(ConfigurationStorage.getInstance().getConfiguration(name));
    } catch (java.net.MalformedURLException e) {
      //skip an exception for testing
    } catch (Exception e) {
View Full Code Here


                URL config = context.getResource(path);
                if (config == null) {
                  LOGGER.error("Configuration not found on path: '{}'.", path);
                  throw new RuntimeException("Configuration not found on path: " + path);
                }
                AFWeaver.addConfiguration(new ServerConfiguration(name, context), config, lazyLoad, checkModification);
              }
            }
          }
        }
        if (element.getName().equals("annotations-registration")) {
View Full Code Here

  @Test(expectedExceptions = ConfigurationFileNotFoundException.class)
  public void testConfigurationNotFoundAtUrl() throws MalformedURLException, ConfigurationNotFoundException,
    ConfigurationFileNotFoundException, ConfigurationParsingException {
    String name = "config";
    Configuration configuration = new ServerConfiguration(name, null);
    AFWeaver.addConfiguration(configuration, new URL("http://fail"), true, true);
    assertNotNull(ConfigurationStorage.getInstance().getConfiguration(name));
  }
View Full Code Here

TOP

Related Classes of com.codingcrayons.aspectfaces.plugins.j2ee.configuration.ServerConfiguration

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.