congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
TestTransformedCollection
Code IndexAdd Tabnine to your IDE (free)

How to use
TestTransformedCollection
in
org.apache.commons.collections.collection

Best Java code snippets using org.apache.commons.collections.collection.TestTransformedCollection (Showing top 4 results out of 315)

origin: commons-collections/commons-collections

public void testTransformedCollection() {
  Collection coll = TransformedCollection.decorate(new ArrayList(), STRING_TO_INTEGER_TRANSFORMER);
  assertEquals(0, coll.size());
  Object[] els = getFullElements();
  for (int i = 0; i < els.length; i++) {
    coll.add(els[i]);
    assertEquals(i + 1, coll.size());
    assertEquals(true, coll.contains(new Integer((String) els[i])));
    assertEquals(false, coll.contains(els[i]));
  }
  
  assertEquals(true, coll.remove(new Integer((String) els[0])));
}
origin: commons-collections/commons-collections

public Collection makeConfirmedFullCollection() {
  List list = new ArrayList();
  list.addAll(Arrays.asList(getFullElements()));
  return list;
}

origin: commons-collections/commons-collections

public static Test suite() {
  TestSuite suite = new TestSuite();
  
  suite.addTest(TestCompositeCollection.suite());
  suite.addTest(TestPredicatedCollection.suite());
  suite.addTest(TestSynchronizedCollection.suite());
  suite.addTest(TestTransformedCollection.suite());
  suite.addTest(TestUnmodifiableCollection.suite());
  
  return suite;
}
  
origin: commons-collections/commons-collections

public Collection makeFullCollection() {
  List list = new ArrayList();
  list.addAll(Arrays.asList(getFullElements()));
  return TransformedCollection.decorate(list, NOOP_TRANSFORMER);
}

org.apache.commons.collections.collectionTestTransformedCollection

Javadoc

Extension of TestCollection for exercising the TransformedCollectionimplementation.

Most used methods

  • assertEquals
  • getFullElements
  • suite

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • compareTo (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • ImageIO (javax.imageio)
  • Top Vim plugins
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