Code example for JoinedIterable

0
 */ 
public class JoinedIterableTest extends BaseUnitTestCase { 
	@Test
	public void testNullIterables() { 
		try { 
			new JoinedIterable<String>( null );
			fail(); 
		} 
		catch (NullPointerException ex) {
			// expected 
		} 
	} 
 
	@Test
	public void testSingleEmptyIterable() { 
		Set<String> emptyList = new HashSet<String>();
		List<Iterable<String>> iterableSets = new ArrayList<Iterable<String>>(  );
		iterableSets.add( emptyList );
		Iterable<String> iterable = new JoinedIterable<String>( iterableSets );
		assertFalse( iterable.iterator().hasNext() );
Connect your IDE to all the code out there  Get Codota for Java