OpenPojo 0.7.3
oshoukry
released this
25 Apr 00:17
·
275 commits
to master
since this release
Added
- Support for every Collection & Map in Java, with automatic detection and registration based on JVM support. The complete list of Collections & Maps listed bellow.
- New Rule TestClassMustBeProperlyNamedRule to test misnamed test files that will only run on your IDE but not on your build server.
public class StructuralTest {
private PojoValidator pojoValidator;
@Before
public void setup() {
pojoValidator = new PojoValidator();
pojoValidator.addRule(new TestClassMustBeProperlyNamedRule());
}
@Test
public void allTestsMustBeProperlyNamed() {
List<PojoClass> pojoClasses = PojoClassFactory.getPojoClassesRecursively("com.openpojo", null);
for (PojoClass pojoClass : pojoClasses) {
pojoValidator.runValidation(pojoClass);
}
}
}
Collections:
- AbstractCollection
- Collection
Lists:
- AbstractList
- AbstractSequentialList
- ArrayList
- AttributeList
- CopyOnWriteArrayList
- LinkedList
- List
- RoleList
- RoleUnresolvedList
- Stack
- Vector
Queues:
- AbstractQueue
- ArrayBlockingQueue
- ArrayDeque
- BlockingDeque
- BlockingQueue
- ConcurrentLinkedDeque
- ConcurrentLinkedQueue
- DelayQueue
- Deque
- LinkedBlockingDeque
- LinkedBlockingQueue
- LinkedTransferQueue
- PriorityBlockingQueue
- PriorityQueue
- Queue
- SynchronousQueue
- TransferQueue
Sets:
- AbstractSet
- ConcurrentSkipListSet
- CopyOnWriteArraySet
- EnumSet
- HashSet
- JobStateReasons
- LinkedHashSet
- NavigableSet
- Set
- SortedSet
- TreeSet
Maps:
- AbstractMap
- ConcurrentHashMap
- ConcurrentMap
- EnumMap
- HashMap
- Hashtable
- IdentityHashMap
- LinkedHashMap
- Map
- NavigableMap
- SortedMap
- TreeMap
- WeakHashMap