@Disabled @Test public void testRelaxThrowsIllegalArgumentException() throws Throwable { String[] args = new String[0]; try { new Q2(args).relax(-100L); fail("Expected IllegalArgumentException to be thrown"); } catch (IllegalArgumentException ex) { assertEquals("timeout value is negative", ex.getMessage(), "ex.getMessage()"); } }
public void relax (long sleep) { try { shutdown.await(sleep, TimeUnit.MILLISECONDS); } catch (InterruptedException ignored) { } }
Q2 implements FileFilter, Runnable { public void relax (long sleep) { try { shutdown.await(sleep, TimeUnit.MILLISECONDS); } catch (InterruptedException ignored) { } } }
Q2 implements FileFilter, Runnable { public void relax (long sleep) { try { shutdown.await(sleep, TimeUnit.MILLISECONDS); } catch (InterruptedException ignored) { } } Q2(String[] args, BundleContext bundleContext);  Q2();  Q2(String deployDir);  Q2(String[] args); }
Q2 implements FileFilter, Runnable { public void relax (long sleep) { try { shutdown.await(sleep, TimeUnit.MILLISECONDS); } catch (InterruptedException ignored) { } } Q2(String[] args, BundleContext bundleContext);  Q2();  Q2(String deployDir);  Q2(String[] args); void start(); void stop(); void run(); void shutdown(); boolean running(); boolean ready(); boolean ready(long millis); void shutdown(boolean join); QClassLoader getLoader(); QFactory getFactory(); String[] getCommandLineArgs(); boolean accept(File f); File getDeployDir(); String getWatchServiceClassname(); static Q2 getQ2(); static Q2 getQ2(long timeout); void relax(long sleep); void relax(); Log getLog(); MBeanServer getMBeanServer(); long getUptime(); void displayVersion(); UUID getInstanceId(); static String getVersionString(); void deployElement(Element e, String fileName, boolean encrypt, boolean isTransient); Framework getOSGIFramework(); static void main(String[] args); static String getVersion(); static String getRevision(); static String getBranch(); static String getBuildTimestamp(); static String getRelease(); static String getAppVersionString(); boolean isDisableDynamicClassloader(); }
Q2 implements FileFilter, Runnable { public void relax (long sleep) { try { shutdown.await(sleep, TimeUnit.MILLISECONDS); } catch (InterruptedException ignored) { } } Q2(String[] args, BundleContext bundleContext);  Q2();  Q2(String deployDir);  Q2(String[] args); void start(); void stop(); void run(); void shutdown(); boolean running(); boolean ready(); boolean ready(long millis); void shutdown(boolean join); QClassLoader getLoader(); QFactory getFactory(); String[] getCommandLineArgs(); boolean accept(File f); File getDeployDir(); String getWatchServiceClassname(); static Q2 getQ2(); static Q2 getQ2(long timeout); void relax(long sleep); void relax(); Log getLog(); MBeanServer getMBeanServer(); long getUptime(); void displayVersion(); UUID getInstanceId(); static String getVersionString(); void deployElement(Element e, String fileName, boolean encrypt, boolean isTransient); Framework getOSGIFramework(); static void main(String[] args); static String getVersion(); static String getRevision(); static String getBranch(); static String getBuildTimestamp(); static String getRelease(); static String getAppVersionString(); boolean isDisableDynamicClassloader(); static final String DEFAULT_DEPLOY_DIR; static final String JMX_NAME; static final String LOGGER_NAME; static final String REALM; static final String LOGGER_CONFIG; static final String QBEAN_NAME; static final String Q2_CLASS_LOADER; static final String DUPLICATE_EXTENSION; static final String ERROR_EXTENSION; static final String ENV_EXTENSION; static final String LICENSEE; static final byte[] PUBKEYHASH; static final String PROTECTED_QBEAN; static final int SCAN_INTERVAL; static final long SHUTDOWN_TIMEOUT; }