/** * Returns the value of the property {@code lenient}. * * @return The value of the property {@code lenient}. * @see #setLenient(boolean) */ public boolean isLenient() { return this.outputPreferences.get(CREATE_PARENTS); }
UnknownKeyFeedback getUnknownKeyFeedback() { final UnknownKeyFeedback uckf = this.unknownKeyFeedback; return null != uckf ? uckf : (this.unknownKeyFeedback = serviceLocator.getService( UnknownKeyFeedback.class, BasicUnknownKeyFeedback.class)); }
/** * Returns the current configuration. * First, this method peeks the inheritable thread local configuration * stack. * If no configuration has been {@link #push() pushed} yet, the global * configuration is returned. * Mind that the global configuration is shared by all threads. * * @return The current configuration. * @see #push() */ public static TConfig get() { return configs.peekOrElse(GLOBAL); }
@Override protected void onClose() { configs.popIf(this); } }
@Test public void testClear1() { builder .uri(URI.create("scheme://authority/path?query#fragment")) .clear(); testDefaults(); }
@Before public void setUp() { builder = new UriBuilder(); }
/** * Returns the <i>canonical suffix list</i> for all federated file system * types recognized by this {@code TArchiveDetector}. * * @return Either {@code ""} to indicate an empty set or * a string of the form {@code "suffix[|suffix]*"}, * where {@code suffix} is a combination of lower case * letters which does <em>not</em> start with a dot. * The string never contains empty or duplicated suffixes and the * suffixes are sorted in natural order. * @see #TArchiveDetector(String) * @see SuffixSet Syntax constraints for suffix lists. */ @Override public String toString() { return suffixes.toString(); } }
@Before public void setUp() { this.encoder = new UriEncoder(); this.decoder = new UriDecoder(); }
@Test public void testRetainAll() { for (int i = 0; i < sets.length; i++) for (int j = 0; j < sets.length ; j++) assertFalse(sets[i].retainAll(sets[j])); }
public Throwable trigger(final Class<?> from, final Throwable toThrow) { if (null == from) throw new NullPointerException(); wrap(toThrow); // test if wrappable // DON'T put wrap(toThrow)! We want the stack trace of the call to // check(*), not of the call to this method! return throwables.put(from, toThrow); }
@Test public void testCheck() throws X { builder.check(); }
@Test public void testAddAll() { for (int i = 0; i < sets.length; i++) for (int j = 0; j < sets.length ; j++) assertFalse(sets[i].addAll(sets[j])); }
@Override protected void onClose() { configs.popIf(this); } }
/** * Returns the current configuration. * First, this method peeks the inheritable thread local configuration * stack. * If no configuration has been {@link #push() pushed} yet, the global * configuration is returned. * Mind that the global configuration is shared by all threads. * * @return The current configuration. * @see #push() */ public static TestConfig get() { return configs.peekOrElse(GLOBAL); }
InvalidKeyFeedback getInvalidKeyFeedback() { final InvalidKeyFeedback ickf = this.invalidKeyFeedback; return null != ickf ? ickf : (this.invalidKeyFeedback = serviceLocator.getService( InvalidKeyFeedback.class, BasicInvalidKeyFeedback.class)); }
/** * Pops the {@link #get() current configuration} off the inheritable thread * local configuration stack. * * @throws IllegalStateException If the {@link #get() current configuration} * is the global configuration. */ public static void pop() { configs.popIf(get()); }