Package java.util

Examples of java.util.Properties.clear()


      p.setProperty("location", "any");
      fclc.setProperties(p);
      assertTrue(fclc.isCheckCharacterPortability());
      assertEquals("any", fclc.getLocation());

      p.clear();

      p.setProperty("check.character.portability", "true");
      fclc.setProperties(p);
      assertTrue(fclc.isCheckCharacterPortability());
      assertNull(fclc.getLocation());
View Full Code Here


      p.setProperty("check.character.portability", "true");
      fclc.setProperties(p);
      assertTrue(fclc.isCheckCharacterPortability());
      assertNull(fclc.getLocation());

      p.clear();

      p.setProperty("check.character.portability", "false");
      fclc.setProperties(p);
      assertFalse(fclc.isCheckCharacterPortability());
      assertNull(fclc.getLocation());
View Full Code Here

                            + includeProperty
                            + "\"\n  Skipping include file \"" + include + "\"");
                    continue;
                }
                try {
                    tmpProps.clear();
                    // Open URL to read in properties
                    URL tmpInclude = PropUtils.getResourceOrFileOrURL(null,
                            include);

                    if (tmpInclude == null) {
View Full Code Here

            if (someObj instanceof PropertyConsumer) {
                Debug.message("properties", "Getting Property Info for"
                        + someObj.getClass().getName());

                PropertyConsumer pc = (PropertyConsumer) someObj;
                componentProperties.clear();
                markerName = pc.getPropertyPrefix();

                if (ph != null && markerName != null
                        && !markerName.equals("openmap")) {
                    // Gets the properties for the prefix that the
View Full Code Here

                    // property handler was set with. This should
                    // handle components that aren't good
                    // PropertyConsumers.
                    componentProperties = ph.getProperties(markerName);
                } else {
                    componentProperties.clear();
                }

                if (!componentListBuilt) {
                    if (markerName != null) {
                        componentMarkerString.append(" " + markerName);
View Full Code Here

                // property handler was set with. This should
                // handle components that aren't good
                // PropertyConsumers.
                layerProperties = ph.getProperties(markerName);
            } else {
                layerProperties.clear();
            }

            layerMarkerString.append(" " + markerName);

            if (layers[i].isVisible()) {
View Full Code Here

    throws Exception
  {
    Properties properties = new Properties();
    InputStream in = new FileInputStream(new File(dir, "triples.prop"));
    try {
      properties.clear();
      properties.load(in);
    }
    finally {
      in.close();
    }
View Full Code Here

            String key = (String) i.next();
            if (!args.containsKey(key.trim())) {
                args.put(key.trim(), props.getProperty(key).trim());
            }
        }
        props.clear();
    }
   
    public static void initLogger(Map args) throws IOException {
        // Reset the log level
        int logLevel = WebAppConfiguration.intArg(args, "debug", Logger.INFO);
View Full Code Here

      deploy("jca-mockdriver.jar");
      Properties props = getConnectionProperties(EARXMLDS);
          assertTrue(props.containsKey("serverName") && props.containsKey("databaseName") && props.containsKey("portNumber"));
          assertTrue(deploymentUsesDataSource(EARXMLDS));       
         
          props.clear();
         
          props = getConnectionProperties(DRIVEREARXML);
          assertTrue(props.size() == 0);
          assertFalse(deploymentUsesDataSource(DRIVEREARXML));
     
View Full Code Here

         
          props = getConnectionProperties(DRIVEREARXML);
          assertTrue(props.size() == 0);
          assertFalse(deploymentUsesDataSource(DRIVEREARXML));
     
          props.clear();
          props = getConnectionProperties(XADSEARXML, true);
          assertTrue("XADataSourceProperties should have been set", props.size() > 0);
         
          props.clear();
          props = getConnectionProperties(WEBOVRDS, true);
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.