
net.sf.staccatocommons.testing.junit.theories.IterableTheories Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-testing Show documentation
Show all versions of commons-testing Show documentation
Testing components build on top of JUnit 4
The newest version!
/*
Copyright (c) 2011, The Staccato-Commons Team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
*/
package net.sf.staccatocommons.testing.junit.theories;
import java.util.Iterator;
/**
* @author flbulgarelli
*/
public abstract class IterableTheories extends IteratorTheories {
protected final Iterator> createOneElementIterator() {
return createOneElementIterable().iterator();
}
protected final Iterator> createTwoElementsIterator() {
return createTwoElementsIterable().iterator();
}
protected abstract Iterable> createOneElementIterable();
protected abstract Iterable> createTwoElementsIterable();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy