Package org.jboss.system.server.profileservice.hotdeploy

Examples of org.jboss.system.server.profileservice.hotdeploy.HDScanner


    * NullPointerExceptions in previous releases, so no thrown exception equals
    * a pass.
    */
   public void testSettingScanEnabledToTrueDoesNotCauseNPE()
   {
      HDScanner hdScanner = new HDScanner();

      // Calling the setter *before* create/start have been called just like
      // when set via XML.
      hdScanner.setScanEnabled(true);
   }
View Full Code Here


    * method from executing/scheduling scanner in previous releases.
    */
    public void testSettingScanEnabledToFalseDoesNotCauseActiveScan()
    throws Exception
    {
      HDScanner hdScanner = new HDScanner();
      hdScanner.setScanEnabled(false);
      hdScanner.create();
      hdScanner.start();

      // Does starting the HDScanner cause a scan to be scheduled?  It shouldn't when
      // ScanEnabled is false.
      assertFalse("HDScanner had a scheduled scan when ScanEnabled was false",
                  hdScanner.isScanScheduled());
    }
View Full Code Here

     * <code>false</code> to <code>true</code> works.
     */
    public void testSettingScanEnabledFromFalseToTrueWorks()
    throws Exception
    {
      HDScanner hdScanner = new HDScanner();
      hdScanner.setScanEnabled(false);
      hdScanner.create();
      hdScanner.start();
      assertFalse("HDScanner had a scheduled scan when ScanEnabled was false",
                  hdScanner.isScanScheduled());
     
      hdScanner.setScanEnabled(true);
      assertTrue("HDScanner did not have a scheduled scan when ScanEnabled was set to true",
                  hdScanner.isScanScheduled());
    }
View Full Code Here

TOP

Related Classes of org.jboss.system.server.profileservice.hotdeploy.HDScanner

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.