Skip to content

OpenPojo 0.7.3

Compare
Choose a tag to compare
@oshoukry oshoukry released this 25 Apr 00:17
· 275 commits to master since this release

Added

  1. Support for every Collection & Map in Java, with automatic detection and registration based on JVM support. The complete list of Collections & Maps listed bellow.
  2. 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:

  1. AbstractCollection
  2. Collection

Lists:

  1. AbstractList
  2. AbstractSequentialList
  3. ArrayList
  4. AttributeList
  5. CopyOnWriteArrayList
  6. LinkedList
  7. List
  8. RoleList
  9. RoleUnresolvedList
  10. Stack
  11. Vector

Queues:

  1. AbstractQueue
  2. ArrayBlockingQueue
  3. ArrayDeque
  4. BlockingDeque
  5. BlockingQueue
  6. ConcurrentLinkedDeque
  7. ConcurrentLinkedQueue
  8. DelayQueue
  9. Deque
  10. LinkedBlockingDeque
  11. LinkedBlockingQueue
  12. LinkedTransferQueue
  13. PriorityBlockingQueue
  14. PriorityQueue
  15. Queue
  16. SynchronousQueue
  17. TransferQueue

Sets:

  1. AbstractSet
  2. ConcurrentSkipListSet
  3. CopyOnWriteArraySet
  4. EnumSet
  5. HashSet
  6. JobStateReasons
  7. LinkedHashSet
  8. NavigableSet
  9. Set
  10. SortedSet
  11. TreeSet

Maps:

  1. AbstractMap
  2. ConcurrentHashMap
  3. ConcurrentMap
  4. EnumMap
  5. HashMap
  6. Hashtable
  7. IdentityHashMap
  8. LinkedHashMap
  9. Map
  10. NavigableMap
  11. SortedMap
  12. TreeMap
  13. WeakHashMap