Tabnine Logo
SequentialIOExceptionBuilderTestSuite$Mapper
Code IndexAdd Tabnine to your IDE (free)

How to use
SequentialIOExceptionBuilderTestSuite$Mapper
in
de.schlichtherle.truezip.io

Best Java code snippets using de.schlichtherle.truezip.io.SequentialIOExceptionBuilderTestSuite$Mapper (Showing top 1 results out of 315)

origin: de.schlichtherle.truezip/truezip-kernel

@SuppressWarnings({ "unchecked", "element-type-mismatch" })
private void assertSequence(final Mapper mapper) throws X {
  final IOException warning = new IOException("warning");
  final IOException failure = new IOException("failure");
  builder.warn(warning);
  final SequentialIOException ex1 = builder.fail(failure);
  builder.check();
  assertTrue(clazz.isInstance(ex1));
  final SequentialIOException ex2 = mapper.map(ex1);
  assertTrue(clazz.isInstance(ex2));
  final Set<IOException> causes = new HashSet<IOException>(
      Arrays.asList(warning, failure));
  assertTrue(causes.remove(ex2.getCause()));
  assertTrue(causes.remove(ex2.getPredecessor().getCause()));
  assertTrue(causes.isEmpty());
  assertNull(ex2.getPredecessor().getPredecessor());
}
de.schlichtherle.truezip.ioSequentialIOExceptionBuilderTestSuite$Mapper

Most used methods

  • map

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now