Package org.xmlBlaster.engine.runlevel

Examples of org.xmlBlaster.engine.runlevel.PluginConfigComparator.compare()


      config2.addAction(action);
    
      int cmp = upComparator.compare(config1, config2);
      assertTrue(me + " number of actions", cmp < 0);

      cmp = downComparator.compare(config1, config2);
      assertTrue(me + " number of actions", cmp > 0);

      PluginConfig config3 = new PluginConfig(this.glob, "test:PLUGIN3", true, "org.universe.Plugin3");
      action = new RunLevelAction(this.glob, "LOAD", 2, -1, null, 3);
      config3.addAction(action);
View Full Code Here


      config3.addAction(action);
      action = new RunLevelAction(this.glob, "STOP", -1, 1, null, 3);
      config3.addAction(action);
      cmp = upComparator.compare(config1, config3);
      assertTrue(me + " number of actions", cmp > 0);
      cmp = downComparator.compare(config1, config3);
      assertTrue(me + " number of actions", cmp < 0);

      PluginConfig config4 = new PluginConfig(this.glob, "test:PLUGIN4", true, "org.universe.Plugin4");
      action = new RunLevelAction(this.glob, "LOAD", 2, -1, null, 4);
      config4.addAction(action);
View Full Code Here

      config4.addAction(action);
      action = new RunLevelAction(this.glob, "STOP", -1, 1, null, 4);
      config4.addAction(action);
      cmp = upComparator.compare(config3, config4);
      assertTrue(me + " number of actions", cmp < 0);
      cmp = downComparator.compare(config3, config4);
      assertTrue(me + " number of actions", cmp < 0);

      try {
         cmp = upComparator.compare(config3, (PluginConfig)null);
         assertTrue(me + " number of actions", true);
View Full Code Here

      }
      catch (ClassCastException ex) {
         log.info("exception is OK and expected in this context");
      }
      try {
         cmp = downComparator.compare((PluginConfig)null, config4);
         assertTrue(me + " number of actions", true);
      }
      catch (ClassCastException ex) {
         log.info("exception is OK and expected in this context");
      }
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.